Back to vBulletin Tips & Tricks

[HOW TO - vB4] Adding a Link to Navbar
by almannai 03 Jul 2010

1. Go to
Admincp > Styles and Templates > Style Manager > MASTER STYLE (this will effect all style or just choose the Style you want to add link to it)> Navigation / Breadcrumb Templates > Navbar

open it and search for
PHP Code:
{vb:raw template_hook.navtab_end
Add above
PHP Code:
<vb:if condition="THIS_SCRIPT == 'mynewpage'">
<
li class="selected"><class="navtab" href="mynewpage.php">mylink</a></li>
<
vb:else />
<
li><class="navtab" href="mynewpage.php">mylink</a></li>
</
vb:if> 

Search for
PHP Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'"
Replace with
PHP Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'mynewpage'"


2. Save and you are done.

vblts.ru supports vBulletin®, 2022-2024