openmind Posted August 27, 2009 Share Posted August 27, 2009 Just to follow on from Chris' contribution for displaying client bandwidth graphs if your servers are based with RapidSwitch in the UK, this contribution will show your overall usage on the home page of the admin area. Setup Instructions 1 - Login to MyServers at RapidSwitch 2 - Select My Servers > Total Bandwidth Usage 3 - Right click the past 4 hours summary and get the URL 4 - Make a note of the clientid and graphkey variables 5 - Edit your homepage.tpl (admin/templates/YOUR-TEMPLATE/homepage.tpl) and add the following wherever you like. I added mine just above the admin notes <h3 style="text-align:center">Bandwidth Graphs<h3> <div class="contentbox"> <table border="0" cellpadding="4" cellspacing="10" width="100%"> <tr> <td class="fieldarea" width="50%"><div align="center"><img src="https://bandwidth.rapidswitch.com/BWGraph.aspx?clientid=YOURCLIENTID&graphkey=GRAPHKEY&external=1&gd=newgraph1&timeperiod=4hour" /></div></td> <td class="fieldarea" width="50%"><div align="center"><img src="https://bandwidth.rapidswitch.com/BWGraph.aspx?clientid=YOURCLIENTID&graphkey=GRAPHKEY&external=1&gd=newgraph1&timeperiod=1day" /></div></td> </tr> <tr> <td align="center"><strong>Last Four Hours</strong></td> <td align="center"><strong>Last 24 Hours</strong></td> </tr> <tr> <td class="fieldarea"><div align="center"><img src="https://bandwidth.rapidswitch.com/BWGraph.aspx?clientid=YOURCLIENTID&graphkey=GRAPHKEY&external=1&gd=newgraph1&timeperiod=1week" /></div></td> <td class="fieldarea"><div align="center"><img src="https://bandwidth.rapidswitch.com/BWGraph.aspx?clientid=YOURCLIENTID&graphkey=GRAPHKEY&external=1&gd=newgraph1&timeperiod=1month" /></div></td> </tr> <tr> <td align="center"><strong>Last Week</strong></td> <td align="center"><strong>Last Month</strong></td> </tr> <tr> <td colspan="2"> <table border="0" cellpadding="4" cellspacing="10" width="100%"> <tr> <td class="fieldarea" width="100%"><div align="center"><img src="https://bandwidth.rapidswitch.com/BWGraph.aspx?clientid=YOURCLIENTID&graphkey=GRAPHKEY&external=1&gd=newgraph1&timeperiod=1year" /></div></td> </tr> <tr> <td align="center"><strong>Last Year</strong></td> </tr> </table> </td> </tr> </table> </div> Save and upload and you now have a bandwidth summary in your admin 0 Quote Link to comment Share on other sites More sharing options...
jas Posted August 27, 2009 Share Posted August 27, 2009 (edited) Hi, Great Addon, just one small problem, everything after the graphs is now in Bold? Thanks EDIT - Got it - You just missed out the / when closing off the h3 aka: <h3 style="text-align:center">Bandwidth Graphs<h3> Should be: <h3 style="text-align:center">Bandwidth Graphs</h3> Edited August 27, 2009 by jas 0 Quote Link to comment Share on other sites More sharing options...
openmind Posted August 27, 2009 Author Share Posted August 27, 2009 Yep sorry about that, rushed the coding slightly 0 Quote Link to comment Share on other sites More sharing options...
jas Posted August 27, 2009 Share Posted August 27, 2009 No worries Handy little addon! 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.