Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
SteamProfile Integration Details »»
SteamProfile Integration
Version: 1.0.1, by Mycologist Mycologist is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

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.

Example Of The Badges (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
Barracuda the author of SteamProfile.
drpepper of 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 Now

File Type: zip steamprofile_vb4_1.0.1.zip (83.3 KB, 639 views)
File Type: zip steamprofile_vb4_1.0.1_upgrade.zip (1.2 KB, 283 views)

Screenshots

File Type: png slideclosed.png (89.6 KB, 0 views)
File Type: png slideopen.png (84.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 01-16-2010, 03:50 PM
d3vilfish666 d3vilfish666 is offline
 
Join Date: Feb 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I maybe off the ball here but I think if you close your browser then empty your browser cache and then relogin to your website it will show the correct status. { both ie 7/8 & ff 3.x have settings in options to delete browser history cookies cache etc automaticly}
Info for the author if there is anyway to push the cookie to refresh that would be great.
Reply With Quote
  #63  
Old 01-19-2010, 01:08 AM
Chainspell Chainspell is offline
 
Join Date: Jan 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

k i got it to work except for the images.

the images are displayed fine (the buttons to add friends, etc) in firefox. but in IE the address for the images is: http://www.tf2tactics.com/steamprofi...add_friend.png

anyone got a clue on how to fix this? i've been digging around...
Reply With Quote
  #64  
Old 01-19-2010, 02:00 AM
Chainspell Chainspell is offline
 
Join Date: Jan 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://www.tf2tactics.com/showthread...&p=480#post480

i also edited the colors and some of the icons to look exactly like the friends list on steam. if you guys want me to upload my steamprofile folder just let me know

anyone been able to fix the icon thing yet?
Reply With Quote
  #65  
Old 01-19-2010, 02:16 AM
Chainspell Chainspell is offline
 
Join Date: Jan 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hahaha!!! i fixed it!

for those who are wondering, i commented out those pesky double src url thingy (added the red comment tags) on steamprofile.js:

Code:
		// load templates
		profileTpl = $(configData.find('templates > profile').text());
		loadingTpl = $(configData.find('templates > loading').text());
		errorTpl   = $(configData.find('templates > error').text());
		
		// add theme path to image src
		//profileTpl.find('img').attrAppend('src', themePath);
		//loadingTpl.find('img').attrAppend('src', themePath);
		//errorTpl.find('img').attrAppend('src', themePath);
then on steamprofile.xml, changed all SRC= images relative to root path. full steamprofile.xml code:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<steamprofile-config>
	<vars>
		<!-- The Theme used by SteamProfile. Must be the name of a folder inside the "themes/" folder. -->
		<var name="theme">default</var>
		<!-- If set to true, the slider menu with icon links will be shown. -->
		<var name="slidermenu">true</var>
		<!-- If set to true, the banner of the currenty played game will be shown in the badge background. -->
		<var name="gamebanner">true</var>
	</vars>
	<!-- The HTML templates for DOM manipulation. Change only if you know what you're doing. -->
	<templates>
		<profile>
		<![CDATA[
			<div class="sp-bg-game">
			<div class="sp-bg-fade">
			<div class="sp-badge">
				<div class="sp-avatar">
					<a target="_blank" href="">
						<img src="" width="32" height="32" alt="" />
					</a>
				</div>
				<div class="sp-info">
					<a target="_blank" href=""></a><br />
				</div>
				<div class="sp-extra">
					<div class="sp-handle"></div>
					<div class="sp-content">
						<a class="sp-joingame" title="Join Game" href=""><img src="/steamprofile/themes/default/icon_join_game.png" width="16" height="16" alt="" /></a>
						<a class="sp-addfriend" title="Add to Friends" href=""><img src="/steamprofile/themes/default/icon_add_friend.png" width="16" height="16" alt="" /></a>
						<a class="sp-viewitems" title="View Items" href="" target="_blank"><img src="/steamprofile/themes/default/icon_view_items.png" width="16" height="16" alt="" /></a>
					</div>
				</div>
			</div>
			</div>
			</div>
		]]>
		</profile>
		<loading>
		<![CDATA[
			<div class="sp-loading">
				<img src="/steamprofile/themes/default/loading.gif" width="32" height="32" alt="" />
				Loading...
			</div>
		]]>
		</loading>
		<error>
		<![CDATA[
			<div class="sp-error">
				<img src="/steamprofile/themes/default/error.png" width="16" height="16" alt="Error" />
			</div>
		]]>
		</error>
	</templates>
</steamprofile-config>
Reply With Quote
  #66  
Old 01-28-2010, 08:21 PM
hulkster hulkster is offline
 
Join Date: Mar 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

i have a problem

invalid profile alias

it's looks like js dont work
but on VB option js i on
Attached Images
File Type: jpg x.jpg (2.8 KB, 0 views)
Reply With Quote
  #67  
Old 02-08-2010, 09:30 PM
DJ29Joesph DJ29Joesph is offline
 
Join Date: Jan 2009
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked great, thanks :P
Reply With Quote
  #68  
Old 02-12-2010, 01:38 PM
hulkster hulkster is offline
 
Join Date: Mar 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you help me please ?
Reply With Quote
  #69  
Old 02-12-2010, 03:23 PM
Chainspell Chainspell is offline
 
Join Date: Jan 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you cant put in your steam profile login for some reason, it doesnt work. you have to use STEAM_X:X:XXXXXXXX or Steam Community IDs (17 digit number)

also i didnt do this part (number 8 in the guide):

Optional To only accept Steam IDs add the following to "Regular Expression":
STEAM_[0-9]:[0-9]:[0-9]{4,}

because you can't put in the 17 digit number if you do.
Reply With Quote
  #70  
Old 02-13-2010, 04:41 AM
hulkster hulkster is offline
 
Join Date: Mar 2009
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi
I do everithings,couple times
i even miss nr 8
but still have this



I have Loadnig and then this /\ (on the sreen)

we rebuild code but don have js adsons

Code:
<vb:if condition="$post['fieldX']"><iframe src="http://steamprofile.com/steam/profile/steamprofile/{vb:raw post.fieldX}.png" align="right" width="254" height="48" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></vb:if>
Reply With Quote
  #71  
Old 02-13-2010, 05:26 AM
Chainspell Chainspell is offline
 
Join Date: Jan 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whats your url? you have to have the .js files
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05828 seconds
  • Memory Usage 2,348KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete