vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Miscellaneous Hacks - Postbit: SteamID and Hlstats Rankings (https://vborg.vbsupport.ru/showthread.php?t=130691)

The Itchy One 11-02-2006 10:00 PM

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

Quote:

Originally Posted by P.Jackson (Post 1167029)
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.

Code:

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

Quote:

Originally Posted by bostton1 (Post 1461003)
how did you change it to an icon instead?


thanks

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.

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


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
  • Page Generation 0.01099 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete