Jump to content

How do i setup nameserver on in clientarea?


Recommended Posts

I would like to add server IP and nameservers visible for clients, i know i have to edit overview.tpl file in /modules/servers/cpanel/templates But how can i add server IP and nameservers?

Example how to look like:

Server IP: 888.345.657.65
ns1.domainame.com (12.345.657.65)
ns2.domainname.com (98.345.657.65

Link to comment
Share on other sites

On 18/11/2020 at 19:09, Businezz said:

I would like to add server IP and nameservers visible for clients, i know i have to edit overview.tpl file in /modules/servers/cpanel/templates But how can i add server IP and nameservers?

well you wouldn't edit the overview file directly as it would get overwritten during an update - if you had to edit the template, rather than hooking, you would duplicate the template in the current active theme folder and work on the duplicate - the updater shouldn't touch the duplicate template.

https://docs.whmcs.com/Working_with_Module_Templates

On 18/11/2020 at 19:05, Businezz said:

How do i nameservers IP's too next to them? And server main IP besides nameservers? 

  • {$serverdata.nameserver1} should show the first name server.
  • {$serverdata.nameserver1ip} should show the first name server IP address etc
  • {$serverdata.ipaddress} should show the server IP address.
Link to comment
Share on other sites

38 minutes ago, brian! said:

well you wouldn't edit the overview file directly as it would get overwritten during an update - if you had to edit the template, rather than hooking, you would duplicate the template in the current active theme folder and work on the duplicate - the updater shouldn't touch the duplicate template.

https://docs.whmcs.com/Working_with_Module_Templates

  • {$serverdata.nameserver1} should show the first name server.
  • {$serverdata.nameserver1ip} should show the first name server IP address etc
  • {$serverdata.ipaddress} should show the server IP address.

I figured how how to display them, but i overwrite the default template.  I'll try what you've suggested. Thanks!!

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