Back to vBulletin 3.8 Template Modifications

Remove thread prefix from breadcrumbs in navbar
Mod Version: 1.0, by EWGF

vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 4
Released: 04 Jul 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

The prefix in breadcrumbs is http://www.vbulletin.com/forum/showthread.php?271042-Removing-Thread-Prefix-In-Navbar into $navbits[lastelement], which leads to less pretty titles as (prefix in bold):

My forum > Category 1 > Subforum 2
Off-topic how's your dog doing

Sadly, vBulletin provides no on/off switch for prefixes in breadcrumbs. Instead of a complex plugin, it can be fixed with a simple template adjustment. Open up Navigation / Breadcrumb Templates - navbar template, search for "$navbits[lastelement]" and replace with:

PHP Code:
<if condition="THIS_SCRIPT == 'showthread'">$thread[title]<else />$navbits[lastelement]</if> 

Now, the nasty hardcoded prefix is no anymore in the breadcrumbs, while you can continue to use the prefix function. After this adjustment, the breadcrumbs will look like this:

My forum > Category 1 > Subforum 2
how's your dog doing

Download

No files for download.

Similar Mods

Show Thread Enhancements Show Navbar (breadcrumbs) & Active Users together at bottom of thread vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024