vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Split existing vB5 installation into two subdomains (https://vborg.vbsupport.ru/showthread.php?t=324775)

ndoktoruser 03-20-2017 02:50 PM

Split existing vB5 installation into two subdomains
 
Hello!

I am trying to split one existing vBulletin installation into two subdomains. Is this even possible?

Lets say there are two different sudomains:

forum1.mywebpage.com
forum2.mywebpage.com

In my vBulletin installation I have various subforums:

Subforum A
Subforum B
Subforum C
Subforum D

I would like to have Subforums A and B to be only visible on forum1.mywebpage.com and Subforums C and D only visible on forum2.mywebpage.com

Solutions that come to my mind:

1) One vBulletin installation which checks $_SERVER['HTTP_HOST'] and delivers the correct subforums.

Probably there would be problems with search queries. It would be hard to separate most of the functionalities and it would be hard to find every single place VB does the treatment to fetch data from DB.

2) Two different vBulletin installations with a shared database.
The two installations would have their own database, just userdata would be stored in a shared database. Would this be possible?
Could vBulletin be configured in a way so that it will store userdata in a different database?

Right now I tend towards a shared database, but not sure if this is even possible.

Maybe you know more? Any help is greatly appreciated! Thank you very much.

Dave 03-20-2017 04:38 PM

I've tried to create this once for a vBulletin 4 forum based on https://vborg.vbsupport.ru/showthread.php?t=254197 and it was a pain to make.

I highly doubt it's a practical thing to make for vBulletin 5 since you'll have to know how vBulletin 5 works from the inside out. Besides that, it may not have all the appropriate hooks available to make such plugin for vBulletin 5.

Mark.B 03-20-2017 05:14 PM

A quick note which I'm sure you're aware of but doing this will require two separate vBulletin licenses as well.

ndoktoruser 03-21-2017 09:06 AM

Hi!

Thank you for the reply.
I imagined it would be pretty complex, because I would need to know every single place in which vBulletin 5 access the DB.
Now I think that I would need to create tables "searchtowords_[a_z]" for each subdomain, right?
Not to tell about other possible problems that I am not aware of.

I am kind of giving up, but it surprises me that it isn't a request common enough to be added by default.

And yes, I imagined I will need a separate license.

Extra question: is it possible to, at least, share the authentication? I see that private messages would be a different problem, once they are stored in the table node, but it would be really good if users could have an account and be able to access both forums.


All times are GMT. The time now is 09:53 AM.

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.00939 seconds
  • Memory Usage 1,717KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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