For the contents of the tab how can I pull a custom profile field?
Code:
$blocklist = array_merge($blocklist, array(
'custom' => array(
'class' => 'custom',
'title' => 'Custom Tab (Work in Progress)',
'hook_location' => 'profile_left_last'
)
));
class vB_ProfileBlock_custom extends vB_ProfileBlock
{
var $template_name = 'memberinfo_block_custom';
function confirm_empty_wrap()
{
return false;
}
function confirm_display()
{
return ($this->block_data['custom'] != '');
}
function prepare_output($id = '', $options = array())
{
$this->block_data['custom'] = '<if condition="$userinfo[field8]"><strong>Stuff:</strong> $userinfo[field8]<br /></if> ';
}
}
It just outputs as "$userinfo[field8]" instead of what was typed in via User CP.