sl.Home | sl.Search | sl.Forum | sl.Settings | sl.Serverlist | sl.Maplist | sl.Team | sl.Wiki |
ET:QW - Servermonitor FAQ, How to integrate the sl.-servermonitor for ET:QW into your website |
Sep 14 2007, 02:18 PM
Post
#1
|
|
Support & Assistant_Chief_Translator Group: Management Joined: 4-August 05 From: Munich / Bavaria / Germany Member No.: 12333 |
The Splatterladder gives you the possibility to run this little servermonitor on your website. Of course it is for free and without any obligation.
Features:
Upload this file to your webspace. This file has to be located in the same directory as the site which runs the servermonitor. (Why is this file needed?) Details of this file: CODE <?php
$url = urldecode($_REQUEST['query']);
// Securitycheck
$i = strpos($url,'.splatterladder.com/export/'); if ($i<7 || $i>22) exit;
$url .= '&wrapper=sl_sm_wrapper.php';
echo file_get_contents($url);
?>
This file is nothing else than a 'content-wrapper', a kind of proxy-script which only handles requests for Splatterladder (see security check code).
Why this file? Quite simple, your site occupies webspace, the refreshing does the sl-server (normally). These are different domains and it would be cross frame scripting, which is disallowed by every browser. With this wrapper the monitor will be updated through your webspace and there should be no problem with cross frame scripting.
2. Paste the following code into your website and change the given ip-adress to the one of your server.
CODE <script language="javascript" src="http://etqw.splatterladder.com/export/servermon.js.php?ip=85.14.218.247:27733"></script>
3. So now you can lean back comfortable because you are running a cool servermonitor wich updates itself automatically, lets your users connect directly (with sl.-gamelauncher) and provides them with newsworthy mapinfos and downloads.
Check below how to add the server monitor to:
-------------------- |
|
|
Sep 14 2007, 02:42 PM
Post
#2
|
|
Support & Assistant_Chief_Translator Group: Management Joined: 4-August 05 From: Munich / Bavaria / Germany Member No.: 12333 |
How to add the server monitor to phpBB:
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: QUELLTEXT . . . <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.: QUELLTEXT . . . <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://etqw.splatterladder.com/export/servermon.js.php?ip=85.14.218.247:27733"></script></td> <td><script language="javascript" src="http://etqw.splatterladder.com/export/servermon.js.php?ip=85.14.218.247:27733"></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. -------------------- |
|
|
Sep 14 2007, 02:51 PM
Post
#3
|
|
Support & Assistant_Chief_Translator Group: Management Joined: 4-August 05 From: Munich / Bavaria / Germany Member No.: 12333 |
How to add the server monitor to PHPNuke (thanks go to DRAPP|FAKE*BB* for sharing this with us):
QUELLTEXT <html>
<body> <?php if (eregi("block-sl.monitor", $PHP_SELF)) { Header("Location: index.php"); die(); } $content = "<center>"; $content .= "<script language=\"JavaScript\" src=\"http://etqw.splatterladder.com/export/servermon.js.php?ip=85.14.218.247:27733\"></script>\n"; $content .= "</center>"; ?> </body> </html> -------------------- |
|
|
Lo-Fi Version | Time is now: 23rd November 2024 - 12:44 AM |