Drupal/ display e-mail users profiles

asked May 2, 2013 in Website Builder by DruNew (1,930 points)
I want to show my users e-mail addresses in their profile? I am using Drupal 7 and I am trying to customize some user fields for profile purposes. Can anyone tell me how to do this?.

2 Answers

0 like 0 dislike
answered May 2, 2013 by randy999 (4,520 points)
Try using a module like views and usernode to display the emailt on the profile or you can use the module . bio and then  views to display the info you want.
0 like 0 dislike
answered May 2, 2013 by RalphK (5,800 points)
1. copy your default profile template to your theme
2. after the first <div class="profile"> add the bellow code:
$profile_user = user_load(array('uid' => arg(1)));
if($profile_user) {
   print 'Contact Information';
   print '<dl><class="profile-profile_email">Email';
   print '<class="profile-profile_email"><a href="mailto:' . $profile_user->mail. '">'.$profile_user->mail. '</a></dl>';