vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   integrating vb with subdomain (https://vborg.vbsupport.ru/showthread.php?t=74553)

DiscussAnything 01-17-2005 11:12 PM

integrating vb with subdomain
 
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

Quote:

...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.


All times are GMT. The time now is 12:39 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.01070 seconds
  • Memory Usage 1,718KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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