Log in

View Full Version : 2 sites one database


delds
03-08-2006, 09:46 PM
Just checking if this is possible to do....

Have 2 websites, that share the same database. You register on one, and you are registered on both, post on one, and you can view and post/reply on both. The only difference is cosmetic in nature, with a different default template, different title header/logo, perhaps different color scheme, and different right side bar content mod. But all forums the same.

I reliaze it may require a second licence, but just want to know if it is even possible to do first.

Marco van Herwaarden
03-09-2006, 09:48 AM
That would be possible yes. But like you said, better first check with Jelsoft if the exact implementation you want would require 1 or 2 licenses.

LWillmann
03-09-2006, 12:35 PM
But the URL for the board is stored in the database, so if you go to the secondary site for the board, it will probably kick you over to the primary site and not do like you're wanting.

You might be able to put a conditional into the code to test for the requested domain name, and then change the base URL for the objects based on that domain.

I'd say that there's a way to do it, but it might not be so simple.

delds
03-09-2006, 01:44 PM
One other possible idea....

What if it could sense where you entered from....

That could automaticly determine which style was used based on the referer url. Perhaps even consider using a cookie, so it will remember the last style used, so when the same person enters again from a different direction it will read the cookie and keep the same style. No cookie, then it will base the style on the entry url

Blaine0002
03-09-2006, 02:06 PM
i dont think this would agree with the Jelsoft TOS :-/

delds
03-09-2006, 02:43 PM
This is a reply I got from Jake / vbulletin team on vbulletin.com

http://www.vbulletin.com/forum/showthread.php?t=178165

-----------------
Sharing the same userbase is much more difficult. For help with this I recommend you post on www.vbulletin.org.

From your description of what you want to do, I recommend you look into using different styles on the same forum that are activated by a plugin or file hack by the different domains.
-----------------

Marco van Herwaarden
03-09-2006, 02:53 PM
Sharing the same userbase is much more difficult. For help with this I recommend you post on www.vbulletin.org.
Sharing the userbase, but not the posts/forums is very complicated (unless you can life with a lot of limitations).

Accessing 1 board (users, posts, everything) from 2 different domains each showing their own style, is a lot simpler.

delds
03-09-2006, 02:59 PM
I want to use the same user base / forums / posts, only cosmetic it would be different. I guess style based on entry url would do it, perhaps a cookie system that could remember style of the previous entry, and in the absence of a cookie than base on entry url, but would have to be an automated function.

Marco van Herwaarden
03-09-2006, 03:01 PM
Cookie would be of no use. You should base it on the domainname.

delds
03-09-2006, 03:22 PM
domain name would be fine, just need a plug in to do it

Chris 96 WS6
01-01-2007, 03:13 AM
I want to do exactly this....meaning have one site accessible through two domains, same content (forums/posts/users), but different skins and URLs.

I've received the OK from Jelsoft, just need to figure out how to do it.

This is a start: https://vborg.vbsupport.ru/showthread.php?t=93818

..but just raises more questions. Should I park the 2nd domain on the forum index and use URL masking? What is that going to do with parking? And is the style setting going to be preserved once the user surfs throgh several layers?

Would require a second license, but would it be better to host the second domain on its own account on the same server, install the vb files in the second location with config.php set to access the original DB? Still leaves the question of the cookies.

Anybody have any suggestions?

bump...