Dennis Posted October 12, 2013 Share Posted October 12, 2013 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 More sharing options...
icekohl Posted October 12, 2013 Share Posted October 12, 2013 I think this is what you are asking for. {$service_custom_field_hostname} http://forum.whmcs.com/showthread.php?37429-Get-specific-service-custom-fields Link to comment Share on other sites More sharing options...
Dennis Posted October 12, 2013 Author Share Posted October 12, 2013 I was actually thinking of getting the hostname (or the IP) from TCAdmin. Is that possible? Link to comment Share on other sites More sharing options...
icekohl Posted October 12, 2013 Share Posted October 12, 2013 If you mean in TCA itself like when viewing game services, this can already be done. Go to the top right 'grid settings' configure columns. Checkmark 'Name'. There you go. Link to comment Share on other sites More sharing options...
Dennis Posted October 12, 2013 Author Share Posted October 12, 2013 Not in TCAdmin. Look at this picture: http://screencast.com/t/QYbvdt94O1kx The client has three servers with 4GB RAM and two with 6GB RAM. If that client wants to upgrade his/her server, she don't know which server is which. Therefore, I'd like to show the hostname or IP address. Link to comment Share on other sites More sharing options...
Jaggl Posted October 12, 2013 Share Posted October 12, 2013 yes would be cool if we have at least the server ip there like: Minecraft - 4 GB (Server IP:Server Port) Link to comment Share on other sites More sharing options...
Dennis Posted October 12, 2013 Author Share Posted October 12, 2013 It definately would, and I'm also pretty sure that it's possible. I just don't know how... Link to comment Share on other sites More sharing options...
revhosting Posted October 13, 2013 Share Posted October 13, 2013 It's possible and i know how. Update my post later when i have time Link to comment Share on other sites More sharing options...
Dennis Posted October 13, 2013 Author Share Posted October 13, 2013 It's possible and i know how. Update my post later when i have time That would be HIGHLY appreciated! Link to comment Share on other sites More sharing options...
revhosting Posted October 14, 2013 Share Posted October 14, 2013 Open modules/servers/tcadmin2_advanced/ directory Create a file named clieantarea.tpl 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 More sharing options...
Dennis Posted October 14, 2013 Author Share Posted October 14, 2013 That wasn't exactly what I was looking for. I was looking for a way to get the IP or hostname directly from TCAdmin. Link to comment Share on other sites More sharing options...
revhosting Posted October 14, 2013 Share Posted October 14, 2013 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 More sharing options...
Jaggl Posted October 21, 2013 Share Posted October 21, 2013 yes but i think not everyone can do this and this is why we ask ... iam just a copy and paste coder, so i dont know how to do this and iam sure the thread starter also dont know how to do it... Link to comment Share on other sites More sharing options...
revhosting Posted October 22, 2013 Share Posted October 22, 2013 Oky, i'm going to post the code as soon as i can. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.