Steam Authentication & Integration

Steam Authentication & Integration 1.6.3

No permission to download
ErrorException: Undefined index: steamids - /home/bob/public_html/xenforo/js/steam/jsonproxy.php:72
Generated By: Unknown Account, Today at 12:11 AM
This is being generated quite frequently in the error logs.

Make sure you're using the latest files. Line 72 seems to be a reference to jsonproxy.php from 1.2.0, not 1.2.1
 
Thank you for the report Binari0. This API definitely seems to be screaming fast compared to the old method. Paired with cURL, stats update super quick.
 
First of all, thanks for the great bridge. But I have a little problem or rather suggestion.

There's no Login-Button at the "seperate login". (http://website.url/login/)

yHpK0NK.png


At the normal/fast login the button exists.

6L6k32j.png
 
First of all, thanks for the great bridge. But I have a little problem or rather suggestion.

There's no Login-Button at the "seperate login". (http://website.url/login/)

<snip>

At the normal/fast login the button exists.

<snip>

I don't believe this is possible without modifying the template or requiring the use of TMS. I'll check for the template hooks again, but I don't recall seeing one for the login page, only the drop down.
 
I don't believe this is possible without modifying the template or requiring the use of TMS. I'll check for the template hooks again, but I don't recall seeing one for the login page, only the drop down.

Well, TMS wont be a problem since I use it already. But I don't know how to implement it. :/
 
If you want to use cookies when using Steam authentication (so user is not signed out after few hours) edit /libary/Steam/ControllerPublic/Register.php add:

After XenForo_Visitor::setup($stAssoc['user_id']);
PHP:
$userModel->setUserRememberCookie($stAssoc['user_id']);

After XenForo_Model_Ip::log($user['user_id'], 'user', $user['user_id'], 'register');
PHP:
$userModel->setUserRememberCookie($user['user_id']);
 
I'm trying to do something really simple and award a trophy to a user when they register their Steam information, by using this condition:
C1jssKt.png

And it's not working, any idea why?
 
Weird, you're totally right. The forum has been live for 4 days though, I had to manually run the trophies cron to get it to show, even though it's set to run every 40 minutes automatically.

Thanks for the quick reply :)
 


Code:
Server Error
 
file_get_contents(http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=&steamids=76561197998960203) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized
 
XenForo_Application::handlePhpError() in Steam/ControllerPublic/Register.php at line 386
Steam_ControllerPublic_Register->actionSteamRegister() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /home/srf3rdd3/public_html/index.php at line 13

I'm getting this when I try linking my account with Steam.
 
Unless you edited out your SteamAPI key in that error report, it looks like it failed because you don't have a SteamAPI key entered into the options.
 
Even if its the most dirtiest thing, and should not have been spoken off, we have this proxy we run images trough if https is not support on its host. So all I really need is to find where you build the image links. I tried to find it, but alas, did not.
 
For the steam profile badge:
js / steam / ajax / steamprofile.js
Line 373

For the steam stats page avatars:
js / steam / ajax / steamprofilestats.js
Line 352

Links for the game images on the stats pages are built in when the game is updated by the cron:

library / Steam / Cron.php
library / Steam / Helper / Steam.php
Lines 175-176
 
Top Bottom