View Full Version : Two sites, one database
amagab
12-04-2009, 03:46 PM
This is the scenario:
I started a forum dedicated to "Topic A" with a subforum for "Topic B".
Topic B is now outperforming Topic A.
Is it possible to create a new site focusing on Topic B and still keep the Topic A site?
What I'm really asking is, can there be two websites with different design but with the same database?
Thanks!
BBR-APBT
12-04-2009, 04:35 PM
You will need two vbulletin licenses.
amagab
12-04-2009, 04:41 PM
You will need two vbulletin licenses.
That wouldn't be a problem.
BBR-APBT
12-04-2009, 05:01 PM
ok then you would use the same database with different domains.
Upload the same files on both servers
something like this would be in a plugin
if $_SERVER['SERVER_NAME'] = www.site-a.com
show forum-a ids array here
if $_SERVER['SERVER_NAME'] = www.site-b.com
show forum-b ids array here
It should show up in both admincp's since they share the database.
I just gave a round about example. The above code will not work.
amagab
12-04-2009, 05:20 PM
That looks promising. So if I understand your code correctly it's a matter of show or hide of forum IDs on each site? ...but in the background it's one big forum?
What about Style? Obviously, each site would have different logos and headers. Is there a way to have different styles on each site?
Thanks!
BBR-APBT
12-04-2009, 05:26 PM
again in a plugin
if $_SERVER['SERVER_NAME'] = www.site-a.com
set site-a style
if $_SERVER['SERVER_NAME'] = www.site-b.com
set site-b style
Download one of the forum tab mods for 3.8 and look how they hide and show forums depending on tab selected and pretty much do the same thing but with the site name.
amagab
12-07-2009, 05:35 PM
Thanks.
What are the pros and cons in this?
I have a very active community. The interest of the members is kind of split though which is why I'm planning to launch an additional site.
Is it better to have two separate databases or just one?
amagab
12-12-2009, 06:51 AM
How will it work with registration and cookies if I use two domains with one database?
Wired1
12-12-2009, 07:20 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=229858" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=229858</a>
amagab
12-12-2009, 03:09 PM
Thanks for the link but I would need something that is supported and handles different CMS'.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.