vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   vB outside vB? (https://vborg.vbsupport.ru/showthread.php?t=117240)

rogersnm 05-31-2006 08:11 PM

vB outside vB?
 
Hey,
I am making a home page with a template in vbulletin. The problem is my forums ar here: blahblahsite.com/forums and the page is here: blahblahsite.com and it comes up with a bunch of errors about global.php when i try to open it any ideas?

Superpoo 05-31-2006 08:20 PM

check the URL in the
Code:

vBulletin Options -> Site Name / URL / Contact Details
Forum Name -> Forum URL

box, and put the right URL

rogersnm 05-31-2006 08:30 PM

Yeah, i know that but i mean putting a page outside vb. Kind of like vBadvanced

Adrian Schneider 05-31-2006 08:43 PM

PHP Code:

chdir('./path/to/your/forumdir/');
require(
'./global.php'); 

Many of your links will be messed up, so I suggest using
HTML Code:

<base href="http://yoursite/forums/index.php" />
or altering the stylevars so everything points to absolute (or relative to root) paths.

Paul M 05-31-2006 08:51 PM

Why not just put the homepage as mysite.com/forums/homepage.php and add an index.php in the root that redirects to it.

Lea Verou 06-01-2006 03:53 AM

Quote:

Originally Posted by Paul M
Why not just put the homepage as mysite.com/forums/homepage.php and add an index.php in the root that redirects to it.

That is the exact opposite of "professional".

EasyTarget 06-01-2006 04:49 AM

Quote:

Originally Posted by SirAdrian
Many of your links will be messed up, so I suggest using
HTML Code:

<base href="http://yoursite/forums/index.php" />
or altering the stylevars so everything points to absolute (or relative to root) paths.

where would that html code be placed and how would it be used?

I've been playing with some custom pages outside of the forum and I've changed many of the links (in the navbar for example) to say /forum/script.php instead of just script.php but there's many places where adding /forum/ doesn't work. sometimes it comes out as www.sitename.com/forum//forum/scriptname.php

is there some easy way to do this without having to edit all the links? And how can I make these other links work which have $vboptions[forumhome].php$session[sessionurl_q], $scriptpath, $stylevar[imgdir_misc]/navbits_start.gif, etc?

Paul M 06-01-2006 08:59 AM

Quote:

Originally Posted by Michelle
That is the exact opposite of "professional".

No it isn't.

rogersnm 06-01-2006 09:00 AM

i changed all my links templates and then realised all i needed to do was add base href in the header xD

rogersnm 07-04-2006 08:11 PM

Quote:

Originally Posted by EasyTarget
where would that html code be placed and how would it be used?

I've been playing with some custom pages outside of the forum and I've changed many of the links (in the navbar for example) to say /forum/script.php instead of just script.php but there's many places where adding /forum/ doesn't work. sometimes it comes out as www.sitename.com/forum//forum/scriptname.php

is there some easy way to do this without having to edit all the links? And how can I make these other links work which have $vboptions[forumhome].php$session[sessionurl_q], $scriptpath, $stylevar[imgdir_misc]/navbits_start.gif, etc?

just put the base href in the header of your page. eg. the by the meta tags. Or add it to headerinclude for every page.


All times are GMT. The time now is 07:27 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.01148 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete