vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Steam Mini Profiles (For Steam Connect) (https://vborg.vbsupport.ru/showthread.php?t=266884)

Disasterpiece 10-30-2012 04:20 PM

Quote:

Originally Posted by AshenTemper (Post 2376954)
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.

AshenTemper 10-30-2012 05:07 PM

Quote:

Originally Posted by Disasterpiece (Post 2377068)
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).

Disasterpiece 10-30-2012 05:17 PM

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.

AshenTemper 10-30-2012 05:36 PM

Quote:

Originally Posted by Disasterpiece (Post 2377076)
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!

jimmy026 11-05-2012 06:53 AM

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?

Disasterpiece 11-05-2012 10:33 AM

Quote:

Originally Posted by jimmy026 (Post 2378495)
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?

jimmy026 11-05-2012 11:40 AM

<a href="http://opticalgaming.net/" target="_blank">http://opticalgaming.net/</a>

Disasterpiece 11-05-2012 12:03 PM

Quote:

Originally Posted by jimmy026 (Post 2378533)

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.

jimmy026 11-05-2012 12:34 PM

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.

Disasterpiece 11-05-2012 12:54 PM

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.


All times are GMT. The time now is 08:18 PM.

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.01245 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_html_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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