Drupal 6 如何在Drupal6中向一个简单页面显示配置文件字段值?

Drupal 6 如何在Drupal6中向一个简单页面显示配置文件字段值?,drupal-6,user-profile,Drupal 6,User Profile,我想获得我在用户配置文件部分创建的自定义配置文件字段 我想得到那个值,并在一个简单的页面上显示我已经尝试过这个 <?php print $profile['Personal Information']['profile_fname']['#value']; ?> 但它不起作用 我想显示该页上的所有字段 提前感谢,, 尼茨 更新: 我得到了答案……//加载配置文件字段 // load profile fields profile_load_profile($account);

我想获得我在用户配置文件部分创建的自定义配置文件字段

我想得到那个值,并在一个简单的页面上显示我已经尝试过这个

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

但它不起作用

我想显示该页上的所有字段

提前感谢,,
尼茨

更新:

我得到了答案……

//加载配置文件字段
// 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;?>
配置文件\加载\配置文件($account); //打印值- //注意,$account->后面的变量名是为用户配置文件创建自定义字段时给出的名称
如果你“得到了答案”,你应该把它作为你自己问题的答案贴在这里——这样其他人也可能“得到了答案”。)