The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Multiple Forums using a single user table Details »» | |||||||||||||||||||||||||
This was originaly done in 3.0.9 by westpointer you can view that thread here
This Modification is for VB3.5.4 This is not supported but I will give as much help as I possible can. I have this working now on 2 sites The main site is http://forums.everything2stroke.com Slave sites are http://forums.everythingmx.com and http://forums.everythingduners.com After a successfull install of this modification your sites will share User, PM, and sesson data. This thread will detail how to have a single login for multiple forums. It makes the following assumptions:
Follow these steps 1.) Download your new copy of VB that contains a seperate license key 2.) Go to /includes/config.php.new rename the file to config.php and make necessary changes to the file. See VB Directions. Make sure this code has a different setting than the master site for table prefix. PHP Code:
4.) During the install, be sure NOT to empty the tables. If you have any doubt about what this means, stop NOW! If you empty the tables, you will lose all of your existing data from a prior install! 5.) Download all files and directories to your PC from the new install location. 6.) You will need a tool to do a mass Search and replace on all files. I use WildEdit. Here is what you will do using a tool like Wild Edit.
Now to modify some of the code. In /include/class_dm.php Search for: PHP Code:
PHP Code:
Go to /include/class_dm_pm.php Search for: PHP Code:
PHP Code:
Search for: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Go to /include/class_dm_user.php Search for: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
That is all the code modification. The only other item I did is remove a couple cron jobs. Go into Scheduled tasks then to Scheduled Task Manager Delete the following CRON jobs from the Slave Site User Promotions* Birthdays Activation Reminder Email This will eliminate members getting emails from the primary and secondary sites *not sure if this will duplicate efforts between primary and secondary sites I have it running on both sites still waiting to see if it causes any issues. Please post here if you have any problems and questions I will try my best to keep up with everyone to help you through this. Once you get the code done the first time you can just do a mass search and replace on your license code and you can be up and running in minutes with a new site. This is my first major modification so I hope I posted this all correct, again Thanks to Westpointer for his original work without his post this would not have been possible. Thanks UPDATE: Please make this changes it will allow you to make changes to usergroups in the subscription section and when editing a user. admincp/adminfunctions.php Search for PHP Code:
PHP Code:
Show Your Support
|
Comments |
#2
|
|||
|
|||
awesome, i will definetly be trying this out.
What if i have my sites on two different hard drives, but the same server. And MySQL for each is on the same disk as well. |
#3
|
|||
|
|||
If I understand correct you just have 2 hard drives in your server and the sites happen to be on opposite hard drives. As long as you are only running 1 MySql for both sites you shouldn't have any issues. The path to your install is in the Config.php this Modification is just changing were a second site looks for User, PM, and session data.
Now I have not done this with 2 existing forums. I have only created a new forum to attach to my existing forum. You could still do it with 2 existing forums but it would take a little more effort since you would have to merge your userdatabase and some PM's would be lost unless you could merge those as well. I have no experiance in doing this so I am not sure I could be of much help |
#4
|
|||
|
|||
Oh just for the record I have successfully made vBadvanced CMPS work on the slave site. There is just a few modification you need to make to the modules. If you are looking to do this PM me.
www.everythingmx.com I hope to intergrate other products soon like Photopost but not sure when I will get to it. |
#5
|
|||
|
|||
awesome
im going to give it a shot with two existing forms and see how it goes |
#6
|
|||
|
|||
Just be sure you do a backup of your databse
|
#7
|
|||
|
|||
How are paid subscriptions effected by this if at all?
If they buy a subscription on the slave site, does it effect anything on the existing main site? |
#8
|
|||
|
|||
Hi
You are using your forums on different domains but I want to use it as the fllowing ways: Master forum : mydomain.com/forum Slave forum:forum/mydomain.com Is it possible? Thanks |
#9
|
||||
|
||||
This must be one of the most sought after hacks, great work e2s, thank you for sharing with us and thanks Westpointer for the original idea !
lovevn: I am sure it would work |
#10
|
|||
|
|||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|