vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - Small breadcrumb below threads and forums (https://vborg.vbsupport.ru/showthread.php?t=182663)

silurius 06-15-2008 10:00 PM

Small breadcrumb below threads and forums
 
2009-09-30 Update: This mod still works great as of vBulletin 3.8.3!

Since I just had to make the change myself and didn't see it posted here yet, I thought I would share a simple modification that was created by someone else a while back for an older vBulletin. I just tested it on my 3.7.0 site and assume it should continue to work for any 3.7.x build.

This change will add a slightly smaller version of the breadcrumb to an area just below the threads on showthread.php, and just below the forums on forumdisplay.php. See screenshots below for examples. Please only proceed if you're comfortable making manual template edits.

Instructions:

1. Locate the following in SHOWTHREAD template:

Code:

<if condition="$show['multiquote_global']">
2. Add just above:
Code:

    <!-- extra breadcrumb -->   
                <br /><table cellpadding="0" cellspacing="0" border="0">
                <tr valign="bottom">
                    <td><a href="#" onclick="history.back(1); return false;"><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_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                </tr>
                <tr>
                    <td class="navbar" style="font-size:7pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_ltr.gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_ltr.gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
                </tr>
                </table>&nbsp
                <br />&nbsp
    <!-- / extra breadcrumb -->

3. Save SHOWTHREAD template and open FORUMDISPLAY template.

4. Locate the following in FORUMDISPLAY template:

Code:

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

</form>

5. Add the following just below that code:

Code:

    <!-- extra breadcrumb -->   
                <br /><table cellpadding="0" cellspacing="0" border="0">
                <tr valign="bottom">
                    <td><a href="#" onclick="history.back(1); return false;"><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_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                </tr>
                <tr>
                    <td class="navbar" style="font-size:7pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_ltr.gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_ltr.gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
                </tr>
                </table>&nbsp
                <br />&nbsp
    <!-- / extra breadcrumb -->

Edited to add screenshots and fix navbits_finallink_ltr.gif

silurius 06-16-2008 04:41 PM

Reserved, just because reserving the first reply spot is all the rage.

KURTZ 06-16-2008 04:49 PM

it would be nice if you give us a pick ... :)

silurius 06-16-2008 05:22 PM

Quote:

Originally Posted by KURTZ (Post 1550974)
it would be nice if you give us a pick ... :)

Added!

KURTZ 06-16-2008 05:44 PM

thanks ;)

Howell 06-16-2008 06:52 PM

This is great but I personally use this other code as my background is dark and this adds the same colour background as in the top breadcrumbs.

Code:

<!-- another breadcrumbs -->
<br />
    <table class="normal" 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); return false;"><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_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]
        </td>
    </tr>
    <tr>
        <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if><strong>$navbits[lastelement]</strong>
        </td>
    </tr>
    </table>
    <else /> <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong>
            </div></if>
        </td>
    </table>
<!-- / another breadcrumbs -->

Hope you don't mind me adding this silurius :)

hcmagix 06-17-2008 11:03 AM

I think the better way is

https://vborg.vbsupport.ru/showthrea...ht=mini+navbar

works with 3.7.x

steve1966 06-17-2008 11:46 AM

Quote:

Originally Posted by hcmagix (Post 1551532)
I think the better way is

https://vborg.vbsupport.ru/showthrea...ht=mini+navbar

works with 3.7.x

yes i agree just tried it

silurius 06-17-2008 03:07 PM

Quote:

Originally Posted by hcmagix (Post 1551532)
I think the better way is

https://vborg.vbsupport.ru/showthrea...ht=mini+navbar

works with 3.7.x

Six of one. The fact that they created a product out of it is indeed "better". Beyond that, it's all down to individual design requirements, isn't it? This solution gives you a breadcrumb that resembles the a Junior version of main breadcrumb at the top and the other creates something different inside a box and without graphics. The designer in me objects to a box containing only one item, as is the case with randominity's solution, but again it's all down to what you want.

Also, this is probably totally irrelevant but randominity's use of the word "Navbar" in that product confuses me. Where's the navbar part? (Not to debase the discussion - I'm genuinely curious).

Edit: In any case, I have no real investment either way. Just dug up a not-so-old solution used by many before me and wanted to pass it on.

silurius 06-17-2008 03:16 PM

Quote:

Originally Posted by Howell (Post 1551061)
This is great but I personally use this other code as my background is dark and this adds the same colour background as in the top breadcrumbs.
...
Hope you don't mind me adding this silurius :)

Feel free to add and adapt all you want! Even if I had come up with the concept/design myself, I would say go for it. The only reservation I might ever have would be if a different solution were to appear which would call for a new thread or something.


All times are GMT. The time now is 02:25 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.01168 seconds
  • Memory Usage 1,759KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete