In page.tpl.php derive a field value from Profile
Prompt as in page.tpl.ph开发者_StackOverflowp derive a field value from the current user profile module. Field is called profile_first_name
If you want to access profile field values from page.tpl.php
you could use profile_load_profile().
For example in your page.tpl.php
add the following:
GLOBAL $user;
profile_load_profile($user);
Then to access the field you want (profile_first_name) you would use $user->profile_first_name
精彩评论