Log in

View Full Version : vB outside vB?


rogersnm
05-31-2006, 08:11 PM
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
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
chdir('./path/to/your/forumdir/');
require('./global.php');
Many of your links will be messed up, so I suggest using <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
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
Many of your links will be messed up, so I suggest using <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
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
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 (http://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.

Kirk Y
07-04-2006, 08:21 PM
That is the exact opposite of "professional".

Well I must be Mr. Unprofessional then. I use redirects in my root to move visitors to the Portal.