PDA

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


The Itchy One
03 Nov 2006, 11:25
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
25 Jan 2007, 15:01
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
20 Feb 2007, 11:52
Just what I was looking for dude! Good job & Thank you! :)

JamesX4334
20 Feb 2007, 12:07
Thanks, good little first mod :up:

The Itchy One
15 Mar 2007, 09:43
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
31 Mar 2007, 15:22
Have you made any progress on that, as its something id be interested in.

FSFwebmaster
28 May 2007, 22:23
does this thing work and what does it look like?

k007
07 Mar 2008, 20:18
yeah i would also like to know.

bostton1
09 Mar 2008, 00:26
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
09 Mar 2008, 20:43
the field number is the number of the field you have created in:

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

t55
09 Mar 2008, 20:57
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
09 Mar 2008, 21:22
how did you change it to an icon instead?


thanks

t55
09 Mar 2008, 21:58
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
10 Mar 2008, 07:49
it worked great, thanks so much for your help.

JVSacco
16 Jun 2008, 04:19
Does this work on 3.7?

bostton1
16 Jun 2008, 04:35
i don't believe so, i wish someone would update it.

helltonic
29 Jun 2009, 10:43
it works for me and i'm using vBulletin 3.8.3

Eldredd
18 Aug 2009, 05:59
It works great for me in 3.8.4