Firefox PHP

Two phorums, one user database?

Posted by endswithaW 
Two phorums, one user database?
June 04, 2009 10:41AM
Good morning. I've been searching and wandering through the phorum community website, but I haven't been able to find anything that meets my needs. Maybe my search terms are lousy.

Anyway,

I'm looking to support 2 instances of Phorum (running on the same machine), but I would like to use the same user database for both instances. If a user registers for one Phorum, they would be registered for the other one as well. Administration of a user on one site would affect the other as well.

Is this possible?
Re: Two phorums, one user database?
June 04, 2009 10:43AM
The magic word is: vroot

Go to the admin interface. Create a folder for which you enable the vroot flag. From then on, this folder will not show up in the main forum index, but instead you will be able to access it as if it were a separate Phorum instance. For accessing the vroot in the front end, go to index.php?<id of the folder>


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Two phorums, one user database?
June 04, 2009 11:26AM
Thank you Mr Makaay. I'm definitely going to give this a shot. Will this work for multiple domains? I should have mentioned it, but the two forums are sitting on different domain names.
Re: Two phorums, one user database?
June 04, 2009 11:52AM
That complicates things a bit. You could host both on the same webserver and give them their own name below the domains (e.g. forum.domain1.com and forum.domain2.com). By using the Virtual Hosting module, you can link these hostnames to the vroots that you created. That's the only way to do this with the standard available tools.

You could probably also run two copies of the code on the same database. What you need to take care of though, is that you still use the vroot URL to access the vrooted folder on one of the installations.

What you cannot do, is run two copies of the code on two databases, but using the same user database. That would defenitely require hacking of the db layer code. But I do think that there are other solutions available that provide you the required functionality without hacking.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Two phorums, one user database?
June 07, 2009 03:09AM
for multiple domains, you want [www.phorum.org]

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Two phorums, one user database?
June 08, 2009 01:34PM
Thanks for everyone's comments. I appreciate it. I'm going to read through all this and see what I can do.
Re: Two phorums, one user database?
November 17, 2009 06:00PM
Never seen this on any forum before and it seems to work perfectly. I am in the process of creating a new forum for my main site to sit alongside my new shopping phorum I just created. The ability to easily copy templates along with this vroot capability will make the process a breeze compared to how I have had to go about this on other forums I have used. Nice work!

My Phorum
Sorry, only registered users may post in this forum.

Click here to login