The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
have navbar working outside vb but problem with links
hello
I have navbar coming up on non vb pages but i want to place the navbar on pages in my root directory / and the forums are in a subdirectory /forums, the code im using is below everything works as i said but the links that are being generated in navbar are going to www.site.com/usercp.php etc all top level, when i need it to point to www.site.com/forums/usercp.php what can i add so it appends /forums to all the links it generates i want to use other templates after i get this working any help's appreciated thanks <?php chdir('forums'); require_once("./global.php"); eval('$headinclude = "' . fetch_template('headinclude') . '";'); eval('$header = "' . fetch_template('header') . '";'); eval('$navbar = "' . fetch_template('navbar') . '";'); echo $headinclude; echo $header; echo $navbar; ?> |
#2
|
||||
|
||||
In your navbar template try adding $vboptions[bburl] to your links.
<a href="$vboptions[bburl]/usercp.php"> Same as you would have if you are using it in root on something like CMPS |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|