Back to vBulletin Tips & Tricks

[vB4] How-to: Remove the navigation breadcrumb on FORUMHOME
by Guest210212002 08 Apr 2011
Rating: (1 vote - 5.00 average)

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.

vblts.ru supports vBulletin®, 2022-2024