Skip to Content Skip to Menu

Why am I not able to get the profile username?

10 years 10 months ago - 10 years 10 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!?
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;
Last edit: 10 years 10 months ago by nonlinearmind.

Please Log in or Create an account to join the conversation.

  • danbo1972
  • danbo1972
  • OFFLINE
  • Posts: 88
  • Thanks: 22
  • Karma: 4
10 years 10 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum