View Full Version : Navbar in Footer as well as header?
Sir Rb
02-22-2005, 11:24 AM
http://i.1asphost.com/Jinno/OC.JPG
The navbar on the left hand side which says Outfieldcenter forums etc etc has been requested to also be at the bottom where the display options and "currently online" are situated at the moment.
I know I have to copy some coding from the header to the footer and thought I had it, however what I did didn't work so I promptly deleted it.
Could someone show me on here a way of doing this?
Regards
Robson Brown
Outfieldcenter.
RichieBoy67
02-23-2005, 01:25 AM
I like that idea.
Somebody had posted an addon navbar a while back that was pretty cool...
--
Adrian Schneider
02-23-2005, 01:49 AM
Not tested, but should work:
Paste just before the ?> in global.php
eval('$navbar = "' . fetch_template('navbar') . '";');
Now go into your footer template (probably at the very top or so), and put $navbar (or wherever you want it).
You could an edited version of navbar (just keep names consistant) if you want it different than the main one.
RichieBoy67
02-26-2005, 01:54 PM
cool!
I'd be afraid to do that in my site though because I am using a skin... I plan on adding another text based navbar because it is just to hard to install links in the image based navbar of my sites skin...
-
I tried that and it did not work on my site..
Michael Morris
02-27-2005, 09:18 AM
TheSpecialist is wrong - evaluating the navbar before the page is completely built can have unpredictable effects. There's a reason it's evaluated last.
I did this for Wizards of the Coast. It can be done entirely from the templates themselves, but it does require the editting of more than a few templates. A navbar on the bottom though is only likely to be especially useful for the FORUMDISPLAY and SHOWTHREAD templates. The process is the same regardless of the template you're editting.
Find the $footer variable in the template. Above it add this code
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td> </td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
Now you'll probably want to adjust that code to suit your tastes and whatever style set you're using - but that's the basics.
Note that all this applies only to the breadcrumbs. The rest of the navbar can be placed pretty much whereever you please. Personally I pulled the dropdowns of the navbar and stuck them in the header.
Sir Rb
02-28-2005, 12:16 PM
Thats worked perfectly, thank-you.
havefun
03-02-2005, 11:51 AM
i used this code in my forum:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1)"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td> </td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
</tr>
</table>
<br />
in FORUMDISPLAY find:
<!-- / controls below thread list -->
<br />
after it add the code from the box
in SHOWTHREAD find:
<!-- / controls below postbits -->
<br />
after it add the code from the box
JGNYC
06-13-2005, 08:00 PM
Is it possible to have the bar on the bottom of every forum page, not just while viewing threads?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.