Back to vBulletin Tips & Tricks

How to turn off breadcrumbs...
by BonsaiNut 01 Dec 2011
Rating: (1 vote - 5.00 average)

For what it's worth, I run a site that has several content areas that are all integrated with vBulletin and that are accessible via tabs in the navbar (a photo gallery, links directory, wiki, etc). I was getting annoyed with breadcrumbs showing up when I did not want them to. So I figured out how to turn off breadcrumbs in all site areas OUTSIDE of the main forums.

You will need to add a conditional "if" statement in your navbar template.

Open navbar, scroll to the bottom, and look for the div code <div id="breadcrumb" class="breadcrumb"> and edit the code so it looks like this:

Code:
<vb:if condition="THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread'">
  <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>
</vb:if>
Using this conditional statement, you can see how you can turn breadcrumbs "on" or "off" for various parts of the site, depending on the value of THIS_SCRIPT.

vblts.ru supports vBulletin®, 2022-2024