I'm trying to query the username of the currently displayed profile. I'm using the following and have been successful with it on another site, but for some reason, it's not returning anything. I've run the tools on the user databases in the tools menu. Why is this not working!?
Code:
function getField( $fieldName , $defaultValue = null, $output = 'string', $formatting = 'none', $reason = 'profile', $list_compare_types = 0 ) {}
$CBusername = $cbUser->getField( 'username', null, 'string', 'none', 'list' ); //Get CB username
echo $CBusername;