I made a plugin to add a new tab to a users profile, how would i make the data thats shown in the tab be from an executed MySQL Query?
PHP Code:
class vB_ProfileBlock_MyModification extends vB_ProfileBlock
{
var $template_name = 'memberinfo_block_mymodification';
function confirm_empty_wrap()
{
return false;
}
function confirm_display()
{
return ($this->block_data['mymodification'] != '');
}
function prepare_output($id = '', $options = array())
{
$this->block_data['mymodification'] = 'QUERY HERE'; // what would i do here
}
}