Add user email and username under the "View" tab at /user/% Using Drupal 7 and I would like to display the username and email under the view tab of the /user page.

Out of the box it only shows the user History, which I find a bit meaningles. I think that a user should see all his info under the view tab (including username and email) and then when he wants to edit it he can click on the edit tab.

Would be nice if this could be done with a block or similar so that this does not apply to the admin user.

Thanks!
You can always create a block through Views and display this information. Here's how to do that:


Create a new view, choose to show "Users" and create only a block.
Add "E-mail" field.
Add "Contextual filter" for the "User: Uid" field.
For filter configuration choose "Provide default value" and then "User ID from URL".
Show the block in content area, and configure it so it's displayed only on specific pages. Enter the aliased path you use for user profiles. For example: profile/*. This is necessary because the system URL for user profile pages is user/[uid], which you cannot distinguish from user/login, user/register and so on.


Do note that this will make the username/email available to everyone who has the permission to view user profiles.

Hope this helps.