Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Ability to Enable / Restrict Ability to PM Usergroups
Avatar
Matt Vitelli_1
Rookie
sp_UserOfflineSmall Offline
Dec 3, 2016 - 3:47 pm

Hi Guys,

Wanted to see if i was missing this or not.  I dont want my standard users to have the ability to PM the entire user group that they are in.  Admins/ Moderators should be able to send theses types of messages.  Let me know if this is possible or not and if so how to do it.

Thanks,

MattV.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 3, 2016 - 3:56 pm

that ability is limited to admins...  if you wanted to allow for moderators, you would need to use the filter 'sph_pm_email_special' and return true for admins and mods...  something like:

add_filter('sph_pm_email_special', 'my_special_pm_permission');
function my_special_pm_permission($perm) {
    global $spThisUser;
    return ($spThisUser->admin || $spThisUser->moderator); 
}
Avatar
Matt Vitelli_1
Rookie
sp_UserOfflineSmall Offline
Dec 3, 2016 - 9:44 pm

Thanks Papa! 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2016 - 4:39 pm

np. glad to help!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625