dottedquad Posted March 10, 2017 Share Posted March 10, 2017 I'm attempting to edit the Admin menu links: 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} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 11, 2017 Share Posted March 11, 2017 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... ... 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. 0 Quote Link to comment Share on other sites More sharing options...
dottedquad Posted March 14, 2017 Author Share Posted March 14, 2017 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. 0 Quote Link to comment Share on other sites More sharing options...
dottedquad Posted March 15, 2017 Author Share Posted March 15, 2017 I will also have a look at the user roles. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.