The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Unable to calculate $steam_id ($steam_info) sooner for use in PHP plugins (final req)
It's the final thing I really need help on, as I can't figure this out on my own (after really days of playing around with the code). I'll make it as simple as possible.
Oke, here we go. This, is login2.php from the steam plugin made by Disasterpiece Code:
http://pastebin.com/nrn1ZxKz Now, see line 197, you'll see the following hook: Code:
($hook = vBulletinHook::fetch_hook('stc_linkuser_complete')) ? eval($hook) : false; Code:
// One time check for Steam-linked Validation Users // // vBulletin Group Movement API $dataman =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD); $dataman->set_existing($vbulletin->userinfo); // Steam Level Information API $steam_id = get_user_steamid($stc_userinfo); $steam_info = fetch_steam_info($steam_id, $vbulletin->options['stc_apikey']); if (!empty($vbulletin->userinfo['steam_link']) AND (!empty($steam_info['EconomyBan']) AND $steam_info['EconomyBan'] == banned AND $vbulletin->userinfo['usergroupid'] == 49)) { $dataman->set('usergroupid', 40); $dataman->save(); } Code:
$vbulletin->db->escape_string($steam_id).'|0|0' calc_steam_code($steam_id) Now, on line 183 and 184, the steam_id is being calculated and after the complete hook saved. So I thought, lets save it sooner by adding: Code:
$userdata_rank->save(); So, I was wondering if someone could help me out with this final thing. I've included as much information as I could. It is possible that the steam_info is being filled after handle user authenticated (line 220), but I'm unsure. Especially because on line 279 it says to be excluded on user linking. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|