Version: 1.00, by optrex
Developer Last Online: Mar 2011
Category: Miscellaneous Hacks -
Version: 3.6.x
Rating:
Released: 09-24-2006
Last Update: Never
Installs: 59
Template Edits
No support by the author.
There is always a demand for increased navigation from your vB Board. This modification has been tested on 3.6.x, 3.7.x and 3.8.x
Hardcoding a menu is the best way to add the increased functionaility, without adding server load and queries. This template modificiation explains how to add additional simple navbars to your website. By utilising exisitng vB code from within the Navbar template, the menu will appear on all pages, including in add-ons such as vBa and Photoplog and Photopost.
The basis of the navigation bar (refered to as the 'Main Code') is as follows:
Code:
<!-- nav2 buttons bar by Optrex-->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<!--compile your links within this space, using the section types below -->
</tr>
</table>
</div>
<!-- / nav2 buttons bar by Optrex-->
To create a link visible to all usergroups add this code to replace the green section of the main code (above):
Code:
<td class="vbmenu_control"><a href="http://www.yoururlhere.com" >Title of your link</a></td>
To create a link visible only to members add this code to replace the green section of the main code (above):
Code:
<if condition="$show['member']">
<td class="vbmenu_control"><a href="http://www.yoururlhere.com" >Title of your link</a></td>
</if>
Placement is recommended above your existing navbar, due to the "drop down" lists.
Find the following line in your navbar template and place your compiled code above it.
I noticed you can put <if condition="$show['member']"> if you want the link to be only viewable by registered users and <if condition="$GLOBALS[show][admincplink]"> for admins. I was wondering how I could go about making a link only viewable to certain membergroup, i.e. membergroup id 23 for instance.
My guess would be finding the code where the $show['member'] is original defined and add something similiar to that but for membergroup 23 only. Or is there a way to just set up a reference in the navbar template?
Thanks for the great post. I do have one question though. I have Blak-Ice skin installed and don't see:
<!-- nav buttons bar -->
<div align="center">
in the navbar template. I am trying to install my additional navbar directly underneath the buttons. Currently it is attached to the welcome module. I put all my coding in the top of the navbar template but that doesn't work. See here: www.thepublicenemy.net
What template do I need to modify for this to work?
would you please help me ..
I am newbie at coding and editing template.
Well first thing .. which template should I edit and which new script should i add?