Jump to content

Display cPanel & Nameserver Details on Product Info Page


D9Hosting

Recommended Posts

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!?

Link to comment
Share on other sites

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. :idea:

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