Jump to content

Hide Whois Information button


Kelby

Recommended Posts

18 hours ago, zitu4life said:

I suspect it need template edit, due custom.css will possible hide not just WHOIS info. but Brian should know what better way to achieve that.

I would probably agree... if this is the cPanel template, then you might get away with using CSS...

#cPanelPackagePanel input[type=button] {display: none;}

... as there is only one button input on that page and it's the whois button you want to remove... if there were more of them, then i'd be really tempted just to edit the relevant template.

Link to comment
Share on other sites

3 minutes ago, Kelby said:

How to remove the button from the template?

there be the question - the trick is knowing which template is generating the output. 😕

so if this is a cPanel product, then it's going to be /modules/servers/cpanel/templates/overview.tpl and specifically...

<input type="button" onclick="popupWindow('whois.php?domain={$domain}','whois',650,420);return false;" value="{$LANG.whoisinfo}" class="btn btn-info btn-sm" />

it's worth noting...

https://docs.whmcs.com/Working_with_Module_Templates

Quote

To create an override template, simply make a copy of the original template file within the following folder structure inside your custom template: /templates/yourtemplatename/modules/moduletype/modulename/.

For example, in the case of the provisioning module "cpanel", /modules/servers/cpanel/overview.tpl could be customised by creating the following template file: /templates/yourtemplatename/modules/servers/cpanel/overview.tpl

so you can duplicate this overview template and move it to the active template folder (and then edit it to make your changes) - which means that during an update, WHMCS shouldn't overwrite it - if you modify the original version in the cPanel folder, it likely will.

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