vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Navbar in Footer as well as header? (https://vborg.vbsupport.ru/showthread.php?t=76831)

Sir Rb 02-22-2005 11:24 AM

Navbar in Footer as well as header?
 
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
PHP Code:

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

PHP 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>&nbsp;</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:
PHP Code:


<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>&nbsp;</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?


All times are GMT. The time now is 09:19 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.01209 seconds
  • Memory Usage 1,767KB
  • 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
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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