Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2017, 02:50 PM
ndoktoruser ndoktoruser is offline
 
Join Date: Aug 2015
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 03-20-2017, 04:38 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
ndoktoruser
  #3  
Old 03-20-2017, 05:14 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A quick note which I'm sure you're aware of but doing this will require two separate vBulletin licenses as well.
Reply With Quote
  #4  
Old 03-21-2017, 09:06 AM
ndoktoruser ndoktoruser is offline
 
Join Date: Aug 2015
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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 06: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.04597 seconds
  • Memory Usage 2,193KB
  • 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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (1)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete