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)
-   -   Integration with vBulletin - Steam Connect - Sign in with your Steam Account! [RC3] (https://vborg.vbsupport.ru/showthread.php?t=266883)

Skyrider 09-21-2014 08:33 AM

Quote:

Originally Posted by Andr? Noberto (Post 2514634)
This is what whappens to me when I try to login, register or link my account.

https://vborg.vbsupport.ru/external/2014/09/13.png

Can you help me please?

Did you setup the Steam API key in the Steam Connect settings?

wtfaatp 09-26-2014 12:29 AM

I'd be willing to help anyone with setting this up if they need it...

I am having one problem... I can not get the steam pics to show in forum post for the life of me? Anyone know of a fix or having the same problem? 4.2.2

vBStu 09-26-2014 08:35 AM

Does this support the version 4.2.2?

wtfaatp 09-26-2014 06:47 PM

Quote:

Originally Posted by vBStu (Post 2516543)
Does this support the version 4.2.2?

Hasn't been stated either way... However I will not upgrade to 5 so I hope this continues to get support!

Neuro Toxin 09-28-2014 03:08 AM

Hello,

I changed my forum address from http://aus-tg.com/forums/ to http://forums.aus-tg.com/ a few weeks ago.

Now when people attempt to use the signin through steam button (http://forums.aus-tg.com/login2.php?do=login) it keeps redirecting them back to the same page.

My SteamAPI key is correct and the domain for the api key is aus-tg.com.

I use other services on the same domain (console.aus-tg.com) which work fine with the same API key.

I'm sure I'm missing something stupid. Can someone please help.

Neuro Toxin 09-30-2014 10:40 PM

Quote:

Originally Posted by Neuro Toxin (Post 2514185)
Hey,

If I disable the group "Unregistered / Not Logged In" setting "Can View Forum". login2.php?do=login does nothing and wont redirect to the openid gateway for steam.

I want to block all non registered users from seeing the forums, however, this is stopping me.

this was my problem :/

Chaya_ 10-30-2014 07:41 PM

{vb:raw post.steamicon}

This doesn't work :(

deadlyruler 11-06-2014 03:56 PM

Great plugin. I was just wondering is there a way to set a users steam avatar as their main avatar for the forums?

TheEliteGaming 11-13-2014 02:41 PM

The latest 4.2.2 version of vBulletin makes your addon spit an erro such as following:

Code:

Warning: fopen(/usr/www/****/public/logging.txt): failed to open stream: No such file or directory in ..../includes/functions_steamconnect.php on line 543

Warning: fputs() expects parameter 1 to be resource, boolean given in ..../includes/functions_steamconnect.php on line 546

Is there a fix for this or are you going to work on this?

Thanks :)

tdev1 01-02-2015 06:14 AM

Works fine here, except when steam web API goes down, then even 1 second timeout is too much.

The following change allows timeouts below 1 second:
PHP Code:

    $timeout 0.3;
// ...
    
curl_setopt$chCURLOPT_CONNECTTIMEOUT_MS$timeout 1000 );
    
curl_setopt$chCURLOPT_TIMEOUT_MS$timeout 1000 ); 


mikez006 01-03-2015 03:09 PM

Ran into a problem with usergroups.

Primary usergroup for all new members (including Steam Connect) is: usergroup1
Steam Connect users are added to a secondary usergroup: Steam Users

We have multiple membership plans which move members to different primary usergroups.

If a "Steam" user upgrades their account, their primary usergroup is changed. However when the Steam Connect cache time expires, it reacquires their Steam info, but then changes their primary usergroup back to the default usergroup (usergroup1).

Increasing cache time to a very large number will solve this, but then their info will never update.

Is there a way that the primary usergroup change can be disabled after the Steam users registers for the first time?

Update: I doesn't appear to be the cache time. I set it for 90 days, but members are still being removed from their upgraded usergroups and are being move back to the default usergroup1.

Any ideas?

Grouper 01-05-2015 01:56 PM

Your get_user_steamid() is broken. user info doesn't include steam_link even though it is in the database. If you provide get_user_steamid() with no params then you will always get a return false because of this.

Yumiyashi 01-06-2015 10:55 PM

Possibility of port to vb5?

ozzy47 01-06-2015 11:08 PM

I doubt it. vB5 is not made to be mod friendly.

mikez006 01-07-2015 01:57 AM

Using 4.2.2.

I commented out this line from the Steam Connect cron job and it solved the problem.

Code:

$finishat = update_user_steamgroup_assoc(null, null, 1, 1, 1);

ozzy47 01-07-2015 02:13 AM

Glad to hear you came up with a solution to your issue mikez006. :)

Skyrider 01-24-2015 06:03 AM

Quote:

Originally Posted by tdev1 (Post 2530011)
Works fine here, except when steam web API goes down, then even 1 second timeout is too much.

The following change allows timeouts below 1 second:
PHP Code:

    $timeout 0.3;
// ...
    
curl_setopt$chCURLOPT_CONNECTTIMEOUT_MS$timeout 1000 );
    
curl_setopt$chCURLOPT_TIMEOUT_MS$timeout 1000 ); 


You never 'mentioned' where you changed this though. Showing the code is awesome, but the location of where to find it is another question.

mfowler70 01-27-2015 07:07 PM

Quote:

Had another idea. Hopefully this one is good like my last one was.

Regarding the Steam avatars, when they're online in Steam, the border is Green. When they're offline, it's Blue. When you click the avatar, it sends you to their community profile.

Did anyone ever figure out how to accomplish this?

mfowler70 01-28-2015 12:05 PM

By the way, this is how I tackle the issue with non-Steam avatars not showing up using the method outlined previously in this thread. I'm sure the code isn't proper and I'm no programmer but this works for me.

PHP Code:

<vb:if condition="$post['steam_code']"><a href="http://steamcommunity.com/profiles/{vb:raw post.steamid}" target="_blank" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}"><img src="{vb:raw post.steamavatarmedium}" /></a>
            <
vb:else /><class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}"><img src="{vb:raw post.avatarurl}" /></a>
            </
vb:if> 


Doc913 01-29-2015 06:04 AM

Quote:

Originally Posted by mfowler70 (Post 2535003)
By the way, this is how I tackle the issue with non-Steam avatars not showing up using the method outlined previously in this thread. I'm sure the code isn't proper and I'm no programmer but this works for me.

PHP Code:

<vb:if condition="$post['steam_code']"><a href="http://steamcommunity.com/profiles/{vb:raw post.steamid}" target="_blank" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}"><img src="{vb:raw post.steamavatarmedium}" /></a>
            <
vb:else /><class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}"><img src="{vb:raw post.avatarurl}" /></a>
            </
vb:if> 


Where should the code be pasted?

Skyrider 01-30-2015 09:50 AM

Indeed.. would be nice if people are showing code, to mention where it should be placed to begin with.

MistViper 02-14-2015 05:38 PM

I get the same issue for the profile pictures not showing up. Any idea where to put that code or how to fix this?

reesev 03-02-2015 10:51 PM

Quote:

Originally Posted by mfowler70 (Post 2535003)
By the way, this is how I tackle the issue with non-Steam avatars not showing up using the method outlined previously in this thread. I'm sure the code isn't proper and I'm no programmer but this works for me.

PHP Code:

<vb:if condition="$post['steam_code']"><a href="http://steamcommunity.com/profiles/{vb:raw post.steamid}" target="_blank" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}"><img src="{vb:raw post.steamavatarmedium}" /></a>
            <
vb:else /><class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}"><img src="{vb:raw post.avatarurl}" /></a>
            </
vb:if> 


Thanks.. that code worked for me.. had to make a few small modification in the postbit template with you code but works like a charm.


Anyone have a fix for referrals not working if they register using a steam id?

NoMatt3r 03-04-2015 08:34 PM

Hey,

just installed the mod and when i want to login i'll get this message on my board after logging in into steam web page:

There has been an error with your request. Please inform the Administrator, if the problem persists.

Anybody knows how to fix?

Disasterpiece 03-04-2015 09:20 PM

What does the steam connect logfile say?

NoMatt3r 03-08-2015 01:34 PM

Quote:

Originally Posted by Disasterpiece (Post 2539539)
What does the steam connect logfile say?

Where do i find that?

Disasterpiece 03-08-2015 04:49 PM

In the addons settings you can specify a logfile. Errors should appear there as well. Set up a logfile path, replicate the error and check if an error message appears in the log

NoMatt3r 03-10-2015 10:41 AM

Quote:

Originally Posted by Disasterpiece (Post 2539876)
In the addons settings you can specify a logfile. Errors should appear there as well. Set up a logfile path, replicate the error and check if an error message appears in the log

Thank you for replying.

I've created a file and set permissions to 777. It looks like this http://puu.sh/gutE5/01ed3685ef.png

However, when i try to sign in through Steam and get the error there is nothing written in this file.

Disasterpiece 03-10-2015 02:44 PM

The path needs to be absolute, as the description hints.

Find out how the directory of your vbulletin installation is called, so instead of steam_connect_log.txt, there needs to be something like

/var/www/mydomain.com/httpdocs/steam_connect_log.txt

on linux servers and

C:/htdocs/mydomain.com/steam_connect_log.txt

on windows servers. I cannot help you with this, contact your provider in case you have no idea where to get that information.

Kutzooi 03-25-2015 11:00 PM

Quote:

Originally Posted by Doc913 (Post 2535123)
Where should the code be pasted?

Same question here :D

Where do i paste this code?

Thanks in advance!

Disasterpiece 03-26-2015 11:52 PM

Quote:

Originally Posted by Kutzooi (Post 2541549)
Same question here :D

Where do i paste this code?

Thanks in advance!

Looks like the code needs to be placed in the postbit_legacy template of your vbulletin style(s) where in the original style, the avatar would be located.

Snap_shot 04-26-2015 04:46 PM

Edit: never mind :\

Skyrider 05-07-2015 02:27 PM

Quote:

Primary Usergroup for Steam-Users

Note: This usergroup is ONLY for those who have not set up an email OR a password.
I wish I could override this either way. I'd like 1 usergroup (primary) for the steam linked users, regardless of the user has registered or not before linking. It works just great for new users, as expected. Just not for already registered users. I'm unable to find the specific code in login2 that does this. Its keeping the registered usergroup as main usergroup, while I want it to be the steam linked group.

mikez006 06-12-2015 03:37 PM

When the Steam API is down it causes user profiles to hang for about 20-30 seconds when loading them via AdminCP. It doesn't do this on the main site.

Can a fix be made so that it times out in adminCP also? Waiting 30 seconds when I have to view someone's profile is very frustrating.

Disasterpiece 06-14-2015 10:18 AM

Quote:

Originally Posted by mikez006 (Post 2547709)
When the Steam API is down it causes user profiles to hang for about 20-30 seconds when loading them via AdminCP. It doesn't do this on the main site.

Can a fix be made so that it times out in adminCP also? Waiting 30 seconds when I have to view someone's profile is very frustrating.

Is it just the admincp or the regular user profile in member.php?

striker_wow 07-13-2015 10:14 PM

I have integrated this on my forums. On the user profile page, when I click on the user profile pic the link on the picture is /forums/member.php?striker_wow (invalid) which should be /forums/member.php?1-striker_wow. Any help will be appreciated.

Disasterpiece 07-20-2015 02:41 PM

Does it literally say (invalid) in the url?

Can you send me a Link to where I can see it?

striker_wow 08-06-2015 02:37 PM

Quote:

Originally Posted by Disasterpiece (Post 2550857)
Does it literally say (invalid) in the url?

Can you send me a Link to where I can see it?

This screenshot may clearly explain the issue, notice the above url (it contains userid: 2 in the url) but when I take the mouse over the picture the url doesn't contain the "2" which redirects to user not found page.

https://vborg.vbsupport.ru/external/2015/08/41.png

mikez006 08-11-2015 02:30 PM

Quote:

Originally Posted by Disasterpiece (Post 2547786)
Is it just the admincp or the regular user profile in member.php?

Just in the adminCP.

Also on another note, the Steam API is down currently and when some clicks the "Sign with Steam" button it hangs for about a minute then they get a time-out error on the website.

ukhostz 11-07-2015 07:01 PM

OK for anyone that is having issues with the steamgroup info returning an error with malformed XML there is a simple fix

So goto your includes folder and open functions_steamconnect.php and look for


Code:

$url = sprintf("http://steamcommunity.com/groups/%s/memberslistxml/?p=%d",
now update it with the line below and that's it fixed!

Code:

$url = sprintf("http://steamcommunity.com/groups/%s/memberslistxml/?xml=1",
I'm no way a coder but just wanted my steamgroup facility working so did a bit of digging on https://partner.steamgames.com/docum...community_data and yeah it worked!!!

Hope this help people out a little till a proper coder can pick up on the development of this great plugin!


All times are GMT. The time now is 02:38 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.01915 seconds
  • Memory Usage 1,856KB
  • 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
  • (5)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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