Skip to Content Skip to Menu

API call to get user profile fields

  • dcas
  • dcas
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
9 years 7 months ago #260375 by dcas
Hi,

I've successfully used the
Code:
CBuser::getInstance( $id );
call to get user data itself.

What I need to get now is a list of all fields which are editable by the user in their profile. I'd like to get the field names (as they are displayed to the user) and get the associated values from the user object (shown above).

Any help would be greatfully appreciated.

Thanks

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

  • dcas
  • dcas
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
9 years 6 months ago #261319 by dcas
Replied by dcas on topic API call to get user profile fields
Is there anyone who can help me with this? I thought Joomlapolis was supposed to have a good API to get this type of information, maybe not.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
  • dcas
  • dcas
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
9 years 6 months ago #261335 by dcas
Replied by dcas on topic API call to get user profile fields
Hi, thanks for comming back to me, but that tutorial doesn't answer my question. The getField method requires you to already know the name of the field you want. Before I can use that method, I need to know which fields are available in the users profile, but I can't see any way of getting that information from the API.

Thanks

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

Moderators: beatnantkrileon
Powered by Kunena Forum