Displaying Custom Profile Fields
mherchel - June 5, 2008 - 20:33
Hi,
I have a couple custom profile fields defined (location, etc), and I can't find a way to display them. Specifically, I'm trying to display them in the forum node (and comments) for each user. So, when a user posts something, it will show his Custom Profile Field value in addition to his avatar, etc.
I'm using Drupal 5.7 with Advanced Forums. The site is located at www.gatortailgating.com
Any help would be greatly appreciated!
Thanks!

bump
bump
Administrator-> User
Administrator-> User Management -> Profile
Edit The field which you ant to display-> Visibility-> check box "Public field, content shown on profile page but not used on member list pages" -> save.
-------------------
Free Drupal Themes || Free Wallpapers
Same Problem
I think I have the same problem. Specifically, I have a custom profile field for nicknames, which I want displayed rather than the username for when people post comments or content. I figured it would be best to hack the node/node.module page and replace the username with the nickname, however, I'm very new to drupal and not sure how exactly this function works:
function theme_node_submitted($node) {return t('Submitted by !username on @datetime',
array(
'!username' => theme('username', $node),
'@datetime' => format_date($node->created),
));
}
My first thought was using the username, get the uid and write a query that goes to the profile_values table and gets the value of the custom profile field. However, I'm unaware of what !username represents.
bump
bumping