vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Additional navbar at bottom of forumdisplay (https://vborg.vbsupport.ru/showthread.php?t=113107)

Spenser 04-15-2006 07:24 PM

Additional navbar at bottom of forumdisplay
 
Hi!

I tried to add another navbar at the bottom of each page to ease navigation to higher-level forums.
So I copied the navbar-template and added a new one "navbar2" that is all the same as navbar. Finally I removed the login-stuff and navigation-stuff and so reduced it to the level I want.
Unfortunately there are no links shown (iirc it's the breadcrump-stuff).
Please have a look at the bottom of http://forum.computerbetrug.de/forumdisplay.php?f=15
There you will see what I mean.
It just seems as if the variables in the template are not parsed.

Please help me to solve this problem.

Dexter_kcd 04-19-2006 06:31 AM

This is how I do it.

To place a navbar at the bottom of forums:

- Open FORUMDISPLAY template.
- Find:

Code:

<!-- / controls below thread list -->

</form>
<br />

BELOW THAT ADD:


Code:

<!-- bottom breadcrumb navbar -->
<br />
<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 />
<!-- / bottom breadcrumb navbar -->

Save template.


To place a navbar at the bottom of threads:

- Open SHOWTHREAD template.
- Find:

Code:

<!-- / controls below postbits -->

BELOW THAT ADD: (Same code as above)

Save template.


There is also a nice little plugin here to do something similar, it creates a new template on import of the product through the control panel, then gives you a choice of inserting a full navbar in its' own table row like this does, or as a mini-navbar between the New Reply button and the Moderation dropdown. That plugin is only written to do navbars at the bottom of a thread, but you could easily insert it at the bottom of a forum at the same location in the FORUMDISPLAY template I use above.

The only thing I don't like about the Mini-navbar plugin is that the navbar stops at the forum level, and does not show the actual thread you are in like the main navbar does. The code I listed above will show the full location including current thread, just like the top navbar does.

Cheers,

Dexter...

siwhite 06-05-2006 03:36 PM

Dexter - many thanks for posting this. It's just what I needed.

Brilliant. :)


All times are GMT. The time now is 08:39 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.01038 seconds
  • Memory Usage 1,723KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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