News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

email icon under avatar

Started by DarkAngel612, April 23, 2014, 06:09:14 AM

Previous topic - Next topic

DarkAngel612

When we gaze at the posters avatar there is an email icon. the board is set to not show members email addresses so many go ahead and use pms instead.

Now I was wondering if there is any way to disallow using this envelope for everyone cause it truly confused a couple of members that got an email from another one....it did not use the members nick in the senders area but used their email address...they thought they got spammed and our asylum was invaded with hackers LOL


Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

margarett

That is actually a setting under Profile --> Account Settings
"Allow users to email me".
(in this forum you have it set, I don't)

AFAIK there is no way to set it global, although you can do it via MySQL query (this doesn't disallow users to reactivate it)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Illori

cant you just remove // Don't show the email address if they want it hidden.
if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';

from display.template.php and personalmessage.template.php [and similar code in profile.template.php to display the email_sm.gif there as well]

DarkAngel612

Thank you Margarett I looked everywhere cause I did see it but  got crossed eyed trying to locate the monster again...LOL

Illori, you have a good question and hopefully someone that knows code better than me can answer if it will be alright to do so.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Sir Osis of Liver

Quote from: margarett on April 23, 2014, 06:37:27 AM
That is actually a setting under Profile --> Account Settings
"Allow users to email me".
(in this forum you have it set, I don't)

AFAIK there is no way to set it global, although you can do it via MySQL query (this doesn't disallow users to reactivate it)

You can easily remove the option from Profile, then run the query, so no one will be able to change it.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

DarkAngel612

Quote from: Krash. on April 23, 2014, 08:23:32 PM
Quote from: margarett on April 23, 2014, 06:37:27 AM
That is actually a setting under Profile --> Account Settings
"Allow users to email me".
(in this forum you have it set, I don't)

AFAIK there is no way to set it global, although you can do it via MySQL query (this doesn't disallow users to reactivate it)

You can easily remove the option from Profile, then run the query, so no one will be able to change it.


query??? pray tell what is this so I can doos it...LOL
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Sir Osis of Liver

Ok, pay attention.

To disable forum email:

In /Sources/Profile-Modify.php comment this out -



// 'hide_email' => array(
// 'type' => 'check',
// 'value' => empty($cur_profile['hide_email']) ? true : false,
// 'label' => $txt['allow_user_email'],
// 'permission' => 'profile_identity',
// 'input_validate' => create_function('&$value', '
// $value = $value == 0 ? 1 : 0;
//
// return true;
// '),
// ),


That will eliminate the profile option to allow email.

In phpmyadmin, run this query (SQL) -



UPDATE `smf_members` SET hide_email = '1'



That will set all members to disallow email, and they won't be able to change it.

Backup the file and your database before you try this.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

DarkAngel612

You are a gem, I did it, went without a hitch and told the admins at one of the sites----guinea pigs since they have hardly any members....relatively new forum

I also reminded them that it is basically for the average user cause admins see everything...they sometimes tend to forget that and scare me when they say the stuff didn't work...LOL
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Illori

but this does not stop users when they register to check the box "Allow users to email me:" and once that box is checked the admin has no way to make the email icon not show up without running that query again.

Sir Osis of Liver

Forgot about that. :P

Register.template.php -



<!--dt><strong><label for="allow_email">', $txt['allow_user_email'], ':</label></strong></dt>
<dd>
<input type="checkbox" name="allow_email" id="allow_email" tabindex="', $context['tabindex']++, '" class="input_check" />
</dd-->



Removes option from registration form, 2.0.7 defaults to hide email.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

DarkAngel612

ok, removed this from mentioned file. thanks
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.0+ with various mods and TinyPortal

Advertisement: