PDA

View Full Version : vBulletin IF Condition


Trasion
02-25-2013, 08:12 PM
I'd like to hide the nav/breadcrumb bar on the index, but show it on every other page. Is there an if condition for this? So if the page is index.

mokujin
02-25-2013, 08:34 PM
in navbar template replace
<if condition="is_array($navbits)">
by <if condition="is_array($navbits) AND THIS_SCRIPT != 'index'">

find: <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
replace by:

<if condition="THIS_SCRIPT != 'index'">
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>

Trasion
02-25-2013, 08:35 PM
lol... I just realized I could just remove $navbar from the forumhome template. Oh boy am I slow.

Anyway, thank you for the help!