Two phorums, one user database?
Posted by endswithaW
Two phorums, one user database? June 04, 2009 10:41AM |
Registered: 16 years ago Posts: 6 |
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?
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?
June 04, 2009 10:43AM |
Admin Registered: 20 years ago Posts: 8,532 |
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
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



Re: Two phorums, one user database? June 04, 2009 11:26AM |
Registered: 16 years ago Posts: 6 |
June 04, 2009 11:52AM |
Admin Registered: 20 years ago Posts: 8,532 |
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
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



June 07, 2009 03:09AM |
Admin Registered: 24 years ago Posts: 4,495 |
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 |
Registered: 16 years ago Posts: 6 |
Re: Two phorums, one user database? November 17, 2009 06:00PM |
Registered: 15 years ago Posts: 41 |
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
My Phorum
Sorry, only registered users may post in this forum.