Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 08-05-2010, 05:29 PM
jl255 jl255 is offline
 
Join Date: May 2007
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Possible to share member database across multiple vb sites?

Is it possible to use the same member database across different vbulletin sites? So it means that when someone registers at one site, he can use the same login for other vb sites and keeps his profile, etc....

Would this be possible at all?
Reply With Quote
  #2  
Old 08-05-2010, 05:58 PM
booher booher is offline
 
Join Date: Jan 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, you could *in theory* install 2 copies of vbulletin in the same database with each having a seperate prefix (ex: vb_ and vb2_) then just search and replace all of the calls for the user table in all of the files to call it from the other prefix (ex, if you want installation 1 to load users from installation 2 you would change it to load ONLY THE USER TABLES using vb2_ prefix instead of the vb_ one in the rest of the queries. that SHOULD work... in theory but ey who knows :S lol

Also, be sure to backup database and files before you do that :S lol

EDIT:
looking at the code, you could probably replace all of the:
PHP Code:
" . TABLE_PREFIX . "profilefield 
with:
PHP Code:
PREFIX_profilefield 
and the:
PHP Code:
" . TABLE_PREFIX . "user 
with
PHP Code:
PREFIX_user 
and the same with usergroups, and any other user-related table don't forget to back everything up though in case i'm wrong as i haven't tested this, just theory

just replace PREFIX_ with the prefix of the installation you want to load users from :P and change it on the other one (the one that doesnt use the prefix you want to load users from) and sorry if that's not explained well i suck at explaining. If you have any questsions just ask =) or drop me an e-mail at: booher[at]techsensation[dot]net
Reply With Quote
  #3  
Old 08-06-2010, 05:29 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could use the mod that was released here called vBFacades, you need two vBulletin licenses and it looks like two sites (but behind the scenes is one big one) with it's own unique style, boards showing etc.

Do a search for it.
Reply With Quote
  #4  
Old 08-06-2010, 06:53 AM
jl255 jl255 is offline
 
Join Date: May 2007
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tks booher. appreciate the effort. hoping to find something that is tried and tested though. but will definitely explore this approach.

vbfacades is no longer published unfortunately
Reply With Quote
  #5  
Old 08-06-2010, 01:28 PM
booher booher is offline
 
Join Date: Jan 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It wouldnt cause any security problems as far as i can see, it doesnt modify the query, just changes where a few load from. it even loads from the same table, just a different prefix, I just might be missing a couple other tables you'd have to change. gimme a bit and i'll look

--------------- Added [DATE]1281105376[/DATE] at [TIME]1281105376[/TIME] ---------------

Some other tables you might wanna change in the same way are:

# passwordhistory
# picture
# picturecomment
# picturecomment_hash
# pm
# pmreceipt
# pmtext
# pmthrottle
# ranks
# reputation
# reputationlevel
# socialgroup
# socialgroupcategory
# socialgroupicon
# socialgroupmember
# socialgrouppicture
# strikes
# Structure user
# useractivation
# userban
# userchangelog
# usercss
# usercsscache
# userfield
# usergroup
# usergroupleader
# usergrouprequest
# userlist
# usernote
# userpromotion
# usertextfield
# usertitle
# visitormessage
# visitormessage_hash
# word
Reply With Quote
  #6  
Old 08-07-2010, 01:37 AM
jl255 jl255 is offline
 
Join Date: May 2007
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yah i guess the concern is the complications with tracking and allocation of post counts, reputation and the works. pretty sure that anything not set right will cause a serious db corruption.
Reply With Quote
  #7  
Old 09-13-2010, 09:25 AM
phpdesk phpdesk is offline
 
Join Date: Jan 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by merk_aus View Post
You could use the mod that was released here called vBFacades, you need two vBulletin licenses and it looks like two sites (but behind the scenes is one big one) with it's own unique style, boards showing etc.
The price of running two or more vbulletin sites on a single setup could turn high in my opinion. You should not ignore the growing potential of a portal website. A fresh vB install uses around 14.5Mb of database space on the server, and that will reach into hundreds of megabytes eventually. Now imagine what it would take to backup and restore databases if you were to run multiple vBulletin sites in one place...

Quote:
Originally Posted by jl255 View Post
vbfacades is no longer published unfortunately
That might be because the idea is good in theory, it's rather difficult to achieve.

Quote:
Originally Posted by jl255 View Post
yah i guess the concern is the complications with tracking and allocation of post counts, reputation and the works. pretty sure that anything not set right will cause a serious db corruption.
Most probably.
Reply With Quote
  #8  
Old 09-15-2010, 01:58 AM
doob doob is offline
 
Join Date: Dec 2009
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've thought about the idea of being able to share login data between vb installations on different sites. There's a huge advantage since users wouldn't need to register at each site, nor remember different logs/passwords for each site. You wouldn't necessarily have to share or agreggate post data, just the login/password date. The user might still have to modify their preferences for each site.

I wish I had a clue as to how to accomplish this...
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 09:20 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.03822 seconds
  • Memory Usage 2,226KB
  • 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
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete