Jump to content

Customize the Admin Menu lists?


dottedquad

Recommended Posts

I'm attempting to edit the Admin menu links: View_Search Clients.png

 

I followed the guide at: http://docs.whmcs.com/Admin_Area_Template_Files

 

I edited menu.tpl; however, the menu links that I removed from the <ul></ul> lists are still visible. I tried a page refresh, but the lists are still visible.

 

The following are the lines that I removed

 

menu.tpl:

{if in_array("List Domains",$admin_perms)}<li><a id="Menu-Clients-Domain_Registration" href="clientsdomainlist.php">{$_ADMINLANG.services.listdomains}</a></li>{/if}

{if in_array("WHOIS Lookups",$admin_perms)}<li><a id="Menu-Utilities-WHOIS_Lookups" href="whois.php">{$_ADMINLANG.utilities.whois}</a></li>{/if}

{if in_array("Domain Resolver Checker",$admin_perms)}<li><a id="Menu-Utilities-Domain_Resolver" href="utilitiesresolvercheck.php">{$_ADMINLANG.utilities.domainresolver}</a></li>{/if}

{if in_array("Configure Domain Pricing",$admin_perms)}<li><a id="Menu-Setup-Products_Services-Domain_Pricing" href="configdomains.php">{$_ADMINLANG.setup.domainpricing}</a></li>{/if}

{if in_array("Configure Domain Registrars",$admin_perms)}<li><a id="Menu-Setup-Products_Services-Domain_Registrars" href="configregistrars.php">{$_ADMINLANG.setup.registrars}</a></li>{/if}

Link to comment
Share on other sites

are you sure you're editing the correct menu.tpl ? there will be two - one in "v4" and another in "Blend" ... and their code will look very similar.

I think your screenshot is from Blend, so it's possible that you may be editing the v4 menu by mistake.

 

two other things that I should probably mention...

 

1. it's possible that if you run the WHMCS Automatic Updater to upgrade that it will put the links that you've removed back into the code.

2. I think the better way to remove these links would be for you to edit the Administrator Roles and adjust the permissions for that role...

 

http://docs.whmcs.com/Administrators_and_Permissions

 

for example, if you wanted that a particular role couldn't list domains, you could just untick the appropriate checkbox...

 

kEmrtlZ.png

 

... after that, they won't see the "Domain Registrations" link in the client menu - and this change won't be modified during an update because it is stored in the database.

 

you can then also untick the checkboxes for whois lookups, domainchecker and the two domain configure options. :idea:

Link to comment
Share on other sites

Thanks bryan! I apologize for not getting back to you sooner. I took another look inside of both theme menu.tpl files and noticed I missed a few lines. I removed all the lines that I didn't want and it worked as expected :-) I'll make sure to check the menu.tpl files after an update and remove the lines if necessary.

Link to comment
Share on other sites

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