Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 221609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:02:58+00:00 2026-05-11T19:02:58+00:00

The email field in user profiles in Drupal is as far as i understand

  • 0

The email field in user profiles in Drupal is as far as i understand not ment to be shown (for good and obvoius reasons).

But I still need to know how to show user e-mail in Drupal 5.x profile (nodeprofile)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:02:58+00:00Added an answer on May 11, 2026 at 7:02 pm

    Change the theme_user_profile hook (add the function to your template.php located at your current theme folder), like this:

    function <your_theme_name>_user_profile($account, $fields) {
      // adding the email field to profile
      $email = array();
      $email["value"] =  check_plain($account->mail);
      $fields["email"][0] = $email;
      // end of adding the email field
    
      // the rest of the default profile hook taken from http://api.drupal.org/api/function/theme_user_profile/5
      $output = '<div class="profile">';
      $output .= theme('user_picture', $account);
      foreach ($fields as $category => $items) {
        if (strlen($category) > 0) {
          $output .= '<h2 class="title">'. check_plain($category) .'</h2>';
        }
        $output .= '<dl>';
        foreach ($items as $item) {
          if (isset($item['title'])) {
            $output .= '<dt class="'. $item['class'] .'">'. $item['title'] .'</dt>';
          }
          $output .= '<dd class="'. $item['class'] .'">'. $item['value'] .'</dd>';
        }
        $output .= '</dl>';
      }
      $output .= '</div>';
    
      return $output;
    }
    

    Update. Sorry, didn’t notice that you’re using nodeprofile module. I’ve never used it, but am pretty sure the email can be shown the similar way

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to use a text field to search for a user email
In my user's data edit form I have a boolean field, for adding/removing email
I have added a custom field to user profiles in bbPress however I am
i have a User class with a field for the e-mail-address and a password.
I have an EditText for an email field. My mobile screen is really small
I have a database with an email field, and it cycles through the database
I am creating a JSF form where I have an email field. I need
How do i override/set authlogic to use the email field instead of the username
In the page I'm developing I have a Email field and ConfirmEmail field. And
Is this code possible? switch (rule) { case 'email' || 'valid_email': valid = this.validate_email(field);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.