Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14625 reviews 1734 hosting providers

Questions & Answers

Drupal/ display e-mail users profiles

May 2, 2013 by DruNew
Hi
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?.
regards

2 Answers

0 votes
May 2, 2013 by randy999
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 votes
May 2, 2013 by RalphK
1. copy your default profile template to your theme
2. after the first <div class="profile"> add the bellow code:
<?php
$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>';
}
?>