PDA

View Full Version : [vB4] How-to: Remove the navigation breadcrumb on FORUMHOME


Chris-777
07 Apr 2011, 23:43
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:


<!-- 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:



<!-- 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
26 Jun 2011, 03:08
Wow looks way better now.

Daryn
20 Oct 2014, 18:15
Thanks! This really helped me out!