vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Shared user database for multiple forums, same server (https://vborg.vbsupport.ru/showthread.php?t=98233)

justindwhite 02-28-2006 03:14 AM

Quote:

Originally Posted by psalzmann
I don't think you guys realize... that this is a general hack that is not just for vb 3.. it can be used in ANY vb version, it's the "guts" behind the hack/info that defines how or what should be done.

Keep in mind, even with the proper info above for the "set" version he is writing this hack for, still does not work out of the box. Well, it does kinda, if you use the exact version the author is using. However, even the instructions I had to work with, I was missing some strikes table and a few others.. I just skipped them. No harm done.

The only problem I've had with this hack is very minor --

When you have a Running board, with say 1000 members or posts and then begin this hack to a fresh board, the new board statistics do not reflect the old board.

ie: 1 Thread, 1 Post, 1 Members

Then I made a tweak to at least show who's online (I made old board and the new board look at the same `sessions` table, so now if there are 5 users on the old board, there is 5 users + how many users are on the new board. That works.

The problem we have is the "new fresh board" member count. It's only showing 1 member - Admin. However, now I've got to find a way to refresh this stats.. if possible.. to reflect what both boards show. I think it's some serilized data somewhere in the db. I'll figure it out soon enough. :)

well do you mind sharing how you got yours to work? I have tried many times and failed.

Rahjeir 02-28-2006 08:08 PM

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.

lovevn 03-08-2006 02:28 AM

I could pay if anyone can do this for me. I am using 3.5.x

Thanks

john_robot 03-21-2006 06:55 PM

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.

Fenriz 03-22-2006 04:21 PM

westpointer is dead

CyberRanger 03-22-2006 04:37 PM

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:

dicb 03-22-2006 08:22 PM

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.

dicb 03-22-2006 09:20 PM

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);
        }

with
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
        }

Once again, I have no idea if that's right.

construct_style_choose starts on line 166. Replaced on line 175,
Code:

        $tableid = $tablename . "id";
with...
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
        ");
    }

I'm not sure I did everything right, or if there is more that needs to be done, however that is what I did. I am uploading them now, but don't have time to test it. Timestamp should give an idea of how long it took, but subtract one cig break for sanity.

dicb 03-22-2006 10:27 PM

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.

dicb 03-23-2006 05:58 PM

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.


All times are GMT. The time now is 12:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01186 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete