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 |
#62
|
|||
|
|||
Lionel: user stats are pulled from the master site if that is what you mean.
Kau: The avatar is different on all sites. To get the bio different you have to edit the database so that the new site pulls from higher profile id's then the master site so if your master site pulls profile id 1-10 you would want to setup profile id's for the new site starting at 20. I know I have done this but don't remember how. When I setup a new site and do this I will write up directions. The Signature is located in the user table so the only way around this would be more code changes. You would need to add fields in the database like newsitesig and so on then make changes to the code on the new site to always look at that field when pulling the signature. I might look into doing something like this soon. Sorry still haven't purchased the 3.6 version yet hoping to in the coming week |
#63
|
|||
|
|||
Quote:
|
#64
|
|||
|
|||
I've got every perfect but two glitches.
1-userstats update only once with cron or if i rebuild user names 2-avatars are same across (except for custom) , BUT I can't get the avatar categories to display independently. Each have their own categories and the slave site does not display the its avatarcategories in profile.php |
#65
|
|||
|
|||
In adminfunctions.php print_delete_confirmation you also need to specify the below (insert it somewhere) or it will switch to default and you will not be able to delete any usergroups. (I don't use prefixes so I have " . ")
Quote:
Then in usergroup.php call that fetch_query_sql2 instead of fetch_query_sql (many instances) Now, all that is left is the avatar category that refuses to display. I did do a search and replace for table_prefix avatar so they all have the same. BTW, there was no problem with userstats and your mod. The problem was with vbadvanced. |
#66
|
|||
|
|||
Phew! I finally figured out the avatars
imagecategory was out of sync |
#67
|
|||
|
|||
I'm reading your hack.
It's very good. It remains a little doubt. Is possible that each slave forum have a separated table users but in the main forum, there is a table with all users of all slave forum? Example. Main Forum= 10000 users Forum Slave 1= 2000 users Forum Slave 2= 4000 users Forum Slave 3= 2000 users Please, make me know |
#68
|
|||
|
|||
2 questions..
1.) I'm assuming when you say admincp/adminfunctions.php you actually mean includes/adminfunctions.php, because adminfunctions.php does not exist in admincp. 2.) When I try to login on the admincp of the slave site, it goes to the "Thank you for logging in" redirect stage, but then it directs me right back to the admincp login form? |
#69
|
|||
|
|||
Quote:
2: redefined04 I think you are using vb3.6 adminfunction.php now in /includes/ |
#70
|
|||
|
|||
Quote:
|
#71
|
|||
|
|||
Wow! Two different boards 3.6.1 working fine!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|