09-08-2009, 10:40 AM
(This post was last modified: 09-08-2009, 10:43 AM by NightLinks.)
I made a tutorial on how you can link sourcebans to hlstatsx to make it easy for admins to flag players in hlstatsx.
-------
Why link sourcebans to hlstatsx? To make it easy for admins to flag players in hlstatsx. When an admin bans a player from the game server or through sourcebans website. The admins click on the player's steam id then it re-direct the admin to the hlstatsx search result page with the players nickname, unique id, hlstatsx id and the game they were playing.
Here's how to link sourcebans to hlstatsx page.
Login / connect to the ftp of where you have sourcebans installed then find your way to the theme that you are currently using. Inside the theme that you are currently using look for a file called "page_bans.tpl". You can either edit the file through ftp with your ftp program or you can download the file to your computer.
If you downloaded the file open the file with wordpad or if you already have "page_bans.tpl" open search for a block that looks like the one in the quote box below.
Now all you need to do is to replace "YOURHLSTATSXADDRESSHERE.com" with your domain name.
NOTE: If your hlstatsx is at http://YOURHLSTATSXADDRESSHERE.com/STATS/hlstats.php then you need replace it with "http://YOURHLSTATSXADDRESSHERE.com/STATS/".
In the quote box above i added the domain name to the noobgamers hlstatsx page as an example of the way it should look it once you are done.
Once you have done editing the "page_bans.tpl" file save it and upload it back to the themes folder that you are currently using.
Then go and test it out.
See installing hlx comm edition on cpanel with no SSH access
See How to install sourcebans
Orignal can be found here: How to link sourcebans to hlstatsx
-------
Why link sourcebans to hlstatsx? To make it easy for admins to flag players in hlstatsx. When an admin bans a player from the game server or through sourcebans website. The admins click on the player's steam id then it re-direct the admin to the hlstatsx search result page with the players nickname, unique id, hlstatsx id and the game they were playing.
Here's how to link sourcebans to hlstatsx page.
Login / connect to the ftp of where you have sourcebans installed then find your way to the theme that you are currently using. Inside the theme that you are currently using look for a file called "page_bans.tpl". You can either edit the file through ftp with your ftp program or you can download the file to your computer.
If you downloaded the file open the file with wordpad or if you already have "page_bans.tpl" open search for a block that looks like the one in the quote box below.
Quote:<!-- ###############[ End Admin Controls ]##################### -->You are going to replace the BOLD part only with the code that's in the quote box below.
</tr>
<tr align="left">
<td width="20%" height="16" class="listtable_1">Steam ID</td>
<td height="16" class="listtable_1">
{if empty($ban.steamid)}
<i><font color="#677882">no Steam ID present</font></i>
{else}
{$ban.steamid}
{/if}
</td>
Code:
<a href="http://YOURHLSTATSXADDRESSHERE.com/hlstats.php?mode=search&q={$ban.steamid}&st=uniqueid&game=">{$ban.steamid}</a>
NOTE: If your hlstatsx is at http://YOURHLSTATSXADDRESSHERE.com/STATS/hlstats.php then you need replace it with "http://YOURHLSTATSXADDRESSHERE.com/STATS/".
Quote:<!-- ###############[ End Admin Controls ]##################### -->It should look something like the quote box above when you are done adding your domain name.
</tr>
<tr align="left">
<td width="20%" height="16" class="listtable_1">Steam ID</td>
<td height="16" class="listtable_1">
{if empty($ban.steamid)}
<i><font color="#677882">no Steam ID present</font></i>
{else}
<a href="http://noobgamers.com/hlstatsx/hlstats.php?mode=search&q={$ban.steamid}&st=uniqueid&game=">{$ban.steamid}</a>
{/if}
</td>
In the quote box above i added the domain name to the noobgamers hlstatsx page as an example of the way it should look it once you are done.
Once you have done editing the "page_bans.tpl" file save it and upload it back to the themes folder that you are currently using.
Then go and test it out.
See installing hlx comm edition on cpanel with no SSH access
See How to install sourcebans
Orignal can be found here: How to link sourcebans to hlstatsx