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 |
#32
|
||||
|
||||
Quote:
|
#33
|
|||
|
|||
i have a second question
i have 2 boards at different subdomains at same domain I moved some of the threads from board 1 to board 2 and now i have a problem like that My user has 6k messages, after the move at first board it shows his message count as 4k and it shows same number at second board as 4k mustnt it show it like 2k or is it happening because they are sharing the same user table? |
#34
|
|||
|
|||
The total posts of a user is stored in the user table so the amount of posts he has will be for both sites. This modification does not have a way to change it so it shows different post counts for each site.
|
#35
|
|||
|
|||
Quote:
|
#36
|
|||
|
|||
Any advice for someone merging users on 2 existing vb message boards?
|
#37
|
|||
|
|||
Yes on number one
question 2 would be pmtext no _ |
#38
|
|||
|
|||
Quote:
|
#39
|
|||
|
|||
What other options are there to wildedit?
also is prefix like your username in cpanel, you know database name is username_sportsconvo or is it sportsconvo Thanks Jstep |
#40
|
|||
|
|||
Quote:
|
#41
|
|||
|
|||
I have just bought a second vbulletin, I will buy a third if this will work.
I have three different domains all on the same server. www.a.com - Main site www.b.com and www.c.com I want to have the main sites data with User, PM, and sesson data. to be shared with the other 2 sites. Now if a new user signs up on www.b.com will that users info be inserted into the database for www.a.com ? I'm just not sure on one other thing as well. Is it possible to lock out the config.php from being read except for the sever and myself when i log into ftp, because I run www.a.com and my friend runs www.b.com and I dont want him to know the user and pass to the mysql database and to have access to the database at all, as if I was to lose it, that would be seriously bad lol. Just wondering on the security wise of this issue, thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|