Jump to content

Show name of server


Dennis

Recommended Posts

Hi,

 

Is it possible to show the name of the server from TCAdmin instead of showing the product name, when the user is looking at his or her servers? Some clients of ours have multiple servers, and it can be quite hard to find the right one when they are upgrading or downgrading.

Link to comment
Share on other sites

  1. Open modules/servers/tcadmin2_advanced/ directory
  2. Create a file named clieantarea.tpl
  3. Open clientarea.tpl and write the code below

Your awesome IP is {$serverdata.ipaddress} <img src="smile.png">, you live in {$clientsdetails.countryname} and damn you must pay {$clientsstats.numoverdueinvoices} invoices!
// Output example: Your awesome IP is 123.123.123.123 , you live in Italy and damn you must pay 2 invoices!

Link to comment
Share on other sites

The principle is the same. Instead of referencing to {$serverdata.ipaddress} you can reference to your own array or string. In this case you have to use _ClientArea function to get the data you need directly from TCAdmin database with one or more queries. Finally you will be able to display it with {$yourcustomarray.something}.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 19 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use