PDA

View Full Version : integrating vb with subdomain


DiscussAnything
01-17-2005, 11:12 PM
I want to set up a seperate section on my site on a subdomain, which will only be available to certain usergroups. Before getting too far into it, I wanted to check if it will be possible to integrate the subdomain php with the maindomain's vbulletin forum. Mostly recognizing a user.

Main domain is

/domain/httpdocs/

Subdomain is

/domain/subdomains/subdomain-name/httpdocs/

Will this be a problem? Is it possible to refer to the global.php by using the relative server path rather than http/browser path/url?

Pointing me to existing info is appreciated too. I couldn't find anything. Thanks

sabret00the
01-19-2005, 03:39 PM
no it shouldn't be a problem as long as you include the global via the full path make sure to do your chdir() with the fall path also.

eJM
01-22-2005, 05:16 PM
Is this also possible with the following domain structure?

my_domain
|
|... forums.my_domain (this is where vB is located now)
|... sub2.my_domain
|... sub3.my_domain

I would like to design it so that the other domains, including the home domain, are styled identically, but with their own specific content.

Any guidance would be appreciated.

Andreas
01-22-2005, 05:21 PM
Directory structure doesn't matter, as long as you can chdir() between the directories.
But it might be necessary to create and enable symlinks, as subdomain1/images for example most likely does not exist.

Also make sure that cookies can be set and read from all subdomains.

eJM
01-22-2005, 10:16 PM
...But it might be necessary to create and enable symlinks, as subdomain1/images for example most likely does not exist.

You're referring to the graphics that make up the style, correct? And those would all be in the images folder of the forums. I do, or will have and image folder in each sub-domain and I did set up an images/global on "my_domain.com" in anticipation of copying all the style and navigation graphics to that folder for the root domain and all sub-domains except forums.my_domain.

Would it make a difference if I didn't care about logins and cookies on any part of the site except the forums and portal (using vBadvanced, also in the forum directory)? I am mainly interested in having the same look and feel as the forums (I use a custom style), but having special content between the header and footer graphics.