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.
http://ducksoup-gaming.com/example.html (Demo Coming Shortly)
Installation- Download attached "steamprofile_vb4_1.0.1.zip".
- Expand and upload the "steamprofile" folder into your forum's root directory.
- Go to AdminCP > Styles & Templates > Style Manager > Common Templates.
- Add the following to a new line at the bottom of your "headinclude":
Code:
<script type="text/javascript" src="steamprofile/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="steamprofile/steamprofile.js"></script>
- Save.
- 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:
Code:
<vb:if condition="$post['fieldX']"><div class="steamprofile" title="{vb:raw post.fieldX}" style="float: right;"></div></vb:if>
- Save. Finished.
Additional Credits
email the author of https://code.google.com/p/steamprofile/.
drpepper of http://forums.tf2maps.net/ for his
original vB 3.8.2 mod.
Upgrade Instructions (1.0.0 > 1.0.1)- Download attached "steamprofile_vb4_1.0.1_upgrade.zip".
- Expand and upload the "steamprofile" folder into your forum's root directory. Replacing all files.
- Finished.
Version History
1.0.0 - Initial Release
1.0.1 - Fixed Quote Overlap Issue