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 |
#82
|
|||
|
|||
And.. where is the answer - does it work on 3.6.4 or not?
|
#83
|
||||
|
||||
Hi e2s ,
Can you please port it to latest vbulletin version? Thank you. |
#84
|
|||
|
|||
Quick question, what happens when you merge two users from the admincp, or delete a user from the admincp? From researching how to do this myself, everything blows up, correct? If you have two websites, site1 and site2, and try to merge user1 into user2 while in the admincp of site1, here is what I foresee happening:
- All of user1's posts, threads, etc on site1 correctly get changed to user2 - All of user1's info (postcount, pm count, etc) correctly gets added to user2 - User1 gets correctly deleted - However no posts, threads, or anything on site2 get changed to reflect user2 instead of user1 Ideas, thoughts, or comments on how to overcome this short of never deleting or merging members, ever? |
#85
|
|||
|
|||
Anyone running this with VB 3.6.4???
|
#86
|
|||
|
|||
yes, i am interested in getting this to work with 3.6.4 as well..
|
#87
|
||||
|
||||
anyway you could port this for 3.6.4?
|
#88
|
|||
|
|||
All this basically does is just use a common database for every table that begins with user, strikes, pm, and session. If you want to do that, just use views. No code editing required, and much simpler. But that still doesn't take care of the situation I just posted about... it will explode if you ever try to merge or delete users.
|
#89
|
|||
|
|||
does it work for 10 different urls?
|
#90
|
|||
|
|||
I just got it working with 3.6.4
www.invision-gaming.co.uk/forums and http://forums.invisiongamers.com It took ALOT of modding. There was lots of broken things in there. Mainly with usergroups. All the usergroups were messed up and I had to play around with the admin functions severaly to hack them up but Im very pleased with the mod. Gj |
#91
|
|||
|
|||
Could you share the code Kalyse?
I'm would like to do this for 3.6 too |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|