Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 06-17-2002, 04:31 PM
leeherron leeherron is offline
 
Join Date: Dec 2001
Location: Pensacola, FL
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Shared User Database

Interested if anyone has done anything to share a user database between more than one installation of vbb?

There are a few issues that could be addressed .. simply a central database server for the user database of all vbb installations would probably be the easiest, but could cause problems due to server connections on one box being inconsistant.

Has this been discussed or addressed by anyone yet?
Reply With Quote
  #2  
Old 06-17-2002, 04:32 PM
leeherron leeherron is offline
 
Join Date: Dec 2001
Location: Pensacola, FL
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I should note; I am talking about the vb installations being on different servers than the user database.
Reply With Quote
  #3  
Old 06-17-2002, 08:06 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im pretty sure it wouldnt work...

Satan
Reply With Quote
  #4  
Old 06-17-2002, 08:41 PM
leeherron leeherron is offline
 
Join Date: Dec 2001
Location: Pensacola, FL
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's no question that it can be done, the question is if anyone has discussed or already done it?

Central authorization database is not uncommon. VBB queries a SQL server for permissions, having it query one on a different server is quite doable.
Reply With Quote
  #5  
Old 06-17-2002, 08:48 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i don't know that such a thing has been released...

but it would also be very hard or nearly impossible, because on some times you'll nee the usertable and an other table in the same query...
Reply With Quote
  #6  
Old 06-17-2002, 08:52 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the first look it's very close to impossibility.

If MYSQL has a "redirect" feature for tables just like webservers, one line of code would do the trick, but unfortunately it doesnt have it.

The other possible solution would be going through the entire vb scripts and make heavy modifications in there to query other user table whenever vb interrelates with user table. I really wouldnt want to be the hacker to code this! :knockedout: Even if you have the courage to do this there are "joined queries" to user table in many parts of the code and they have to be structered totally in a different way and code and algorithm would change dramatically. So at last maybe it will work but I wouldnt call this script vbulletin anymore. You can really name the script after you..

And the third possibility (IMO the most practical) is to design the structure similiar to db/dns replication (are you familiar with the concept?). You can create a script connected to a cron job that will be triggered X times a day, go through the both user tables and populate the necassary fields accordingly. For example take existing new users from one and write to the other, update lastactivity field according to highest number etc.. Still not an easy job, but at least it's more practical..
Reply With Quote
  #7  
Old 06-17-2002, 10:20 PM
leeherron leeherron is offline
 
Join Date: Dec 2001
Location: Pensacola, FL
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician
.. have the courage to do this there are "joined queries" to user table in many parts ..
After Xenon's post, I remembered all the user table queries .. it would require a complete rewrite to do something like this.

Quote:
Originally posted by Logician
design the structure similiar to db/dns replication
This would be closer, but wouldn't work well with username creation .. would require a delay for new member registration.

The biggest problems stem from the user stats involved ..
Reply With Quote
  #8  
Old 08-27-2002, 05:25 PM
planetrap planetrap is offline
 
Join Date: Jan 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

automotiveforums.com has something done like that, i been planning on doing it as well, but i don't know what to do
Reply With Quote
  #9  
Old 08-27-2002, 05:42 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it looks like just one database to my and one forum... but i could be wrong... if you're looking for similiar design all you have to do is have a list of subforums inside a forum... thats all they did really and then customized the look of the forum home and forum display templates... regards...

g-force2k2
Reply With Quote
  #10  
Old 08-27-2002, 09:04 PM
okrogius okrogius is offline
 
Join Date: Dec 2001
Location: USA
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have two different vbs using one same userbase.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03466 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete