Version: 1.0.1, by Mycologist
Developer Last Online: Feb 2013
Category: Mini Mods -
Version: 4.0.0
Rating:
Released: 12-23-2009
Last Update: 12-26-2009
Installs: 88
Template Edits
Re-useable Code Additional Files Translations
No support by the author.
Description
Integrates SteamProfile badges into your forum. Allows forum users to see the current status of other members, including, adding them as Steam firends, viewing their profile, joining their current game and viewing their Team Fortress 2 backpack. The script accepts Steam IDs (ex STEAM_X:X:XXXXXXXX), Steam Community IDs (17 digit number) or Steam Community Aliases. I have included my vB4 skin as the default for the widget.
Go to AdminCP > User Profile Fields > Add New User Profile Field > Single-Line Text Box.
Enter in what ever title and description you want.
Optional To only accept Steam IDs add the following to "Regular Expression":
Code:
STEAM_[0-9]:[0-9]:[0-9]{4,}
Change the "Display Page" option to "Options: Other".
Save.
Make note of the field number (ex field5).
Go to AdminCP > Styles & Templates > Style Manager > Edit Templates > Postbit Templates > postbit_legacy.
Find the following line:
Code:
<vb:if condition="$post['title'] OR $show['messageicon']">
Replace fieldX, in both locations, in the following line of code with your noted field number from above. Then add the code to a new line after the previous line:
Same here... this is only shown in the first post. Would like to see it on replies as well.
**Update**
Figured out why it's not shown on every post. Because we set the code within a condition, only posts with a Title or Message Icon will show the steam profile.
Go to CP -> Settings -> Options -> Message Posting and Editing Options -> Automatically Quote Post / Thread Title: Set to "YES".
This will give each post a title and therefore will show the steam profile.
heres a more idiot proof regex for the steam profile field validation:
Code:
^STEAM_\d{1}:\d{1}:\d+$|^$
It ensures that there is nothing infront of steam (we had a description of the field along the lines of "Your steam id, EX: STEAM_0:1:12345", and we actually had a handful of users enter "EX: STEAM_0...", this regex will prevent it), also allows users to clear the userfield. Should also perform a bit better.
One thing when someone enters there steam id it shows the status etc.. but if someone hasn't entered their id it shows nothing no box at all. Also it's showing everyone as: This profile is private.
hello can someone help the steam profiles shows on there top right when they post but not replys?? Adn doesn't update if someone switches from private to non private profile, stays on private even if they switch it.