Jump to content
artaweb

Tag for nameservers to be used in templates

Recommended Posts

Hello,

following this topic:

What are the tags I need to use for Nameservers within template files? 

Tried {$service_ns1} & {$service_ns2} but no luck. 

Is there a cheatsheet for these tags? 

Share this post


Link to post
Share on other sites
3 hours ago, artaweb said:

Is there a cheatsheet for these tags? 

add {debug} to the end of the template code and you'll get a popup window of available variables and arrays for that template - different variables might be used in different tempaltes for the same value, so there's no guarantee that there is a generic variable that can be used on all templates... and don't forget to remove {debug} from the template when you've finished.

Share this post


Link to post
Share on other sites

Thanks for that. Its very useful.

I am in this template:

/modules/servers/cpanel/templates/overview.tpl

I want to add server Nameservers and Server  IP address to be displayed in product overview page.

Based on the  debug mode sheet, nameserver tag is $nameserver1$nameserver2 and for server IP: $assignedips

These don't work.

Any idea how  to achieve this?

Share this post


Link to post
Share on other sites
16 minutes ago, artaweb said:

Any idea how  to achieve this?

i'm not seeing those variables. 😕

if you're in overview.tpl, I think your friend here will be the $serverdata array..

  • {$serverdata.nameserver1}
  • {$serverdata.nameserver1ip}
  • {$serverdata.nameserver2}
  • {$serverdata.nameserver2ip}

also, if you're going to modify overview.tpl, you might want to consider copying it to your active template folder - otherwise, it would get overwritten during a WHMCS update.

https://docs.whmcs.com/Working_with_Module_Templates

Quote

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

that said if you do this, you'd still have to remember to compare the updated overview.tpl manually with your custom version to check for other changes.

Share this post


Link to post
Share on other sites

Brian,

I am now trying to add username and password for the cPanel account. 

When I use {$serverdata.username} and {$serverdata.password} it prints server's credentials. How can print user's account credentials instead? 

Share this post


Link to post
Share on other sites
Just now, artaweb said:

When I use {$serverdata.username} and {$serverdata.password} it prints server's credentials. How can print user's account credentials instead? 

simple - use {$username) and {$password} 🙂

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By ModulesGarden
      1. cPanel Extended For WHMCS 3.7.0

      This week, to our immense delight, another well-known module from our WHMCS set was brought a huge step closer to perfection. The talk is all about cPanel Extended For WHMCS and the numerous improvements that enriched the freshly released 3.7.0 update.

      As of now, you will certainly appreciate being empowered with the possibility to rename your PostgreSQL databases as well as change your users’ passwords when such a need arises.

      But most importantly, the two brand-new sections we implemented into the freshest release will add some super-useful functionalities as well, and these are:
      ”Disk Usage” section - giving you the control over the amount of disk space currently in use. ”Email Deliverability” section - helping you to significantly decrease the number of emails send from your server that later on may be treated as spam messages. Do not take our talk for granted as no amount of words can truly do justice to the sheer ingenuity of all the additions implemented in the cPanel Extended For WHMCS 3.7.0. Therefore, we sincerely recommend to simply give them a trial run and judge for yourself!

      Learn All About cPanel Extended For WHMCS 3.7.0!


      2. Would you like to see your favorite SMS gateway integrated into the SMS Center For WHMCS module, entirely for free and with zero additional effort?

      Leave word with our Software Development Advisors and within two weeks from submitting the form we will deliver back to you a finished project for you to enjoy! You have to be quick though – this exclusive offer will soon be a thing of the past!

      Stay ahead of the competition with your client-tailored software!


      3. MetricsCube - GARMTECH Case Study

      Having troubles with keeping track of all the heaps of data generated by your WHMCS-based enterprise? Or maybe you need a helpful hand in plugging the information gaps that prevent your business from dynamic development?

      One thing is certain – you are not alone in this.

      See for yourself by following the case study of GARMTECH, one of the leading web hosting enterprises on the Baltic ISP market, that decided to employ MetricsCube in their everyday data monitoring strategies.

      Delve into the GARMTECH’s full success story and let it founder, Max Korzhanoff, shed some light on how to reach the ultimate heights of success with proper data analytics tool.


      4. Our dynamically expanding list of modules with WHMCS V7.8 support has recently greeted some more modules fully ready to operate in this freshest environment without a hitch:
      Domain Allocator For WHMCS G Suite For WHMCS Interspire Email Marketer For WHMCS InterWorx Extended For WHMCS R1Soft Backups For WHMCS Rackspace Email Extended For WHMCS Rackspace Public Cloud For WHMCS SolidCP Extended For WHMCS SolusVM Extended Cloud For WHMCS SolusVM Extended Reseller For WHMCS SolusVM Extended VPS For WHMCS More updates are coming soon so be sure to keep a watchful eye on our ever-reliable Support List!


      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By ModulesGarden
      1. Multibrand For WHMCS 2.4.0

      Want your multibranding business to be less of a risky venture and more of a consistent game plan? Accept the help of our updated Multibrand For WHMCS module and take matters into your own hands!
      Install the module in the WHMCS 7.8 environment Choose the brand that will be assigned to a specific support ticket directly from the tickets page in your WHMCS Mass delete selected products and relations (clients, services, invoices and more) Define what type of invoices should be taken into consideration while displaying sales statistics Let clients enjoy the greatly improved loading speed of pages with products, product addons or domains Of course, that is just a foretaste of the newest 2.4.0 module version. Would you be willing to have a sneak peek at the remaining features?

      Learn more about Multibrand For WHMCS 2.4.0!



      2. DirectAdmin Software – 15% OFF

      August has been an intense month for all bargain seekers. But it is not over yet which means there are still a few days left to avail of our exclusive 15% discount on all kinds of DirectAdmin tools!

      A) Use the code: 15%DirectAdmin to order the following WHMCS modules:
       
      DirectAdmin Extended For WHMCS DirectAdmin Licenses For WHMCS DNS Manager For WHMCS Advanced Billing For WHMCS IP Manager For WHMCS Unban Center For WHMCS WordPress Manager For WHMCS Account Synchronization For WHMCS Product Linker For WHMCS Domain Allocator For WHMCS Domain & Email Forwarding For WHMCS
      B) Fill out this short form to describe your custom project dedicated to the DirectAdmin panel and pay 15% less.

      Snap up the easiest summer savings just in time!



      3. EasyDCIM v1.6.2

      Running a data center requires of you constant attention in order to keep everything under control. Guys behind EasyDCIM are perfectly aware of that and to make everyday business management as easy as pie, they introduced some further dashboard and notification enhancements in their newly rolled out 1.6.2 update.

      From now on, the previous “Revision History” and “Notifications” sections are merged into one, named “Activity Logs”. Additionally, the “Error Logs” tab is now also out there along with a flexible widget recording most recent actions. The rearrangement of already existing menu elements accompanied by the acceleration of remote agents’ performance only add to the efficiency and simplicity of your data center management.

      Run your company like a real boss!



      4. Check out our other latest updates, too:
      Account Synchronization For WHMCS - v1.6.4 Asterisk VoIP Center For WHMCS - v1.2.13 cPanel Manage2 For WHMCS - v1.4.1 IP Manager For WHMCS - v2.5.4 OVH VPS & Dedicated Servers For WHMCS - v.1.0.3

      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By ModulesGarden
      1. cPanel Manage2 For WHMCS v1.4.0
      To make cPanel Manage2 For WHMCS even more enticing to the audience and perfectly up to date with the latest changes in the cPanel pricing, we brought into the module a few upgrades of our own. Let’s take a sneak peek inside the 1.4.0 version.
      From now on you will be offered the choice of two additional billing types, both based on the current number of accounts assigned to the client’s cPanel license.

      "Flexible" option - charge clients for the exact number of accounts assigned to a single license up until the specified synchronization date "Tiered" option - define tiers of accounts number and bill clients according to the closest tier available

      What is even more, we have finished all the necessary testing steps to confirm that the module can be safely installed from now on in the WHMCS 7.8 environment! What’s the point in waiting then?
      Learn more about cPanel Manage2 For WHMCS 1.4.0!
       
      2. Custom Report For WHMCS - Promotion
      Monitoring a variety of specific metrics to make the right business decisions is the foundation for your company’s stable growth. And here is where our Report Generator For WHMCS module steps in!
      Search through the continually expanding selection of ready-made reports, generate your own ones or even better still… let us build a bespoke report exclusively for you, with no extra payment!
      Simply grab the module from our website and reach out to our team so that we could brainstorm your needs in detail.
      Leap at the chance to manage your business like a pro!
       

      3. The WHMCS 7.8 support list is expanding day by day! Check out whether your favorite modules have already embraced the full-blown compatibility:

      cPanel Extended For WHMCS DirectAdmin Extended For WHMCS Domains Reseller For WHMCS DNS Manager For WHMCS Payment Gateway Charges For WHMCS Proxmox Cloud For WHMCS Proxmox VPS For WHMCS

      Search out more of the already integrated modules!
       
      Need Custom Software Development For Your Business?
      Get Your Free Quote Now!
      Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By ModulesGarden
      1. NEW: Product Cross-Selling For WHMCS
      Noticed that your customers buy certain products together more often than the other items? That is a business opportunity you cannot miss. We would like to present you today with our brand-new module which will help you turn your customers’ purchasing behaviors to your unique advantage!
      With Product Cross-Selling For WHMCS you can define related and recommended products that will be displayed for your clients based on the items in their cart. This way they can easily browse for even more tools from your offer, and order them with but one click. Owing to the integration with our Discount Center For WHMCS module, you can additionally set up attractive price cuts for specific services and supply them to clients directly.
      Seeking some foolproof methods to market additional services to customers in a controlled and flexible way? You have just found it!  
      Shoot up your income with Product Cross-Selling For WHMCS!
       
      2. Our all-in-one Developer Outsourcing service is designed for companies of virtually all sizes and covers tasks of various sorts. 
      Have you already seen the list of things we can do to simplify your daily business routine? System maintenance and regular updates, standalone modules, custom software modifications, code optimization and refactoring, even WHMCS consulting – you name it.
       
      If you would like to give your company a head start but do not have so much free time or manpower to spare, you can always count on the dedicated team of our software experts. 
      Redefine your business with our Developer Outsourcing experts!
       
      3. EasyDCIM v1.6.1 Released
      Did you know that EasyDCIM, ultramodern data center control panel with WHMCS integration, is now offered in the better, faster, and more eye-catching 1.6.1 version?
      The creators tuned up the intelligence of admin dashboard (where the key info about your locations, top servers and license are displayed) and server summary view (a window into your server statistics). Among other important additions you can find support for even more ACL permissions, handy Quick Search tool, and two new informative graphs on Location Power Consumption & Location Usage (GB).
      See for yourself that simpler really is better!
       
      4. See also our latest releases:

       Amazon EC2 For WHMCS – BRAND NEW MODULE  cPanel Extended For WHMCS - v3.6.0  Hosting Quota Notifications For WHMCS - v2.0.3 OVH VPS & Dedicated Servers For WHMCS - v1.0.2 Payment Gateway Allocator For WHMCS - v1.1.9  Resellers Center For WHMCS - v3.4.0  Support Tickets Filter For WHMCS - v1.1.6

       
      Need Custom Software Development For Your Business?

      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By ModulesGarden
      1. cPanel Extended For WHMCS 3.6.0 
      In this latest module update you will find an essential addition that lots of clients have been asking us about - JetBackup support. Equipped with this new tool, your clients will gain the freedom to choose between various externally scheduled backups straight in your client area as well as add some additional notes to each of them. 
      Learn more about cPanel Extended For WHMCS 3.6.0!
       
      2. Resellers Center For WHMCS 3.4.0
      If you struggle with keeping all details on your resellers under full-time control, this module might be exactly the kind of help you need. A moment ago we upgraded it to the 3.4.0 version which introduces support for WHMCS V7.7 and expands the scope of your resellers’ capabilities even further. 
      In particular, they have been enabled to manage their orders in a far more convenient way. All thanks to three extra tabs in the Reseller Area which let resellers quickly search out the precise orders they need in a matter of seconds. For example, they can browse for orders for domains only, applying even such detailed filters as billing cycle, server or status. 
      Whether your adventure with reselling business has just begun or successfully goes on for some time now, we guarantee the new Resellers Center For WHMCS module to help you achieve greater efficiency with little effort.
      Learn more about Resellers Center For WHMCS 3.4.0!
       
      3. MetricsCube Update
      Need a professional but still intuitive in use tool for comprehensive WHMCS reporting? The choice is one – MetricsCube. The platform currently offers over 70 powerful reports for web hosting companies starting with such common metrics as MRR or ARPU and ending with some less known ones, but equally informative nonetheless. 
      Another great news is that the platform just received a major update and plenty of new features. These include: 5 extra reports related to billing & subscriptions, new Report Presets functionality, really handy reports search engine, and many other improvements to the UI and general performance.
      Step into the world of simple WHMCS Business Analytics!
       
      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated