PDA

View Full Version : Help Desk / Navigation Drop Down


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 ;)

kall
02-27-2005, 08:25 PM
This should really go in the original thread...it's a Template modification, not a hack.

Creed
02-27-2005, 08:30 PM
I added :)

HuangA
02-28-2005, 02:05 AM
just exactly where is he getting the helpdesk from? I don't see helpdesk as any part of standard vb bundle...

Polo
02-28-2005, 02:39 AM
yeah... this definetly doesnt belong here.. should go in the original thread and the author of the help desk should just post it on the first thread as an addition... anyways, thanks for sharing.. i'm sure many will find this helpful...

CyberSlash69
03-01-2005, 01:04 AM
Installed. ;) very nice!

WhSox21
03-05-2005, 05:56 PM
As a note this will not work in version 1.50 without file edits! ;)

Creed
03-06-2005, 07:33 AM
Hrmn, it works fine without file edits for me. Although I did add a couple of the options to the install :)

replace:
<!-- 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 -->

with:

<!-- 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>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=departments">$vbphrase[departments]</a></td></tr>
<tr><td class="vbmenu_option"><a href="helpdesk.php?$session[sessionurl]do=usergroup">$vbphrase[usergroup_settings]</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 -->

WhSox21
03-06-2005, 04:17 PM
It will work fine but not how it should under the new usergroup settings.

Julie
03-28-2005, 02:29 PM
Works perfectly :)

*installs*