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 |
#142
|
|||
|
|||
Has anyone got this working properly with 3.7.4?
Is there a way to share some of the forums, as well? |
#143
|
|||
|
|||
Hi - I've tried to contact the author to see if they'll upgrade to the latest version of VB as a paid service, but no avail. Any ideas if this is compatible, or if there is an alternative to this for 3.8.x users?
|
#144
|
||||
|
||||
I would love tis in 3.8 too!!
|
#145
|
||||
|
||||
Anyone fancy doing this for 3.8x?
|
#146
|
|||
|
|||
I am currently working on a 3.8 version. I have the tables shared and it's working in terms of logging in. Acutally a lot of it works. But I'm getting insert errors when trying to create a new thread.
*edit this might be because I made new forums before importing the usertable. |
#147
|
|||
|
|||
Finished. So far so good.
Mod installation seems to be exactly the same in terms of edits for 3.8.1 |
#148
|
|||
|
|||
OK, I've asked these questions in the thread for vB 3.0.x and got no answers, so I would post it here as well, since there are a few things that you guys may have seen and could save me the trouble. Here are my questions:
I would like to know how the "sessions" are handled. I have some questions here and I would appreciate if someone can answer them for me. Let's assume two sites, A and B. With this hack, all user information is kept in the "user" table in database A. A member of site A logs in Site B. Obviously, since the last login time is stored in the shared user table, the last login time entered in the table, will be common for both sites, correct? So if the member comes back after two days and logs-in in site A, the last login time will be the last login time from his visit in site B. That means that if the user asks to see the new posts since his last visit (for example), the posts shown to him will not be correct, he will miss the posts between the last time he visited site A and the time he visited site B. Am I correct on this? It is of course possible to alter the user table to have separate columns for these time parameters for site A and site B. Another question: again, let's suppose that a member logs in site B, does some work there and then follows a link to site A. Will he still be logged in in site A or will he need to re-log in in the other site? In other words, how are cookies handled? And what difference will it make if someone uses the "Remember me" checkbox in one site? |
#149
|
||||
|
||||
Great questions John!
I'm keeping my eyes open for the answers as I'm researching this as well |
#150
|
||||
|
||||
any update on a new vesion of this mod or if it works on 3.8 and above ?
|
#151
|
|||
|
|||
Would it be possible to get this to work for VB 4? I'll gladly pay.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|