![]() |
Postbit: SteamID and Hlstats Rankings
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/showthread.php?t=64 Click on the little Steam_ID hyperlink. have fun! |
Templates sorry for bumping very very old threads but this is a great addition and should be moved by a admin/mod :)
Does this work with 3.6.4 ? |
Just what I was looking for dude! Good job & Thank you! :)
|
Thanks, good little first mod :up:
|
Quote:
|
Have you made any progress on that, as its something id be interested in.
|
does this thing work and what does it look like?
|
yeah i would also like to know.
|
I would install and test this out, but I can't figure out what this line means.
Code:
Replace 'field5' and field5 with your field number, and "YOUR HLSTATS SERVER" with the ROOT address |
the field number is the number of the field you have created in:
Admin CP -> User Profile Fields -> Add New User Profile Field |
This works fine although I changed mine to an icon instead of a text link. If you have hlstats or hlstatsx, this works for both.
|
how did you change it to an icon instead?
thanks |
Quote:
Code:
<if condition="$post['field8']"><a href="http://my_hlstatsx_link.com/?mode=search&q=$post[field8]&st=uniqueid&game=" target="_blank"><img src="http://image_link.com" border="0" alt="HLStatsX Ranking for $post[field8]"></a></if> Replace "field8" with the field number that shows in the "User Profile Field Manager" under the "Name" column. Obviously make sure you created a new user profile field for Steam ID first. |
it worked great, thanks so much for your help.
|
Does this work on 3.7?
|
i don't believe so, i wish someone would update it.
|
it works for me and i'm using vBulletin 3.8.3
|
It works great for me in 3.8.4
|
All times are GMT. The time now is 05:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|