Action-N |
01-29-2013 03:24 AM |
I tried this for the CMS, but it hid from everything else not so much the front page which is what I believe is the point. Since all the sections, categories, an other pages use vbms script it needed an extra variable that only the top "Front Page" has. I found a post https://vborg.vbsupport.ru/showthread.php?t=289747 that found such a variable an was able to redesign the code given here. Thanks to brandondrury for discovering the variable.
Pretty much what I think should be standard, but hiding the breadcrumb only on the index/front page as it's not needed if your already there. Since not all other pages are gonna have parentnode variable the breadcrumb was hidden on them to so had to add another condition so it only hides if it's the CMS otherwise use the original code.
I didn't wrap the style tags to help with keeping the page from tweeking out. Did notice a loss of space so there could be a height filler added to the style code:
Code:
<div id="breadcrumb" class="breadcrumb" style="height:8px;">
Basically just go to navbar template an wrap condition statement around the whole breadcrumb code as shown.
REPLACE:
Code:
<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}
WITH:
Code:
<vb:if condition="THIS_SCRIPT == 'vbcms'">
<vb:if condition="$vbulletin->parentnode != 0">
<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}
</vb:if>
<vb:else />
<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}
</vb:if>
|