The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Top menu based on forum ID
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 Code:
<li class="selected"><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a> Code:
<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: |
#2
|
||||
|
||||
<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. |
#3
|
|||
|
|||
Thanks! I will try this mod later.
Meanwhile I figure out what I was looking for.... Code:
<vb:if condition="$foruminfo['forumid'] == 11"> <li class="selected"><a class="navtab" href="www.example.com">New Menu Item</a> </vb:if> |
#4
|
||||
|
||||
This mod takes care of all that, no need for template edits.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|