PDA

View Full Version : Top menu based on forum ID


kaype
05-11-2012, 03:01 PM
Hello,

I want to show a vbulletin top menu based on a forum ID, I think this is possible and is not really a lot of work.

But does anyone here know what is the code I need to put in navbar template so that this menu shows up only when we are in that forum (that is a specific forum ID).


I am guessing this menu code will be put after

<li class="selected"><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a>

with a condition to check if the forum ID=X then show

<vb:if condition="<not sure what goes here to check if forum ID = X>">
<li class="selected"><a class="navtab" href="www.example.com">New Menu Item</a>
</vb:if>


Thanks in advance! :up:

LifesGreatestGift
05-11-2012, 03:17 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=282309" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=282309</a>

dont mess with editing templates. use this mod. its free, enter forum id, setup links, done.

kaype
05-11-2012, 03:32 PM
Thanks! I will try this mod later.

Meanwhile I figure out what I was looking for....

<vb:if condition="$foruminfo['forumid'] == 11">
<li class="selected"><a class="navtab" href="www.example.com">New Menu Item</a>
</vb:if>

LifesGreatestGift
05-11-2012, 03:57 PM
This mod takes care of all that, no need for template edits. :)