Why am I not able to get the profile username?

10 years 5 months ago - 10 years 5 months ago #237783 by nonlinearmind
Why am I not able to get the profile username? was created by nonlinearmind
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!?
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;

Please Log in to join the conversation.

10 years 5 months ago #237939 by danbo1972
Replied by danbo1972 on topic Why am I not able to get the profile username?
$CB_USERNAME

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.155 seconds

Facebook Twitter LinkedIn