Go Back   NoobGamers - Video Games Forum > General Topics > Tutorials

This is a discussion on How to link sourcebans to hlstatsx within the Tutorials forum.
Why link sourcebans to hlstatsx? To make it easy for admins to flag players in ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 09-07-2009, 09:44 PM
NightLinks's Avatar
Noobgamers.com
Join Date: Oct 2007
Location: Bronx, NY
Posts: 3,591
My Mood:
Blog Entries: 17
NightLinks is on a distinguished road
Send a message via AIM to NightLinks
Default 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 ]##################### -->
</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 rel="nofollow" href="http://noobgamers.com/hlstatsx/hlstats.php?mode=search&amp;q={$ban.steamid}&amp;s t=uniqueid&amp;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.

Go test it out.

Last edited by NightLinks; 09-07-2009 at 10:55 PM.
Reply With Quote
Sponsored Links
  #2  
Old 10-19-2009, 12:38 PM
NightLinks's Avatar
Noobgamers.com
Join Date: Oct 2007
Location: Bronx, NY
Posts: 3,591
My Mood:
Blog Entries: 17
NightLinks is on a distinguished road
Send a message via AIM to NightLinks
Default NOOBGAMERS.HLstatsX.com

The above guide was written for hlxce but you can also do it to work with hlstatsx.com premium. Do the same steps as above but change the URL link so that it points to your hlstatsx.com premium website. In subdomainname change it to your hlstatsx.com subdomain name example... noobgamers.hlstatsx.com

http://subdomainname.hlstatsx.com/?mode=search&q={$ban.steamid}&st=uniqueid&game=

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 rel="nofollow"http://subdomainname.hlstatsx.com/?mode=search&q={$ban.steamid}&st=uniqueid&game=">{ $ban.steamid}</a>
{/if}
</td>
Now follow the rest of the guide above to finish.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 07:47 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2008, Crawlability, Inc.