vBTotal
02-26-2005, 10:00 PM
This turns your current link on your navbar from "Help Desk" into a Drop Down menu like Search, Quickinks etc. Only One Simple Template Edit!
Open up your Navbar Template
Find
<td class="vbmenu_control"><a href="helpdesk.php?$session[sessionurl]">$vbphrase[helpdesk]</a></td>
Replace With
<if condition="$show['member']">
<td id="hd" class="vbmenu_control"><a href="#top">Help Desk</a> <script type="text/javascript"> vbmenu_register("hd"); </script></td>
</if>
Next Find
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
Below Add
<!-- HelpDesk -->
<div class="vbmenu_popup" id="hd_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<if condition="$bbuserinfo[permissions][adminpermissions]>0">
<tr><td class="thead">Admin Options</td>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]">$vbphrase[open_tickets]</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=mytickets">$vbphrase[my_tickets]</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=newtickets">$vbphrase[new_tickets]</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=newreplies">$vbphrase[new_replies]</a></td></tr>
</if>
<tr><td class="thead">Options</td>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=newticket">New Ticket</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=unresolved">Unresolved Tickets</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=resolved">Resolved Tickets</a></td></tr>
</table>
</div>
<!-- / HelpDesk -->
Thats all, Enjoy ;)
Open up your Navbar Template
Find
<td class="vbmenu_control"><a href="helpdesk.php?$session[sessionurl]">$vbphrase[helpdesk]</a></td>
Replace With
<if condition="$show['member']">
<td id="hd" class="vbmenu_control"><a href="#top">Help Desk</a> <script type="text/javascript"> vbmenu_register("hd"); </script></td>
</if>
Next Find
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
Below Add
<!-- HelpDesk -->
<div class="vbmenu_popup" id="hd_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<if condition="$bbuserinfo[permissions][adminpermissions]>0">
<tr><td class="thead">Admin Options</td>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]">$vbphrase[open_tickets]</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=mytickets">$vbphrase[my_tickets]</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=newtickets">$vbphrase[new_tickets]</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=newreplies">$vbphrase[new_replies]</a></td></tr>
</if>
<tr><td class="thead">Options</td>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=newticket">New Ticket</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=unresolved">Unresolved Tickets</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=resolved">Resolved Tickets</a></td></tr>
</table>
</div>
<!-- / HelpDesk -->
Thats all, Enjoy ;)