The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template variable refusing to work
Oke, so.. I am using the steam plugin, with the following targeting postbit_display_start:
Code:
global $vbulletin; include_once(DIR . '/includes/functions_steamconnect.php'); if (THIS_SCRIPT == 'private') { global $pm; $stc_user_info = fetch_userinfo($pm['fromuserid']); $steam_info = fetch_steam_info(get_user_steamid($stc_user_info), $vbulletin->options['stc_apikey']); if (!empty($steam_info)) { $this->post['steamavatarfull'] = $steam_info['avatarfull']; $this->post['steamavatar'] = $steam_info['avatar']; $this->post['steamavatarmedium'] = $steam_info['avatarmedium']; } } else { $stc_user_info = fetch_userinfo($post['userid']); $steam_info = fetch_steam_info(get_user_steamid($stc_user_info), $vbulletin->options['stc_apikey']); if (!empty($steam_info)) { $this->post['steamavatarfull'] = $steam_info['avatarfull']; $this->post['steamavatar'] = $steam_info['avatar']; $this->post['steamavatarmedium'] = $steam_info['avatarmedium']; } } Code:
var_dump($steam_info['avatarfull']); Quote:
Code:
<vb:if condition="$show['avatar']"> <a class="postuseravatar" href="{vb:link member, {vb:raw post}}"> <vb:if condition="$post.avatarurl"> <img src="/{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /> </vb:if> </a> <vb:elseif condition="is_member_of($bbuserinfo, 13)" /> <img class="postuseravatar" src="{vb:raw steam_info.avatarfull}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /> <vb:else /> <img class="postuseravatar" src="/{vb:stylevar imgdir_misc}/avatar.png" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" /> </vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|