Selcor
05-01-2010, 10:11 PM
When I add a link to the navbar and I click on it, this one its not showed as selected.
View image: http://img62.imageshack.us/img62/3360/capu.png
Searching a little bit I found the methodology that navbar template uses, for example:
<vb:if condition="$vboptions['selectednavtab'] == 'vbblog'">
<li class="selected"><a class="navtab" href="blog.php{vb:raw session.sessionurl_q}"> {vb:rawphrase blogs}</a>
<vb:else />
<li><a class="navtab" href="blog.php{vb:raw session.sessionurl_q}">{vb:rawphrase blogs}</a></li>
</vb:if>
It asks if the vbblog link has been selected, if vbblog is active, the button in navbar it show as selected. Otherwise is not shown as selected on the navbar.
For example, i can add on the navbar template:
<vb:if condition="$vboptions['selectednavtab'] == 'CMPS'">
<li class="selected"><a class="navtab" href="cmps_index.php">Portal</a>
<vb:else />
<li><a class="navtab" href="cmps_index.php">Portal</a></li>
</vb:if>
But I have to define the CMPS on somewhere, my question is where? Thats all, please help with this.
--------------- Added 1272760049 at 1272760049 ---------------
Solved!, Did not know he had a new version of this mod: https://vborg.vbsupport.ru/showthread.php?t=228507
https://vborg.vbsupport.ru/external/2011/01/22.gif
View image: http://img62.imageshack.us/img62/3360/capu.png
Searching a little bit I found the methodology that navbar template uses, for example:
<vb:if condition="$vboptions['selectednavtab'] == 'vbblog'">
<li class="selected"><a class="navtab" href="blog.php{vb:raw session.sessionurl_q}"> {vb:rawphrase blogs}</a>
<vb:else />
<li><a class="navtab" href="blog.php{vb:raw session.sessionurl_q}">{vb:rawphrase blogs}</a></li>
</vb:if>
It asks if the vbblog link has been selected, if vbblog is active, the button in navbar it show as selected. Otherwise is not shown as selected on the navbar.
For example, i can add on the navbar template:
<vb:if condition="$vboptions['selectednavtab'] == 'CMPS'">
<li class="selected"><a class="navtab" href="cmps_index.php">Portal</a>
<vb:else />
<li><a class="navtab" href="cmps_index.php">Portal</a></li>
</vb:if>
But I have to define the CMPS on somewhere, my question is where? Thats all, please help with this.
--------------- Added 1272760049 at 1272760049 ---------------
Solved!, Did not know he had a new version of this mod: https://vborg.vbsupport.ru/showthread.php?t=228507
https://vborg.vbsupport.ru/external/2011/01/22.gif