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)

ps2wiz 10-22-2009 08:41 PM

Quote:

Originally Posted by Shadawg (Post 1847258)
Having one problem with this, if a user joins forum a, they are added to the total member list in forum b, but if a member joins forum b, they are not added to forum a.....

how can i fix this?

That is the only problem I myself have also.

Lionel 10-24-2009 05:27 PM

Quote:

Originally Posted by ps2wiz (Post 1903948)
That is the only problem I myself have also.


https://vborg.vbsupport.ru/showpost....&postcount=109

gibgib 11-25-2009 10:25 AM

Can't get this to work with vb 4.0.

There's a lot of extra lines in the class_core.php in the new VB.

cloferba 12-08-2009 02:30 PM

Quote:

Originally Posted by gibgib (Post 1920640)
Can't get this to work with vb 4.0.

There's a lot of extra lines in the class_core.php in the new VB.

please! help!

will this addon be upgrade to v4?? :erm::erm:

lcp03o 05-09-2010 01:50 PM

I have a problem where on my 2nd / slave board when you click on on a members user name it should take you to the member list page for that user. But instead im getting a "Can not find user" error, Does anyone know what I can do to resolve this??

Master board www.pspmod.com
Slave Board www.console-mods.com

Thanks

DragonMasterNYC 05-14-2010 10:10 PM

I've started to get this to work on 4.0.3 PL1 suite. So far only a few of the connections work. I'm still trying to figure out a work around for the avatars.

gibgib 05-15-2010 01:00 AM

I haven't had any luck with it on vB4 so I have stay with 3.8.
If you have any success please let us know.

lcp03o: here is a copy of what I add to classcore & have no problems with sharing the stuff I need, that being the users info only, so the threads & posts etc are unique.

Code:

  $shared_tables = Array("user","useractivation","userban","usertitle","userchangelog","usertextfield","userfield","usergroup","userlist","usernote","profilevisitor","reputation","reputationlevel","spamlog","strikes","pm","pmreceipt","pmtext","avatar","customavatar","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);
 
              }


DragonMasterNYC 05-16-2010 03:28 PM

If you add "customavatar","customprofilepic","sigpic","sigpar sed" all uploaded images will work between sites. Also "visitormessage" for those who want to share more profile information.

Now it works perfectly on 4.0.3 PL1. I only took out "userban" for my own usage, but it still works in vB4.

Code:

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

              $main_prefix = "FA";
              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);

              }

Only thing after this is modifications that you might share between sites if they don't use those tables.

gibgib 05-17-2010 07:45 AM

That's amazing.

It did not work for me at all, it completely ignored the added lines in classcore.
I'm a bit scared to try it again as it represents a lot of work creating temp forums.
May try at the weekend :D

gibgib 05-17-2010 07:47 AM

Has anyone tried a common cookie domain yet?
I mean so the users can float between without any logging in at all, on any of the sites.

DragonMasterNYC 05-18-2010 04:01 PM

I haven't tried yet with the cookies, considering what my aim is for this mod.

"cron" can be shared is you want the same scheduled tasks to run on all sites when active.

Also "phrase","language","templateedit","templateeditlo cation" can be added if you want to share template modifications between sites with the Template Modification System.

I would advise people to not share "styles" between sites since you would need to reorder each commercial style to use on each slave site. Also don't share any product info ("product","productcode","productdependency") since some forums might have cms/blog which are vB Suite only with vB Forums since vBulletin will most likely ask you to buy or upgrade to suite for the slave sites. Ony way to really share products in my mind is to make sure all slave sites pay for the exact same type of vB license and also pay for any paid modifications the master site has.

I'm trying my best to stick to the terms in the licensing for vBulletin and other products associated with it so people don't get shutdown notices from anyone.

Right now I'm only testing 2 sites locally and 1 at a remote location to make sure all the connections are working properly. I'm having users randomly generated to simulate users registering on the different sites and also simulate activity on the sites to make sure the scheduled tasks run normally so that when a new user registers all sites update their new user info and user count. I will be making a newuser.php cron job just to update the user counts now I have it set to 10 min intervals right now, but I'm sure it would be better to use more like 20, 30 or 60 min intervals on live forums.

Wilfred1 06-04-2010 09:02 PM

I have a few urgent questions that I hope someone can answer for me.

If I have one domain site setup with:
root (home page)
root/forum1
root/forum2
root/forum3
root/custom_avatars
root/profile_pics etc

All the above use the same db with the different prefixes used as per this mod.

Will this mod work ok?
What would be the limitations?
Could users login on one forum or home page and be logged in on all forums?
Would this setup require extra vb licenses?

Thanks for you help

Wilfred1 06-05-2010 11:18 PM

In 4.0.3 I noticed that the code:
Code:

$this->querycount++;
is in 2 places in the class_core.php file so do you add this mod after both instances?

vitoreis 06-08-2010 07:05 PM

Quote:

Originally Posted by DragonMasterNYC (Post 2039308)
I haven't tried yet with the cookies, considering what my aim is for this mod.

"cron" can be shared is you want the same scheduled tasks to run on all sites when active.

Also "phrase","language","templateedit","templateeditlo cation" can be added if you want to share template modifications between sites with the Template Modification System.

I would advise people to not share "styles" between sites since you would need to reorder each commercial style to use on each slave site. Also don't share any product info ("product","productcode","productdependency") since some forums might have cms/blog which are vB Suite only with vB Forums since vBulletin will most likely ask you to buy or upgrade to suite for the slave sites. Ony way to really share products in my mind is to make sure all slave sites pay for the exact same type of vB license and also pay for any paid modifications the master site has.

I'm trying my best to stick to the terms in the licensing for vBulletin and other products associated with it so people don't get shutdown notices from anyone.


Right now I'm only testing 2 sites locally and 1 at a remote location to make sure all the connections are working properly. I'm having users randomly generated to simulate users registering on the different sites and also simulate activity on the sites to make sure the scheduled tasks run normally so that when a new user registers all sites update their new user info and user count. I will be making a newuser.php cron job just to update the user counts now I have it set to 10 min intervals right now, but I'm sure it would be better to use more like 20, 30 or 60 min intervals on live forums.

Thank you for your work! Continue to share all whis us, please.

DragonMasterNYC 06-14-2010 03:07 PM

No problem, I've been trying to do this for a years. I started a site just for this and then took it down since no one wanted to help. Right now my partner is the only one willing to help on this project since he can see the potential of it.

As of now I'm still working on a better solution for this project since in some cases like the usergroups table we just want to share rows of info instead of the whole table.

kawe 07-03-2010 12:11 AM

Fixed :d

DeardsGlobal 05-19-2011 08:16 PM

I'm working on building a network of gaming forums and I think this would work perfect. I'm just making sure though.

I have two game forums. With this I could pretty much bridge them together so that a user registers on either forum and post on both?


All times are GMT. The time now is 01:01 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.01294 seconds
  • Memory Usage 1,794KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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