Resource icon

Steam Authentication & Integration 1.0.7

No permission to download
Going to investigate the issue with "XML declaration allowed only at the start of the document." Something in the game's XML data is causing some wonky stuff. Have to figure out why it's spitting out this error on occasion. It was working when I did cron testing, but now it's creeping up again.

As for setting up an alternative version that has just authentication, I can look into that. No guarantee though.

I'll keep you all updated on the XML issue. Hopefully I'll find a solution tomorrow evening when I get a chance to bug test again.
I managed to crack the auth only version. But it's not perfect. It uses the same PHP files and listeners but the addon XML removes all of the unnecessary templates. Think it might still create the database tables too.

I will send it as a PM to you. I wouldn't personally like to guarantee its bug free.
 
I think you may have some other issues outside of the plugin. It seems like your website is broken. The drop-down box doesn't even work. Is your style not up to par?

I just had somebody register on my website alright. Maybe try running the default style and try to disable other login addons you may have.

Alternatively, you can try re-installing the add-on.

EDIT:

Moulijin, for some reason your have some weird redirects going on with your URLs, so when Open ID returns, it's saying it's not matching.

It has something to do with your webserver setup. If you're hosted somewhere, you may need to open a support ticket about it.

I don't know what is wrong, my redirects are fine. Do you have any ideas?
 
Sorry for the lack of updates on Tuesday, I'm trying to run some tests to see what's causing the error. Plus finals were this week so that put me a bit behind.

EDIT:

I think I found a possible solution, I found a ? sneaking in before the XML declaration, going to try removing it on each query with some PHP voodoo.

Nope, that wasn't it. Have to figure out why it's making a new line.

For some reason it's saying "Unknown Steam Account", I'm using the latest version.

Which version, Morgan's or my unofficial one?

I don't know what is wrong, my redirects are fine. Do you have any ideas?

Well, here's what I mean

This is is what your registration link looks like:

Code:
https://steamcommunity.com/openid/login?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=checkid_setup&openid.return_to=http%3A%2F%2Fwww.clashofthezombies.com%2Fregister%2Fsteam%3Fredirect%3Dhttp%253A%252F%252Fwww.clashofthezombies.com%252F&openid.realm=https%3A%2F%2Fwww.clashofthezombies.com&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select

This is what happens when you get the error on logging in
Code:
openid.mode=error&openid.error=realm+and+return_to+do+not+match

It's saying your realm and return values do not match, so it's invalid. Because your openid.return_to value starts with http:// and the openid.realm value = https://

Some setting with your webserver is making openid think you have https.
 
Unofficial Version 1.0.7c-v2
NO LONGER SUPPORTED


An improved version is on the way soon!

Check this post for the details: http://xenforo.com/community/threads/steam-authentication-integration.27790/page-15#post-459555


-------------

This is a fix for the XML errors people have been getting. I've done cron testing with it, making sure my CDN is off. It's been making changes to the statistics now. Please report back if this fixes your problems.

This development fork is also available on GitHub (outdated currently).

If you'd like to see a working example of 1.0.7c-v2, please visit http://ragecagegaming.com/

How To Install:
  1. Install Prerequisites
    1. cURL and BCMath (php extension, usually installed already)
  2. Upload files in the upload directory to your forum
  3. Make the folder "js/steam/cache" world writable (chmod 777)
  4. Install using the provided "addon-Steam.xml"
  5. Change options for "Steam Integration" as necessary
Upgrade Steps From 1.0.7c to 1.0.7c-v2:
  1. Upload the upload directory to your forum (overwrite any files)
Upgrade Steps From 1.0.7b to 1.0.7c:
  1. Upload the upload directory to your forum (overwrite any files)
  2. Upgrade the addon to using the provided "addon-Steam.xml" file
Upgrade Steps From 1.0.x To 1.0.7c:
  1. Backup root/js/steam somewhere safe
  2. Delete root/js/steam directory
  3. Upload the upload directory to your forum (overwrite any files)
  4. chmod 777 root/js/steam/cache
  5. Upgrade the addon using the provided "addon-Steam.xml" file
Had this add-on previously, but uninstalled and are having a database error like this?
Code:
Mysqli prepare error: Unknown column 'game_hours_recent' in 'field list'
Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
Zend_Db_Adapter_Abstract->insert() in Steam/Cron.php at line 38
Steam_Cron::update() in Steam/Manufacture.php at line 95
Steam_Manufacture->_installVersion4() in Steam/Manufacture.php at line 59
Steam_Manufacture::build() in XenForo/Model/AddOn.php at line 214
XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 178
XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /home/pfps/public_html/comunidade/admin.php at line 13
Drop xf_steam_games and xf_user_steam_games tables from your database prior to the install.

Change log:

Version 1.0.7c-v2
  • Fixed XML parsing errors for Steam.php for good by running the xml through a buffer and trimming it.
Version 1.0.7c
  • Fixed XML parsing errors for Cron.php by adding a ?> at the end of the file
  • Disabled trimming of the XML games feed to help with parsing errors
  • Fixed a rare bug with steam profiles not always displaying on a page
Version 1.0.7b
  • Fixed "Unknown Steam Account" in the User CP
  • Fixed errors with Game Statistic updates
  • Added a PHP check to use cURL if CURLOPT_FOLLOWLOCATION can be used
    • If so, xml data is loaded via simplexml_load_string
    • If not, xml data is loaded via simplexml_load_file (less efficient, but it works)
  • Fixed an installation bug where database operations were being preformed before a necessarily column was created
  • Changed to a newer version of steamprofile
  • Steam profile CSS fix (thanks Binari0!)
Known Issue(s):
  • It is possible for Cron.php to time out if you have open_basedir set other than none or safe_mode on. This is because it has to load XML data as a file instead of a string.
  • Having open_basedir set other than none or safe_mode on can cause 302 errors on the Steam Profile badge. This has to do with the that project using CURLOPT_FOLLOWLOCATION.
    • The steam login integration still works fine, this only affects the steam badge on messages and the profile.
    • This issue is external to this particular project (not Morgan's code). I cannot find a work around as of right now. I'll see if I can notify the developer, but no promises of a fix for this as this is outside the scope of this add-on.
 
Error when i install the addon after follow the three first steps.

Server Error

Mysqli statement execute error : Duplicate column name 'game_hours_recent'
  1. Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
  2. Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
  3. Zend_Db_Adapter_Abstract->query() in Steam/Manufacture.php at line 102
  4. Steam_Manufacture->_installVersion8() in Steam/Manufacture.php at line 59
  5. Steam_Manufacture::build()
  6. call_user_func() in XenForo/Model/AddOn.php at line 214
  7. XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
  8. XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 178
  9. XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 310
  10. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  11. XenForo_FrontController->run() in /customers/d/e/9/slashcraft.dk/httpd.www/admin.php at line 13
 
Please read the post....

Code:
Had this add-on previously, but uninstalled and are having a database error like this?
Code:
Mysqli prepare error: Unknown column 'game_hours_recent' in 'field list'
Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
Zend_Db_Adapter_Abstract->insert() in Steam/Cron.php at line 38
Steam_Cron::update() in Steam/Manufacture.php at line 95
Steam_Manufacture->_installVersion4() in Steam/Manufacture.php at line 59
Steam_Manufacture::build() in XenForo/Model/AddOn.php at line 214
XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 178
XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 310
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
XenForo_FrontController->run() in /home/pfps/public_html/comunidade/admin.php at line 13
Drop xf_steam_games and xf_user_steam_games tables from your database prior to the install.
 
Okay, now i have done everything. But the design not look the same anymore... How do i fix this?

http://slashcraft.dk/index.php

Edit: I will try again

Edit: When i install the addon, its breaking the design. And when i'm trying connection my STeam Account to my XenForo account, and log in with Steam. it goes back yp Slashcraft with this error:

Server Error

file_get_contents(https://steamcommunity.com/openid/login): failed to open stream: Connection timed out
  1. XenForo_Application::handlePhpError()
  2. file_get_contents() in Steam/ControllerPublic/Register.php at line 315
  3. Steam_ControllerPublic_Register->_validate() in Steam/ControllerPublic/Register.php at line 40
  4. Steam_ControllerPublic_Register->actionSteam() in XenForo/FrontController.php at line 310
  5. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  6. XenForo_FrontController->run() in /customers/d/e/9/slashcraft.dk/httpd.www/index.php at line 13
 
I registered okay on your site. The error was caused because it timed out connecting to the steam community. As for your website acting all weird, I think it had to deal with your style, maybe conflicting javascripts. Does it do it on the default style as well?

Other websites are working fine (like mine and Binari0 and Cats777)
 
Known Issue(s):

  • It is possible for Cron.php to time out if you have open_basedir set other than none or safe_mode on. This is because it has to load XML data as a file instead of a string.
  • Having open_basedir set other than none or safe_mode on can cause 302 errors on the Steam Profile badge. This has to do with the that project using CURLOPT_FOLLOWLOCATION.
    • The steam login integration still works fine, this only affects the steam badge on messages and the profile.
    • This issue is external to this particular project (not Morgan's code). I cannot find a work around as of right now. I'll see if I can notify the developer, but no promises of a fix for this as this is outside the scope of this add-on.


Check phpinfo();

It's possible one of those settings are set differently.
 
Is there anyway I can pull the Steam ID's listed for each user similar to this:
20120512073908414.jpeg


I was originally using Dark's Steam Identity service and a simple custom user field conditional within XF's templates:

<input type="hidden" name="item_name" value="{xen:phrase account_upgrade}: {$upgrade.title} ({$visitor.username} / {$visitor.customFields.Steam})" />

This would then include their Steam ID in the payment information in Paypal, which is very important for my records:
20120512074157591.jpeg


I'd like to do the same once I move over to this addon, however I'm not sure if it's currently possible or what the included code would be. Morgan mentioned this earlier in the thread:
{$visitor.steam_auth_id}


However that will spit out the other format of the ID (75561197921521609), not the regular Steam_0:0 format. I suppose I could start to ID them by that format instead... at any rate it would be nice to know if the other way were even possible.

Can anyone help me out? Any assistance would be greatly appreciated. Thanks.
 
Getting error while running Steam cron job.
Using: 1.0.7c-v2 (updated from official 1.0.7)

With "?>" in Cron.php:
PHP:
ErrorException: simplexml_load_string(): Entity: line 15: parser error : Opening and ending tag mismatch: br line 12 and div - library/Steam/Helper/Steam.php:79
#0 [internal function]: XenForo_Application::handlePhpError(2, 'simplexml_load_...', '/var/some.foru...', 79, Array)
#1 /var/some.forum.org/forumindex/library/Steam/Helper/Steam.php(79): simplexml_load_string('<?xml version="...')
#2 /var/some.forum.org/forumindex/library/Steam/Cron.php(29): Steam_Helper_Steam->getUserGames(76561198037500446)
#3 [internal function]: Steam_Cron::update(Array)
#4 /var/some.forum.org/forumindex/library/XenForo/Model/Cron.php(356): call_user_func(Array, Array)
#5 /var/some.forum.org/forumindex/library/XenForo/ControllerAdmin/Cron.php(204): XenForo_Model_Cron->runEntry(Array)
#6 /var/some.forum.org/forumindex/library/XenForo/FrontController.php(310): XenForo_ControllerAdmin_Cron->actionRun()
#7 /var/some.forum.org/forumindex/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /var/some.forum.org/forumindex/admin.php(13): XenForo_FrontController->run()
#9 {main}

Without "?>" in Cron.php:
Successfull cron job processing.

____________________________________________

Are the most of /lib/ php files really intended to be in public /js/ folder?
Maybe it's would be nice to hide them at least with some .htaccess "deny from all"? :)

____________________________________________

Any plans about integrating Owned Games list into public User Information?
 
Back
Top Bottom