Include email addresses in "My Account"
Teasel - June 27, 2009 - 00:19
I guess this is the opposite of what most sites want, but I'm trying to include users' email addresses into their "My account" page. Is this an easy thing to do? (If I'm really lucky, there's a tickbox somewhere I've not spotted, or maybe a module someone's already written?) Or should I start reading up on how to extend the core functionality?
Thanks in advance!
Ian

=-=
email harvesters will have a field day with this implementation.
As far as I know there is no way to show the email address used in during registration.
What you can do:
add a field to the profile giving users the "OPTION" of exposing their email address, they either fill it in or they don't based on whether they want their email made public or not. You'll likely find, most won't.
Wow, thanks for getting back
Wow, thanks for getting back so quickly!
I'm hoping that I'm reasonably safe from harvesters, as my Anonymous account has no permissions other than "access frontpage", and "access site-wide contact form". Certainly it doesn't have anything like "access content" or anything like that. New users need administrator approval.
I'm rather new to Drupal... does it have a history of security holes which expose content to unauthorised roles? I've already given Registered Users a view which lists all users with their email addresses and photos; and I expect our membership secretary to be attaching spreadsheets containing names, addresses, phone numbers, dates of birth, next-of-kin details etc of all users, so exposed email addresses are the least of our worries, and we need to have confidence in the basic security.
So, anyway, if I understand you, I can't display the core email field, but I can create a custom field and display that. How would I synchronise the two? (without relying on users filling it in). Is there some sort of hook which gets called whenever someone updates their email address? (Thinking about it, there must be, as the "Mailing Lists" module handles this). I guess it's time to roll my sleeves up and read up on Drupal development?
=-=
Humans harvest too. its not diffucult to register for a site as a human pull up a page listing email adresss copy and paste them. If you are a closed community, or this is for an elevated role you should be fine.
My idea won't work if you want to sync them, I suppose you could write a query and pull out email addresses if needed. I've never tried with views but if the email address is available somewhere views should be able to pull it.