vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin Tips & Tricks (https://vborg.vbsupport.ru/forumdisplay.php?f=239)
-   -   [vB4] How-to: Remove the navigation breadcrumb on FORUMHOME (https://vborg.vbsupport.ru/showthread.php?t=261622)

Guest210212002 04-07-2011 10:00 PM

[vB4] How-to: Remove the navigation breadcrumb on FORUMHOME
 
I think this looks a lot cleaner. Note that the MG comment fields are for me, which makes it easier to search through my templates for things I adjusted. They are not necessary for the style change. If you're just getting into template modifications, something like this is a very quick and easy way to locate things that you've changed.

In navbar_link:

Code:

<!-- MG --><vb:if condition="THIS_SCRIPT != 'index'">

<vb:if condition="$show['breadcrumb']">
        <li class="navbit"><a href="{vb:raw nav_url}">{vb:raw nav_title}</a></li>
<vb:else />
        <li class="navbit lastnavbit"><span>{vb:raw nav_title}</span></li>
</vb:if>

<!-- MG --></vb:if>

And then in navbar:

And in Navbar:

Code:


<!-- MG --><vb:if condition="THIS_SCRIPT != 'index'">

<div id="breadcrumb" class="breadcrumb">
        <ul class="floatcontainer">
                <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>

                {vb:raw navbits.breadcrumb}
                {vb:raw navbits.lastelement}
        </ul>
        <hr />
</div>

<!-- MG --></vb:if>

All I'm doing is wrapping an if conditional for index around the breadcrumb call. It's basic and simple, but I'm sure others who are unfamiliar with modding may find it handy.

Cheers.

8thos 06-26-2011 02:08 AM

Wow looks way better now.

Daryn 10-20-2014 05:15 PM

Thanks! This really helped me out!


All times are GMT. The time now is 08:18 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.02220 seconds
  • Memory Usage 1,709KB
  • 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
  • (2)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