By arindamghatak794 on
Hello everyone!
I was wondering if its possible to have a user profile page wherein the contacts of the user is listed not as their usernames but as their names (and other profile fields). Something like:
Instead of:
Contact List
*username1
*username2
*username3
Do this:
Contact List
*Profile_Field1 of first contact, profile_Field2 of first user, profile_Field3 of first contact
*Profile_Field1 of second contact, profile_Field2 of second user, profile_Field3 of second contact
*Profile_Field1 of third contact, profile_Field2 of third user, profile_Field3 of third contact
For example:
Instead of:
Contact List
*arindam1
*rbdupaix
*houston_guy
Do this:
Contact List
*Arindam Ghatak (Student, OSU, Mechanical Engineering)
*Rebecca Dupaix (Professor, OSU, Material Science)
*Benny George (Student, UTA, Computer Science)
Comments
Use profile_load
profile_load_profile
To load these custom profile fields to the user object and use the field names to display them.
Can you elaborate
Can you elaborate what exactly is to be done. I am not really much of a PHP programmer yet, so I didn't really understand how to go about it. My profile fields are: profile_name, profile_research_lab, profile_organization. So, is it possible to print these profiles along with the usernames in the contact list (or even without the usernames).