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

Reply
 
Thread Tools
Steam Mini Profiles (For Steam Connect) Details »»
Steam Mini Profiles (For Steam Connect)
Version: 1.1, by Disasterpiece Disasterpiece is offline
Developer Last Online: Oct 2019 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.1.4 Rating:
Released: 07-14-2011 Last Update: 05-13-2012 Installs: 95
Uses Plugins Auto-Templates
Additional Files  
No support by the author.

This Addon displays a Mini Steam Box in the postbit template.

It requires the Steam Connect Addon to find the according Steam ID.
It's a vbulletin-implementation of Barracuda's SteamProfile Plugin.


INSTALL

1) Upload all the files inside "upload" directory to their respective locations

2) CHMOD directory "clientscript/steamprofile/cache" to 777

3) Import the product xml file as an Addon inside your AdminCP

4) Navigate to Settings > "Steam Mini Profile Settings" and configure the product to fit your needs.

BASIC STYLING

The best idea is to use it in the upper right corner of the postbit. You can accomplish this by adding this CSS to your CSS > additional.css template:

Code:
div.steamprofile{
float:right;
display:block;
z-index:300;
}
If you want to place it at any other position inside the postbit* template, follow the instructions in this post: https://vborg.vbsupport.ru/showpost....70&postcount=3
Just place the following part anywhere you like the profile to appear:
HTML Code:
<vb:if condition="$post['steamid']"><div class="steamprofile" title="{vb:raw post.steamid}"></div></vb:if>

See Upgrade Notes for Upgrade v1.0 -> v1.1

Download Now

File Type: zip stc_vbminiprofile.zip (49.0 KB, 483 views)
File Type: zip stc_vbminiprofile_v1.1.zip (733.1 KB, 794 views)

Screenshots

File Type: jpg scr3.JPG (65.2 KB, 0 views)
File Type: jpg scr6.jpg (46.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
7emper5i, Garrey, vosur

Comments
  #102  
Old 10-30-2012, 04:20 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AshenTemper View Post
I could be doing something wrong... but should this show up when a user doesn't have their account connected to steam? In the attached, the first user does not have a their account connected to steam but the following two do. The second just hasn't set up a community profile and the third works just fine.

Mainly wondering about the first where their "Steam Connect Settings" is set to NO.
the first one shouldn't actually display. So I'm not sure what's going on there. You use steam mini profiles with steam connect, yes?

Also: Make sure the cache directory inside the steam mini profiles dir under clientscript is writable (chmod 777) including all files which are already inside.
Reply With Quote
  #103  
Old 10-30-2012, 05:07 PM
AshenTemper's Avatar
AshenTemper AshenTemper is offline
 
Join Date: Mar 2006
Location: Austin, Texas
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Disasterpiece View Post
the first one shouldn't actually display. So I'm not sure what's going on there. You use steam mini profiles with steam connect, yes?

Also: Make sure the cache directory inside the steam mini profiles dir under clientscript is writable (chmod 777) including all files which are already inside.
Correct, this is being used in conjunction with Steam Connect - Sign in with your Steam Account! [RC2]. Great mod, btw!

I did check and both that directory, it's subdirectory, and files within are chmod to 777.

When I turn the plugin "add steam profile" back on, it only shows the appropriate ones so it leads me to believe maybe I set it wrong in the postbit (legacy). This is how I set it:

Quote:
{vb:raw template_hook.postbit_userinfo_right}
<div class="steamprofile" title="{vb:raw post.steamid}"></div>
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
Do I need to make a plugin for it since I turned off the other one (guessing no but unsure what else I might be doing wrong)? I also sent you a URL to the community in a PM so you can see it live (if that helps).
Reply With Quote
  #104  
Old 10-30-2012, 05:17 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, this is the wrong one. you need to tell the template that it should only display the html tags if the steam id is not empty. You can do this like this:

HTML Code:
{vb:raw template_hook.postbit_userinfo_right}
{vb:if condition="!empty($post['steamid'])"}
<div class="steamprofile" title="{vb:raw post.steamid}"></div>
{/vb:if}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
Not tested, but should work.
Reply With Quote
  #105  
Old 10-30-2012, 05:36 PM
AshenTemper's Avatar
AshenTemper AshenTemper is offline
 
Join Date: Mar 2006
Location: Austin, Texas
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Disasterpiece View Post
Yeah, this is the wrong one. you need to tell the template that it should only display the html tags if the steam id is not empty. You can do this like this:

HTML Code:
{vb:raw template_hook.postbit_userinfo_right}
{vb:if condition="!empty($post['steamid'])"}
<div class="steamprofile" title="{vb:raw post.steamid}"></div>
{/vb:if}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
Not tested, but should work.
When I try that, it gives me the following error:

Quote:
The following error occurred when attempting to evaluate this template:
Could not find phrase 'no_true_expression_specified'.
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
And if I force it to accept, it gives me this on the page:

Quote:
Parse error: syntax error, unexpected '=' in /home/stoic/stoicstudio.com/forum/includes/class_core.php(4627) : eval()'d code on line 158
And while writing this up, I figured out the problem. I just needed to change:

Quote:
{vb:if condition="!empty($post['steamid'])"}
<div class="steamprofile" title="{vb:raw post.steamid}"></div>
{/vb:if}
To:

Quote:
<vb:if condition="!empty($post['steamid'])">
<div class="steamprofile" title="{vb:raw post.steamid}"></div>
</vb:if>
Basically just had to wrap it in <>, not {}. Works great now! Thanks for your help!
Reply With Quote
  #106  
Old 11-05-2012, 06:53 AM
jimmy026 jimmy026 is offline
 
Join Date: Mar 2011
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm I tried everything. Have cache 777 I tried to even remove one of the Jqeury lines. Re uploaded everything. Still getting error

"Invalid profile data"

Anyone know why?
Reply With Quote
  #107  
Old 11-05-2012, 10:33 AM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jimmy026 View Post
Hmm I tried everything. Have cache 777 I tried to even remove one of the Jqeury lines. Re uploaded everything. Still getting error

"Invalid profile data"

Anyone know why?
Can you give me a link to your site?
Reply With Quote
  #108  
Old 11-05-2012, 11:40 AM
jimmy026 jimmy026 is offline
 
Join Date: Mar 2011
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://opticalgaming.net/" target="_blank">http://opticalgaming.net/</a>
Reply With Quote
  #109  
Old 11-05-2012, 12:03 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jimmy026 View Post
Your steamprofile cache is empty, are you sure this one is writable as well?
http://opticalgaming.net/clientscrip...profile/cache/

It should at least contain a few cache files otherwise this might be the issue.

//e: Other thing wich comes to my mind: Do you have cUrl installed on your machine? Lookup the phpinfo in the vb admincp and check if curl is installed and working.
Reply With Quote
  #110  
Old 11-05-2012, 12:34 PM
jimmy026 jimmy026 is offline
 
Join Date: Mar 2011
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it is Read/write/execute on all 3.

I think I have cUrl since my plugins work fine it is just this one. Can not find cURL anywhere in database though

I checked my database and when go to DB do not have admincp in there. It is in my website folder but not in my VB folder.
Reply With Quote
  #111  
Old 11-05-2012, 12:54 PM
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Location: GER
Posts: 765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cUrl is not to be found in any database, you need to check the phpinfo. This one: http://opticalgaming.net/admincp/index.php?do=phpinfo

Then you look for an entry that says:

cURL support enabled
cURL Information 7.21.0 or something like this.
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 02:02 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.04863 seconds
  • Memory Usage 2,361KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_code
  • (3)bbcode_html
  • (10)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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