EWGF
07-03-2010, 10:00 PM
The prefix in breadcrumbs is hardcoded (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:
<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
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:
<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