The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Here's the entire PHP file just for the sake of it:
Quote:
I've created a PHP code specially designed to check 2 variables: Code:
require_once(DIR . '/includes/functions_steamconnect.php'); // Steam Level Information API $steam_id = get_user_steamid($stc_userinfo); $steam_info = fetch_steam_info($steam_id, $vbulletin->options['stc_apikey']); var_dump($steam_info['player_level']); var_dump($steam_info['tradeban']); Quote:
Using: Code:
var_dump($steam_info['EconomyBan']) [s]It 'might' be possible its giving NULL results as the results are being cached within files (for each user) that is defined in another PHP file: Quote:
^- Striped above, I've edited this post as I've posted the var_dump results on a separated plugin calling the right information. Left the edit intact, just in case. ---EDIT: Does this have something to do with it? Seeing -1 is mentioned here, as a matching value. line 184 to 200 (first pastebin) Code:
$values = $match[1]; foreach ($values AS $val) { $match = array(); preg_match("/\"(.+)\": ([^,]*),?/", $val, $match); if (is_array($match) && count($match) == 3) { $name = $match[1]; $value = trim($match[2]); if (!in_array($name, $whitelist)) continue; // Not a setting we're looking for. skip.. // Strip quotes and slashes if ($value{0} == '"' && $value{strlen($value)-1} == '"') $value = stripslashes(substr($value, 1, -1)); $steam_info[$name] = $value; } } Really would like to know why. ----SOLVED IT----- Wanted to share, got it to work with some help. First, URL near the end had to be "steamids" rather than "steamid" Second: Code:
$steam_info['EconomyBan'] = is_array($tradeban) && isset($tradeban['players'], $tradeban['players']['EconomyBan']) ? $tradeban['players']['EconomyBan'] : -1; Code:
$steam_info['EconomyBan'] = is_array($tradeban) && isset($tradeban['players'], $tradeban['players'][0]['EconomyBan']) ? $tradeban['players'][0]['EconomyBan'] : -1; ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|