Log in

View Full Version : Add an button to the 'Quick Link' menu


Jon1422
06-11-2009, 04:47 PM
Hi folks,

Newbie alert!! Long time reader... first time poster :D

What I'd like to do is add a button to the quick link drop down menu located on the NavBar - in particular a 'create new pm' button (as if there aren't enough already).

I know I need to edit the navbar template, but if anyone could help with the code and positioning, I would appreciate it...

Many thanks

Jon

--------------- Added 1244746012 at 1244746012 ---------------

Perhaps I should have put this in 'design and graphics'?

Lynne
06-11-2009, 06:11 PM
Here's the code from the USERCP_SHELL template:
<tr><td class="$navclass[pm_newpm]" nowrap="nowrap"><a class="smallfont" href="private.php?$session[sessionurl]do=newpm">$vbphrase[send_new_message]</a></td></tr>

To add it to the end of your Quick Links, find this in your navbar:
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>

And add this under it:
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm">$vbphrase[send_new_message]</a></td></tr>

That should work (although I haven't tried it).

Jon1422
06-11-2009, 06:36 PM
That's fantastic - thank you Lynne, worked like a dream :)