D9Hosting Posted August 7, 2017 Share Posted August 7, 2017 We get a lot of tickets from clients asking what nameservers and FTP details to use for their domains so think it'd be useful to have them displayed in their client area if they have a shared or reseller hosting account. I'm looking at clientareaproductdetails.php and can see that we've got variables available to display everything we need but I'm struggling to get them to display on the page. Ideally I'd like to display the FTP details and Nameserver details in a couple of boxes above the cPanel "Quick Links" box but I'm unable to see where the Quick Links are being pulled from so would appreciate it if someone could point me in the right direction as to where the new code should be going!? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 7, 2017 Share Posted August 7, 2017 https://docs.whmcs.com/CPanel_Single_Sign-On#Customising_Single_Sign-On_Shortcuts What your end users see is controlled by the template file /modules/servers/cpanel/templates/overview.tpl and can be customised to remove any features or functionality you don't wish your users to have access to. that's the missing template you're looking for - you can either edit it where it is, or copy it to your custom template... https://docs.whmcs.com/Working_with_Module_Templates 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 I suppose you could copy one of the existing {if} blocks, then use {if $serverdata.type eq 'cpanel'} and then adjust the output to show your nameserver and ftp details. 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted August 7, 2017 Author Share Posted August 7, 2017 Thanks, I'd never had thought to check in /modules/servers/cpanel/templates/overview.tpl All sorted now 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.