开发者

How to show profile field Values to one simple page in drupal 6?

i want to get the custom profile fields which i have made in user profile part,

i want to get that values and show on one simple page i have tried this one....

<?php print $profile['Personal Information']['profile_fname']['#value']; ?>

but its not working....

i w开发者_JAVA技巧ant to show all the fields on that page....

thanks in advance,

Nitz

UPDATE:

i got the answer....


// load profile fields
profile_load_profile($account); 

//print values - 
//note the variable names after $account-> are the names given when you created the custom fields for the user profiles
<?php echo $account->profile_first_name;?> 
<?php echo $account->profile_last_name;?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜