PDA

View Full Version : Display breadcrumbs ONLY on forum, not CMS


n.stanley
05-23-2011, 12:03 PM
Is there any way to modify the breadcrumb code:

<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>

so it displays only on FORUM pages, and not within CMS or BLOG pages?

So on any page relating to the forum - topics, user profiles, member list, ANY forum page - the breadcrumbs are displayed, but on any other pages within the vBulletin Publishing Suite, they do not display.

Can anyone help me, please?

Lynne
05-23-2011, 03:18 PM
Put a condition around it:
<vb:if condition="THIS_SCRIPT != 'vbcms'">
breadcrumb code
</vb:if>

n.stanley
05-23-2011, 07:42 PM
Lynne! Thanks heaps, worked perfectly. :)