SMF Support > SMF 2.0.x Support

PM and email?

(1/3) > >>

ApplianceJunk:
If I uncheck:

"Contact members using the personal messaging system"

in Administration Center » Permissions » General Permissions

for the "Regular" member group it seems our "Technician" group can still send PM's to "Regular" members.
Why is the "Technician" group even able to see the PM icon for regular members when I have PM's turned off for them?

Also what do I need to change so members can't email other members.

Thanks,

Arantor:
Sure, you've turned off the ability of Regular Members to send PMs, not for the Technician group... in order for the Technician group not to see it, you'd have to turn it off for them as well.

As for email, there should be a permission for sending email to other users...

ApplianceJunk:
I turned of the ability for Regular Members to send and receive PM's, so why would another group be able to send "Regular Members" PM's when they (Regular Members) have no option to receive them?

When searching for a answer to my email question the only thing I have been able to find is to remove the code for the check box on the registration page. The check box for "Allow users to email me".
http://www.simplemachines.org/community/index.php?topic=471741.0


I would like to remove the ability for all current and future members to email each other.

Thanks,

Arantor:
Because the permissions are totally independent. Technicians have the power to send, that's all they need, no check is done on whether the receiving user can *read* it. To do so would be a lot slower than not doing it, and for the vast majority of cases it's absolutely fine... so just disable that permission and it'll stop being a problem.

As far as users emailing each other, that's a code edit.

First to Sources/SendTopic.php

--- Code: (find) ---// Allow a user to send an email.
function CustomEmail()
{
--- End code ---


--- Code: (replace) ---// Allow a user to send an email.
function CustomEmail()
{
fatal_lang_error('no_access', false);
--- End code ---

That takes care of actually sending emails. Now we need to remove it from the display template too - your theme's Display.template.php:

--- Code: --- // 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>';

--- End code ---

You should also remove the Send topics to friends permissions too, by the way, to remove the Send This Topic button which can do something similar.

ApplianceJunk:
Do I need to do a code edit to remove "Send topics to friends permissions"?

Thanks,

Navigation

[0] Message Index

[#] Next page

Go to full version