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
  #102  
Old 10-05-2010, 12:11 AM
johkalhaups's Avatar
johkalhaups johkalhaups is offline
 
Join Date: Jun 2006
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.theriseoftsm.com/forums/index.php" target="_blank">http://www.theriseoftsm.com/forums/index.php</a>

I use posbit instead of postbit_legacy, is there anyway to have this show up to the left of the info in posts like location, posts, join date, etc?
Reply With Quote
  #103  
Old 10-25-2010, 12:23 AM
i3lack's Avatar
i3lack i3lack is offline
 
Join Date: Apr 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I put this under my postbit right under the Posts:XXX

To Do this follow the instructions below.

1. Go to Postbit_Legacy
2. Search "Posts" should look like this
Code:
{vb:rawphrase 'posts'} : {vb:raw post.posts} 
    </div>
Below Put
Code:
<vb:if condition="$post['fieldx']"><div class="steamprofile" title="{vb:raw post.fieldx}" style="float: left;"></div></vb:if>
<script type="text/javascript" src="steamprofile/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="steamprofile/steamprofile.js"></script>
Make sure to change ['fieldx'] to your field number exp: ['field5']

Save and Load . It too long so to edit this go to steamprofile/themes/default
Edit the Style.css file and change to this

Code:
.steamprofile {
	position: relative;
	width: 180px;
	height: 48px;
	background: #8ba6b8 url(background.png);
	overflow: hidden;
	margin: 4px;
	z-index: 100;
}
To Change how far it comes out change
Code:
width: 180px;
I have mine at width: 180px;

Code:
http://thogaming.com/forums/news-center/4325-new-tho-media.html#post4708
If you have already installed this make sure you delete the coding you put in. If you dont it will not work with this!
Reply With Quote
  #104  
Old 10-25-2010, 10:59 AM
R4Z0R49 R4Z0R49 is offline
 
Join Date: Oct 2010
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Mycologist,

Works perfect Thank you

PS Steam ids can be found here: http://steamidfinder.com/
Reply With Quote
  #105  
Old 10-25-2010, 11:02 AM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool. will check it out.
Reply With Quote
  #106  
Old 10-28-2010, 06:31 PM
horussjr horussjr is offline
 
Join Date: Feb 2010
Location: Romania
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can somebody make the 2.0.4 work on vbulletin 4.0.8? (or any other v4). here is the official project link
http://code.google.com/p/steamprofile/


PS: not changing the status because of the setting in the files. it's veri ugly made, unfinished etc. i made some changings into the files and themes and it's a lot nicer. and work very well changing the refresh rate
Reply With Quote
  #107  
Old 10-31-2010, 11:44 PM
kroko kroko is offline
 
Join Date: Jun 2010
Location: Denmark
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so dose this works with the newest version vbulletin?
Reply With Quote
  #108  
Old 11-01-2010, 01:58 AM
lcn lcn is offline
 
Join Date: Nov 2007
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works well with Vbulletin 4.0.8
I modified one small part so the Steam information is posted on the left.

# 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']">
in DeepSkyBlue change the word right to center
Code:
	<vb:if condition="$post['field5']"><div class="steamprofile" title="{vb:raw post.field5}" style="float: center;"></div></vb:if>
Reply With Quote
  #109  
Old 11-02-2010, 01:07 AM
ccsdef ccsdef is offline
 
Join Date: Sep 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those asking about http://code.google.com/p/steamprofile/.

Just use the same instructions as given here however note that you need only include the javascript files included in the new release you do not need jQuery.

If you want the Steam profile to show up on every post simply just move it (the code from step 14) before the code found in step 13.

Also in the default CSS to fix the quote overlap problem you must add a z-index. I used the following to properly display all images and fix the quote overlap.

.steamprofile z-index = 1

.steamprofile .sp-extra z-index = 2 (this just pertains to the stuff that rolls out)

.steamprofile .sp-handle z-index = 3 (this is the part you click to roll out the extras)

Hope this helps!
Reply With Quote
  #110  
Old 01-12-2011, 01:31 PM
Stheal Stheal is offline
 
Join Date: Feb 2010
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does the mod work? cause i have this problem



Can anyone help me getting it work?
Reply With Quote
  #111  
Old 01-13-2011, 10:09 AM
matrixmark matrixmark is offline
 
Join Date: Dec 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stuky4ever View Post
How can I add the Steam Profile thing below the Post Count. Example.
Took a bit of playing around but finally got it for me

find:

Quote:
{vb:raw post.yahooicon} {vb:raw post.skypeicon}
In your postbit_legacy file.

and under that ^ line paste in:

Quote:
<vb:if condition="$post['fieldX']"><div class="steamprofile" title="{vb:raw post.fieldX}" style="float: left;"></div></vb:if>
Make sure to change the X in ['fieldX'] part to the number of your field when you created it.

Save and reload.

p.s you might and probably will have to modify the css a little to fit it in there better! but that I wont explain as it might be different all depending what theme you are using etc. The css file is located in "/steamprofile/themes/default" this is the block you need to edit up a little bit to fit your needs.

Quote:
.steamprofile {
position: relative;
width: XXXpx;
height: XXXpx;
background: #8ba6b8 url(background.png);
overflow: hidden;
margin: 4px;
z-index: 100;
}

Replace the XXX's with the sizes for your forum, i used width: 170px; height: 48px; for mine but it might be different for yours
Well hopefully that made sense if not let me know and i'll try and explain better. Oh and here is a lil screenshot of what it looks like... hope this is allowed :O



Uploaded with ImageShack.us

Mark
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 07:56 PM.


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.10932 seconds
  • Memory Usage 2,350KB
  • 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
  • (11)bbcode_code
  • (4)bbcode_quote
  • (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
  • (3)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
  • (4)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