PDA

View Full Version : Miscellaneous Hacks - Postbit: SteamID and Hlstats Rankings


The Itchy One
11-02-2006, 10:00 PM
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

<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>

just below it, or below any previous postbit mods, add

<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!

P.Jackson
01-25-2007, 02:01 PM
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 ?

manofphat
02-20-2007, 10:52 AM
Just what I was looking for dude! Good job & Thank you! :)

JamesX4334
02-20-2007, 11:07 AM
Thanks, good little first mod :up:

The Itchy One
03-15-2007, 08:43 AM
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 ?

sorry for the bumping reply but yes it'll work with all 3.5.x and 3.6.x releases :)I'm working on a built-in HlstatsX ranking sheet for vbulletin so keep your eyes on this space!

aceofspades
03-31-2007, 02:22 PM
Have you made any progress on that, as its something id be interested in.

FSFwebmaster
05-28-2007, 09:23 PM
does this thing work and what does it look like?

k007
03-07-2008, 07:18 PM
yeah i would also like to know.

bostton1
03-08-2008, 11:26 PM
I would install and test this out, but I can't figure out what this line means.

Replace 'field5' and field5 with your field number, and "YOUR HLSTATS SERVER" with the ROOT address

I have my hlstatsx hosted, so I don't even know what my field number is.

dannykilla
03-09-2008, 07:43 PM
the field number is the number of the field you have created in:

Admin CP -> User Profile Fields -> Add New User Profile Field

t55
03-09-2008, 07:57 PM
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.

bostton1
03-09-2008, 08:22 PM
how did you change it to an icon instead?

thanks

t55
03-09-2008, 08:58 PM
how did you change it to an icon instead?


thanks

<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.

bostton1
03-10-2008, 06:49 AM
it worked great, thanks so much for your help.

JVSacco
06-16-2008, 03:19 AM
Does this work on 3.7?

bostton1
06-16-2008, 03:35 AM
i don't believe so, i wish someone would update it.

helltonic
06-29-2009, 09:43 AM
it works for me and i'm using vBulletin 3.8.3

Eldredd
08-18-2009, 04:59 AM
It works great for me in 3.8.4