Scott Posted June 1, 2007 Share Posted June 1, 2007 I have read in the forums that you can customer the Server status to monitor different ports, and I have altered the serverstatus.tpl page the way I would think it would need to be altered, however the changes are not appearing. I would like to add the ability to monitor Port 25 for instance. So I changed the code to (not a big coder by the way!): {$LANG.serverstatusheadingtext}</p> <table id="serverstatus" align="center" cellspacing="1"> <tr> <td width="15%" id="serverstatusheading">{$LANG.servername}</td> <td width="11%" id="serverstatusheading">HTTP</td> <td width="11%" id="serverstatusheading">FTP</td> <td width="11%" id="serverstatusheading">POP3</td> <td width="11%" id="serverstatusheading">SMTP</td> <td width="11%" id="serverstatusheading">{$LANG.serverstatusphpinfo}</td> <td width="15%" id="serverstatusheading">{$LANG.serverstatusserverload}</td> <td width="15%" id="serverstatusheading">{$LANG.serverstatusuptime}</td> </tr> {foreach key=num item=server from=$servers} <tr> <td width="15%" id="serverstatusrow">{$server.name}</td> <td width="11%" id="serverstatusrow">{get_port_status num="$num" port="80"}</td> <td width="11%" id="serverstatusrow">{get_port_status num="$num" port="21"}</td> <td width="11%" id="serverstatusrow">{get_port_status num="$num" port="110"}</td> <td width="11%" id="serverstatusrow">{get_port_status num="$num" port="25"}</td> <td width="11%" id="serverstatusrow">{$LANG.serverstatusphpinfo}</td> <td width="15%" id="serverstatusrow">{$server.serverload}</td> <td width="15%" id="serverstatusrow">{$server.uptime}</td> </tr> {foreachelse} <tr> <td id="serverstatusrow" colspan="8">{$LANG.serverstatusnoservers}</td> </tr> {/foreach} </table> I dumped the cache from the templaces_c file but still nothing. What am I doing wrong? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted June 1, 2007 WHMCS CEO Share Posted June 1, 2007 So it's not that is' not working, it's just you aren't seeing the change you made? Are you sure you are editing the active template folder? Matt 0 Quote Link to comment Share on other sites More sharing options...
Scott Posted June 1, 2007 Author Share Posted June 1, 2007 Matt, I think I figured it out. For some reason, despite the fact that I can see the colspan'8" in the above code, it didn't take in the actual template. Re-inserted that change back in the template and it works. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.