vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - SteamProfile Integration (https://vborg.vbsupport.ru/showthread.php?t=231081)

Mycologist 12-23-2009 10:00 PM

SteamProfile Integration
 
1 Attachment(s)
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

SuperTaz 12-25-2009 03:09 AM

Installed, but I can't find the profile. Any thoughts?

slimshotty 12-25-2009 04:52 AM

How do you resolve this error?

Cache directory "cache" is not writable.


Thanks,

--Slim

slimshotty 12-25-2009 04:55 AM

Nevermind the cache error. I resolved it by chmod 777 /forum/steamprofile/cache.

I have a new error:

cURL extension not loaded

What am I missing now?

Thanks,

--Slim

Mycologist 12-25-2009 08:52 PM

Quote:

Originally Posted by Warden-B- (Post 1937761)
Installed, but I can't find the profile. Any thoughts?

Make sure you fill in your ID.

Go to Settings > Forum Settings > (The Input Box You Named Should Be Near The Bottom).

Mycologist 12-25-2009 08:54 PM

Quote:

Originally Posted by slimshotty (Post 1937800)
Nevermind the cache error. I resolved it by chmod 777 /forum/steamprofile/cache.

I have a new error:

cURL extension not loaded

What am I missing now?

Thanks,

--Slim

I am sorry, I cannot recreate this error. Is there any additional information you can provide?

Bouncer222 12-26-2009 02:20 AM

I have an issue, look at this link at post number 2 http://www.brotherhoodofgamers.com/s...full=1#post195

as you can see, the quoted text goes over the steam signature, how do I fix that?

Thanks.

niake 12-26-2009 08:51 AM

One user on my forum has only 4 digits number one he's Steam ID like STEAM_0:1:111

He get This user has not yet set up their Steam Community profile.

JamesGunner 12-26-2009 07:15 PM

If you display it there, then the quote will be hiding it. So if a player quotes at the start of his post it will be overlapping the steamprofile pic from what I tested.

Quote:

Originally Posted by slimshotty (Post 1937800)
Nevermind the cache error. I resolved it by chmod 777 /forum/steamprofile/cache.

I have a new error:

cURL extension not loaded

What am I missing now?

Thanks,

--Slim

Seems like that your Curl PHP module is not loaded. Ask your Hoster to enable this for you.

Bouncer222 12-26-2009 10:32 PM

So is there a way to fix it??


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01169 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete