How to remove/hide VMs related buttons from client area like snapshot, power, reboot, reinstall etc Print

  • 4

Go to Clients tab >>> Click on View/Search Clients >>> select the client you want to modify >>> select the product service ID on Products/Services

All the option mentioned here and click the option you need to remove and click on save changes on the bottom of the page.



If you want remove the option permanenetly follow the below steps :



Step 1). Connect the FTP client and download the file on this path whmcsroot/modules/servers/vmware/clientarea.tpl

Step2). Edit the file. For example if you want remove Vmware tool tab Comment line 44 to 49  

for eg : 


{*

{if !$tabAccess.mount || !$tabAccess.upgradevmtool}

<li onclick="mainTabs(this, 3);">

<a href="javascript:void(0);"><i class="m_tool"></i><p>{$language.vm_tools}</p></a>

 </li>  

{/if} *}

To Remove HTML Console tab Comment the line : 695 to 707 :

{*

<form  target="_blank" action="{$console_link}" method="post" style="display:none;" id="console_form">
                        <input type="hidden" name="console_token" value="{$vm_password}harp{$vm_token}">
                        <input type="hidden" name="url" value="{$system_url}">
                        <input type="hidden" name="host" value="{$vm_host}">
                        <input type="hidden" name="port" value="{$vm_port}">
                        <input type="hidden" name="name" value="'{$vmName}'">
                        <input type="submit" name="console" value="Console">
                    </form>
                    <li>
                        <a onclick="jQuery('#console_form').submit();" href="javascript:void(0);">
                            {$language.vm_html5}
                        </a>
                    </li>
*}


Was this answer helpful?

« Back