vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Share users database among many forums (https://vborg.vbsupport.ru/showthread.php?t=185021)

gibgib 11-17-2008 07:23 AM

Still not resolved.
Is there an easy & non destructive way to add prefixes to the start of all unprefixed tables?
Some of the tables on the main forum are prefixed but like mw_ for media wiki, so a script needs to be variable.

kderentz 11-20-2008 06:03 PM

Is this the only Mod to do this? Anyone offer a commercial one with full support similar to how VBSEO does for search opt?

merk_aus 11-24-2008 03:32 AM

Wow,
I got it to work within like ten minutes by reading all five pages and getting everyones input.

Thanks for a great hack this is what I have been looking for and it works perfectly.

gibgib 11-24-2008 03:42 AM

Do you have prefixes on the main db?

J105C 11-29-2008 05:46 AM

Quote:

Originally Posted by TraumTeam (Post 1583028)
Is this the project to run several different Forums (search, new Thread, Categories...) but with the same userdatabase and login?

I requestet this about 5 years ago in vbulletin support forum and i got the answer, that this wont work....

You know vbulletin will deny A LOT of features and functionality to simply keep the trend of requests down. They have denied sharing personal pictures and even the use of attachments very early in their game. Nothing is impossible ;)

maidos 11-29-2008 08:40 AM

when you share the usertable, will the vb featurees like avatars stop working on all forum or just the forum B that is sharing the usertable with from the forum A

maidos 11-29-2008 10:29 AM

also if i share the usertable will the usergroup be the same as forum A ?
and where do i paste that patch, on forum A or forum B?

kderentz 12-03-2008 12:13 AM

Quote:

Originally Posted by merk_aus (Post 1671741)
Wow,
I got it to work within like ten minutes by reading all five pages and getting everyones input.

Thanks for a great hack this is what I have been looking for and it works perfectly.

+1


Also guys my main DB does NOT have prefixes .... I just used this:

Code:

              $shared_tables = Array("user","useractivation","userban","usertitle","userchangelog","usertextfield","userfield","usergroup","userlist","usernote","profilevisitor","reputation","reputationlevel","spamlog","strikes","pm","pmreceipt","pmtext","avatar","profilefield");

              $main_prefix = "";
              foreach ($shared_tables as $shared_table)
              {
                      $orig = TABLE_PREFIX.$shared_table;
                      $dst  = $main_prefix.$shared_table;

                      $this->sql = str_replace($orig." ",$dst." "  ,$this->sql);
                      $this->sql = str_replace($orig.".",$dst."."  ,$this->sql);
                      $this->sql = str_replace($orig."\r",$dst."\r",$this->sql);
                      $this->sql = str_replace($orig."\n",$dst."\n",$this->sql);
                      $this->sql = str_replace($orig."\t",$dst."\t",$this->sql);

              }

and it worked fine. My avatars are not showing up but Im guessing its because they are probably set to store in files not the DB :D

kderentz 12-03-2008 12:15 AM

Quote:

Originally Posted by maidos (Post 1675087)
and where do i paste that patch, on forum A or forum B?

Check this out for the How To:

https://vborg.vbsupport.ru/showpost....1&postcount=53

put it in the class_core.php on the 2nd, 3rd, 4th, ect forums. Leave the class core on the main forum whos user database your using alone.

maidos 12-05-2008 07:00 AM

thanks for the reply =)
now im wondering if this support mysql 5.1.30


All times are GMT. The time now is 03:59 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.01921 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (3)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