Postbit: SteamID and Hlstats Rankings
This modification is in the archives.
Here is my First mod, it's a simple postbit change but i was "mega-chuffed" that it worked
First of All you must do this: Admin CP -> User Profile Fields -> Add New User Profile Field Choose "Single Line Text Box" Title: Steam ID (or whatever you wish, i have chosen "SteamID") Display Order: (you choose!) Field Required: (you choose!) Field Editable by User: (you choose!) Private Field: NO!! Field Searchable on Members List: Yes Show on Members List: (I chose yes) Display Page: Edit Profile [SAVE] Okey Pokey Take note on what your fieldid is, mine is this case is field5 Now, Go to AdminCP Go to "Style Manager" Go to "Edit Templates" for your theme. Scroll down until you get to "Postbit Templates" Open up either Postbit or Postbit Legacy (depending on what you use!) Find in the template in which you want this mod to display Code:
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if> Code:
<if condition="$post['field5']"><div>Steam ID: <a href="YOUR HLSTATS SERVER/?mode=search&q=$post[field5]&st=uniqueid&game=">$post[field5]</a></div></if> Replace 'field5' and field5 with your field number, and "YOUR HLSTATS SERVER" with the ROOT address an example can be found here: http://lovepants.co.uk/forum/index.php?t=64 Click on the little Steam_ID hyperlink. have fun! Download No files for download. |