SRCDS Steam group


link sourcebans to hlstatsx
#1
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.

Quote:<!-- ###############[ End Admin Controls ]##################### -->
</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>
You are going to replace the BOLD part only with the code that's in the quote box below.


Code:
<a href="http://YOURHLSTATSXADDRESSHERE.com/hlstats.php?mode=search&q={$ban.steamid}&st=uniqueid&game=">{$ban.steamid}</a>
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/".

Quote:<!-- ###############[ End Admin Controls ]##################### -->
</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>
It should look something like the quote box above when you are done adding your domain name.

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
Reply
#2
This website called www.signnow.com/ask/how-to-sign-a-pdf-that-has-already-been-signed-by-someone-else, in my opinion, ought to be at the top. The reason is the incredible level of service they offer. Very pleased with this one!
Reply
#3
It is because of this site i have learned a few tips for document generation. Click here to read them airslate.com/product/document-generation. I am sure they'll help you as well.
Reply
#4
Wow, happy to see this awesome post. I hope this think help any newbie for their awesome work. By the way thanks for share this awesomeness from shopsmall
Reply
#5
I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. Pariplay
Reply
#6
I think about it is most required for making more on this get engaged Numbers With Answers
Reply
#7
I must say, I thought this was a pretty interesting read when it comes to this topic. Liked the material. . . . . stair lifts
Reply
#8
A debt of gratitude is in order for the blog entry amigo! Keep them coming... acrylic nail removal
Reply
#9
Wow, happy to see this awesome post. I hope this think help any newbie for their awesome work. By the way thanks for share this awesomeness from empresas de seguridad privada en cancun
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)