The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Shared user database for multiple forums, same server Details »» | |||||||||||||||||||||||||||
Shared user database for multiple forums, same server
Developer Last Online: Jan 2015
For version 3.5x+, please see https://vborg.vbsupport.ru/showthread.php?t=118473
This thread will detail how to have a single login for multiple forums. It makes the following assumptions:
Here are the steps:
Done! Both forums are now accessed by the same user table! PM's are unified across forums as is the user count. Show Your Support
|
Comments |
#82
|
|||
|
|||
Quote:
|
#83
|
|||
|
|||
I went another route. I replaced TABLE_PREFIX with MERGE_PREFIX and defined it. Though I merged alot more tables then the ones defined here.
For 3.5.X I had to edit the class_dm.php. These are the two stock lines I needed to edit for a 3.5.X. My forums have been running merged for 1 1/2 years now. Only minor issues come up. class_dm.php(rewrite with your merged value.) Search for $return = $this->db_insert(TABLE_PREFIX, $this->table, $doquery); Search for $return = $this->db_update(TABLE_PREFIX, $this->table, $this->condition, $doquery, $delayed); Other then that, the above hack should work. |
#84
|
|||
|
|||
I could pay if anyone can do this for me. I am using 3.5.x
Thanks |
#85
|
|||
|
|||
Hi, This is really good info , I want to do something different , I want to to get all the forum posts categories and what ever it has except the skin template , can you please guide me on this. the idea is I want to have a different skin on one of my forum.
|
#86
|
|||
|
|||
westpointer is dead
|
#87
|
||||
|
||||
hehe ... no, not dead. I think the one poster summed it up well. This is more a concept than an easy to install mod. If you aren't versed in php, I really don't recommend trying this.
:banana: :banana: |
#88
|
|||
|
|||
I'm about to try this for 3.5.4 right now. I have a site ready to launch, and I'm this is all I need for it. Just to let you know, I assumed I would have to figure this out myself untill I googled "vbulletin same login on multiple forums".
Whether this works or not, I want to thank Westpointer for this BEFORE I start cursing and screaming. Here goes. I'm not optomistic. If you don't hear back from me shortly assume the worst and don't try it on 3.5.4. |
#89
|
|||
|
|||
I should note, I backedup the entire new forum directory, so my numbers may be off here, especially since I see them replacing things in the install dir. I just thought better safe than sorry since their may be more things that needed changes made in them than 3.0.8 did.
First replace... 597 replaced in 315 documents. Second replace... 8 replaced in 315. Third replace... 77 replaced in 315. #8 - changed [ . TABLE_PREFIX . $idname] to [. "$idname] on line 1242 of /includes/functions.php print_chooser_row (with two o's) starts on line 1497 of /includes/adminfunctions.php. started replacement at 1506, but I'm not sure I did it right. I replaced Code:
if (!is_array($GLOBALS["$cachename"])) { $GLOBALS["$cachename"] = array(); $result = $vbulletin->db->query_read("SELECT title, $tableid FROM " . TABLE_PREFIX . "$tablename $wherecondition ORDER BY title"); while ($currow = $vbulletin->db->fetch_array($result)) { $GLOBALS["$cachename"]["$currow[$tableid]"] = $currow['title']; } unset($currow); $vbulletin->db->free_result($result); } Code:
if ($tableid == "user" OR $tableid == "usergroup") { $result = $DB_site->query("SELECT title, $tableid FROM "."$tablename $wherecondition ORDER BY title"); } else { $result = $DB_site->query("SELECT title, $tableid FROM " . TABLE_PREFIX . "$tablename $wherecondition ORDER BY title"); // existing code } construct_style_choose starts on line 166. Replaced on line 175, Code:
$tableid = $tablename . "id"; Code:
$tableid = $tablename . "id"; if ($tablename == "user" OR $tablename == "usergroupid") { $result = $DB_site->query(" SELECT title, $tableid FROM "."$tablename WHERE userselect = 1 ORDER BY title "); } else { // existing code $result = $DB_site->query(" SELECT title, $tableid FROM " . TABLE_PREFIX . "$tablename WHERE userselect = 1 ORDER BY title "); } |
#90
|
|||
|
|||
whhew, I'm glad I documented that... cause it worked.... er, almost.
The PM's are screwed up. I can compose and send them... but I can't read them. Even if I send one, I can't view it in my sent items folder. When I switch between the forums they both show the same thing (2 messages in inbox) and when I go to my PM folder the space where the PM title should be is blank. There are still two rows in the table (one for each message) and there is even that little check box on the right to mark them for deletion. Only problem is with no title to the message, I can't view the message. Bottom line, everyone has been bugging to get this ported to 3.5.x, but nobody just went through it to see if it would work. It almost did. All you have to do is follow the directions carefully. Westpoint - excellent job here on this hack. Your time and efforts are greatly appreciated by everyone here, regardless of how they express it. Hopefully you or someone here will be able to get the PM issue fixed. It looks like something small, cause I'm not getting any error messages. Unfortunatly I don't know how vb works well enough to figure it out myself. |
#91
|
|||
|
|||
Well, I spoke too soon. Registration is completely jacked up. Depending on which forum you register in, you'll have different problems. Undoing all the work.
Cheers, and hopefully someone will have more sucess than I, and maybe my experiment will help a little. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|