ASK: Cara display Mikrotik graph (MRTG) di WHMCS


Status
Not open for further replies.
Tuan bisa di coba addon WHMCS yang ini:

HTB Bandwidth Graphs WHMCS

Atau bisa integrate manual pada template client area untuk menampilkan grafik dari Limiter pada simple queue Mikrotik dan codingannya mungkin seperti ini:
Code:
<p class="heading2">MRTG Bandwidth Graphs</p>

<table cellspacing="1" cellpadding="0" class="frame">
  <tr>
    <td width="1536"><table width="100%" cellpadding="2">
      <tr>
        <td class="fieldarea">Daily Graph (5 Min): </td>
        <td><div align="center"><img src="http://{$customfields.1.value}/graphs/queue/{$customfields.2.value}/daily.gif" alt="" /></div></td>
      </tr>
      <tr>
        <td class="fieldarea">Weekly Graph (30 Min): </td>
        <td><div align="center"><img src="http://{$customfields.1.value}/graphs/queue/{$customfields.2.value}/weekly.gif" alt="" /></div></td>
      </tr>
      <tr>
        <td class="fieldarea">Monthly Graph (2 Hour): </td>
        <td><div align="center"><img src="http://{$customfields.1.value}/graphs/queue/{$customfields.2.value}/monthly.gif" alt="" /></div></td>
      </tr>
      <tr>
        <td class="fieldarea">Yearly Graph (1 Day): </td>
        <td><div align="center"><img src="http://{$customfields.1.value}/graphs/queue/{$customfields.2.value}/yearly.gif" alt="" /></div></td>
      </tr>
    </table></td>
  </tr>
</table>

Note untuk nilai customfields:
{$customfields.1.value} = IP Mikrotik
{$customfields.2.value} = Nama Simple Queue Client

Mohon maaf jika ada kekeliruan....CMIIW

ok Tuan, nanti saya coba deh... cuma bingung aja klo edit manual di client area berarti semua client tanpa terkecuali akan tampil mrtg donk yah... maksudnya saya cuma beberapa client aja berdasarkan produk tertentu
 
Status
Not open for further replies.
Back
Top