How to add the server monitor to
phpBB:
- Download the file [attachmentid=200] and place it in the folder where the file index.php of your phpBB installation is located.
- Edit the templates where you want to add the server monitor: insert the line
QUOTE
<script language="javascript" src="http://et.splatterladder.com/export/servermon.js.php?ip=213.202.210.55:27960"></script>
at the appropriate place (don't forget to change the server IP ). See the example below.
Example:To add 2 servers at the top of your forum edit the file "overall_header.tpl". Its located in the subfolder "/templates/<template name>", where <template name> is the name of the template, e.g. "subSilver". The original code looks like this:
CODE
.
.
.
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
<a name="top"></a>
<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
<tr>
<td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" ...
<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME} ...
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> ...
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/ ...
<!-- END switch_user_logged_out -->
</span></td>
</tr>
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span ...
</tr>
</table></td>
</tr>
</table>
<br />
Add the <script> code lines where you want to place the server monitors, e.g.:
CODE
.
.
.
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
<a name="top"></a>
<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
<tr>
<td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" ...
<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME} ...
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> ...
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/ ...
<!-- END switch_user_logged_out -->
</span></td>
</tr>
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span ...
</tr>
</table></td>
<td><script language="javascript" src="http://et.splatterladder.com/export/servermon.js.php?ip=134.130.18.217:27960"></script></td>
<td><script language="javascript" src="http://et.splatterladder.com/export/servermon.js.php?ip=134.130.13.111:27960"></script></td>
</tr>
</table>
<br />
Do you see the difference in the lower part? Thats where the server monitors show. This is just an example - you can add this to any template file of your liking in a similar way.