Remove email Icon?

Started by nickmarch, August 03, 2006, 11:38:00 PM

Previous topic - Next topic

nickmarch

Can anyone tell me how to remove the email icon from posted messages?  I think most would not want their email available to others or subject to being collected by email extractors.  I just did a brief scan and got over 260 email addresses! 

I know I do not want spammers getting my address and think most others would feel the same. 

Thanks!

B Patterson

#1
Well, during sign-up the user has the option to either show or hide their email address.  That's defense line 1.

In the forum administration, youas an admin can restrict access to the "members" list unless they're a member, defense line 2.

Otherwise, in Display.template.php (for all themes you support) just comment out the following:
// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';


Although you bring up a good bug... the hiding of the email doesn't work in 1.1RC2... even though in the DB it changes from 1 (hiding) to 0 (showing) on the page, it doesn't change..... Devs?  Care to comment?

starrbuck

Remember, you, as an administrator, see everyone's email.  Regular users will not see the emails of other users who have their hide email selected.

nickmarch

Thanks everyone!  I was logged in as admin.  That is why I was seeing the email addresses.  After I created a regular user account the emails were no longer visible. 

Thanks Again!
Nick

Advertisement: