Back to vBulletin 3.5 Add-ons

Exclude Certain Breadcrumb Links In The Navbar
Mod Version: 1.00, by ()

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 1
Released: 25 Jul 2006 Last Update: Never Downloads: 1
Not Supported  

Note: I did not write this. I had to edit my settings this morning and it took me a bit to find it on vb.com, and it didn't come up in a search here so I'm posting it so that folks can tag it. This is http://www.vbulletin.com/forum/member.php?u=2026 tip that he listed http://www.vbulletin.com/forum/index.php?t=169499.

This mod allows you to exclude breadcrumbs from the navbar by name.

Eg: I have a forum called "Recording Studio" in the category "General Music Discussion". With this, my navbar breadcrumbs show:

Sevenstring.org » Recording Studio

Instead of:

Sevenstring.org » General Music Discussion » Recording Studio

Because this mod excludes by name, you will want to avoid having multiple forums and categories that have the same names, unless you want to exclude both of them.

You need to use a plugin for this, so first make sure your plugin system is enabled:

Admin CP -> vBulletin Options -> Plugin/Hook System -> Enable Plugin/Hook System

Now create a new plugin for the parse_templates hook location:

Admin CP -> Plugin System -> Add New Plugin

Use this PHP code in the plugin:

Code:
$navexclude = array('title1', 'title2', 'title3');
Edit the red list of names to specify the titles of the breadcrumb links you want to exclude. For example, if you have a category named "Open Forums" then you can exclude that link from the breadcrumbs in the navbar by adding 'Open Forums' to the list.

Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar_link

Add the red code. Upon saving this template you will get an error about a "wrong datatype for second argument". Ignore the error and click Continue:

Code:
<if condition="!in_array($nav_title, $GLOBALS['navexclude']) OR !$show['breadcrumb']">
	<if condition="$show['breadcrumb']">
		<span class="navbar">&gt; <a href="$nav_url">$nav_title</a></span>
	<else />
		$nav_title
	</if>
</if>

Download

No files for download.

Similar Mods

Navbar/Breadcrumb vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024