Jump to content

WHMCS Admin - Extra drop down menu


Jortex

Recommended Posts

Just added one to mine and thought id share it.

 

See screenshot for what it looks like.

 

Open: WHMCSDir/admin/templates/topmenu.tpl

 

At the very end of the file add:

 

<span class="navbutton" onMouseOver="this.className='navbuttonover';dropdownmenu(this, event, menu10, '');" onMouseOut="this.className='navbutton';delayhidemenu();">[color="red"]Other[/color]</span>

 

Change the red text to whatever you want the menu to be called.

 

Save and close.

 

Open: WHMCSDir/admin/javascript/menu.js

 

Find: (around line 127)

 

var menuwidth='170px' //default menu width

 

ABOVE this add:

 

var menu10=new Array()
menu10[0]='<a href="[color="red"]#[/color]" target="_blank">[color="red"]Link Text[/color]</a>'
menu10[1]='<a href="[color="red"]#[/color]" target="_blank">[color="red"]Link Text[/color]</a>'

 

Save and close.

 

To edit and/or add more links is easy for those who have experience with javascript menus, for those that dont, below is a few instructions to help you.

 

Change the red parts as described below:

 

# = The actual link/URL for the page

Link Text = The name of the link

 

If you want the link to open in the same page remove target="_blank"

 

If you need to add more links then just edit menu.js again and add them below the ones shown above but remembering to change the menu id, i.e:

 

3rd link would start with - menu10[2]=

4th link would start with - menu10[3]=

 

And so on......

 

Any problems just reply here and ill see what i can do.

 

Enjoy.

aaem.JPG

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated