vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Possible to share member database across multiple vb sites? (https://vborg.vbsupport.ru/showthread.php?t=248054)

jl255 08-05-2010 05:29 PM

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?

booher 08-05-2010 05:58 PM

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 :p

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

merk_aus 08-06-2010 05:29 AM

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.

jl255 08-06-2010 06:53 AM

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 :(

booher 08-06-2010 01:28 PM

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

jl255 08-07-2010 01:37 AM

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.

phpdesk 09-13-2010 09:25 AM

Quote:

Originally Posted by merk_aus (Post 2079925)
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 (Post 2079942)
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 (Post 2080345)
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.

doob 09-15-2010 01:58 AM

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...


All times are GMT. The time now is 11:50 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.01155 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete