rendered paste body$blocklist = array_merge($blocklist, array(
'custom' => array(
'class' => 'Gamercard',
'title' => 'Gamercard',
'hook_location' => 'profile_left_last'
)
));
class vB_ProfileBlock_custom extends vB_ProfileBlock
{
var $template_name = 'memberinfo_block_gamercard';
function confirm_empty_wrap()
{
return false;
}
function confirm_display()
{
return ($this->block_data['gamercard'] != '');
}
function prepare_output($id = '', $options = array())
{
$this->block_data['gamercard'] = $this->profile->userinfo['field5'] : "<iframe src=\"http://halogrid.com/gamercard/gamercard.php?xbltag=$this->profile->userinfo['field5']\" scrolling=\"no\" frameBorder=\"0\" height=\"120\" width=\"175\"><//iframe>" ? "$vbulletin->userinfo['username'] has not added a gamertag to his//her profile. ";
}
}