I'm pretty sure these lines don't need to be above the class vB_Profile.... line or else they don't need to be inside the class (global shouldn't be needed in either place):
PHP Code:
require_once('./global.php');
global $vbulletin;
require_once(DIR . '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
Then change:
PHP Code:
$num = $this->block_data['num'] = $this->registry->db->num_rows($result);
To:
PHP Code:
$num = $this->registry->db->num_rows($result);
(Although you have $vbulletin as global, so you could just use $vbulletin->db->num_rows)
And I might change this:
PHP Code:
eval('$this->block_data[\'myawards\'] .= "' . fetch_template('awards_userawards_bit') . '";');
To this:
PHP Code:
eval('$awards .= "' . fetch_template('awards_userawards_bit') . '";');
$this->block_data['myawards'] = $awards;