I trying to import some data from the database to include on memberinfo, but i dont get
$this->profile->userinfo['userid'] to work.
Any file i need to include?
I have created a plugin with hook member_build_blocks_start with the code:
PHP Code:
$pfr_res = $db->query_first("SELECT `field6` FROM `" . TABLE_PREFIX . "userfield` WHERE `userid` = ' . $this->profile->userinfo['userid'] . ' LIMIT 1");
$pfr_profile = $pfr_res['field6'];
vB_Template::preRegister('MEMBERINFO',array('prf_profile' => $prf_profile));
But only get blank screen. What to do?