Back to vBulletin 4.x Template Modifications

SteamProfile Integration
Mod Version: 1.0.1, by Mycologist

vB Version: 4.0.0 Rating: (9 votes - 4.78 average) Installs: 88
Released: 24 Dec 2009 Last Update: 27 Dec 2009 Downloads: 702
Not Supported Template Edits Additional Files Re-usable Code Translations External Content  

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
  1. Download attached "steamprofile_vb4_1.0.1.zip".
  2. Expand and upload the "steamprofile" folder into your forum's root directory.
  3. Go to AdminCP > Styles & Templates > Style Manager > Common Templates.
  4. 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>
  5. Save.
  6. Go to AdminCP > User Profile Fields > Add New User Profile Field > Single-Line Text Box.
  7. Enter in what ever title and description you want.
  8. Optional To only accept Steam IDs add the following to "Regular Expression":
    Code:
    STEAM_[0-9]:[0-9]:[0-9]{4,}
  9. Change the "Display Page" option to "Options: Other".
  10. Save.
  11. Make note of the field number (ex field5).
  12. Go to AdminCP > Styles & Templates > Style Manager > Edit Templates > Postbit Templates > postbit_legacy.
  13. Find the following line:
    Code:
    				<vb:if condition="$post['title'] OR $show['messageicon']">
  14. 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>
  15. 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)
  1. Download attached "steamprofile_vb4_1.0.1_upgrade.zip".
  2. Expand and upload the "steamprofile" folder into your forum's root directory. Replacing all files.
  3. Finished.

Version History
1.0.0 - Initial Release
1.0.1 - Fixed Quote Overlap Issue

Download

File Type: %1$s steamprofile_vb4_1.0.1.zip (83.3 KB, 641 downloads)
File Type: %1$s steamprofile_vb4_1.0.1_upgrade.zip (1.2 KB, 285 downloads)

Supporters / CoAuthors

  • drpeppper

Screenshots

Click image for larger version
Name:	slideclosed.png
Views:	3258
Size:	89.6 KB
ID:	108057   Click image for larger version
Name:	slideopen.png
Views:	2527
Size:	84.4 KB
ID:	108058  


vblts.ru supports vBulletin®, 2022-2024