Back to vBulletin 3.6 Template Modifications

Postbit: SteamID and Hlstats Rankings
Mod Version: 1.00, by The Itchy One

This modification is in the archives.
vB Version: 3.6.2 Rating: (0 vote - 0 average) Installs: 14
Released: 03 Nov 2006 Last Update: Never Downloads: 3
Not Supported Template Edits  

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>
just below it, or below any previous postbit mods, add
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.


vblts.ru supports vBulletin®, 2022-2024