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
I want all members to be able to pm groups
Avatar
Dre Erwin
Member
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2014 - 7:26 am

how is this possible...seems like the admin (myself) is the onyl one who can pm groups from a list....even the other mods cant see or use the list off the members list to pm groups

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2014 - 1:10 pm

by default, only admins can pm to specific usergroups because of spam concerns (has been abused in the past)...

however, we do give you a hook to override that if you like...  use the 'sph_pm_email_special' hook and return a true to allow any user to send to usergropus...  or calculate the value yourself if you want to control the ability separately...

Avatar
Dre Erwin
Member
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2014 - 9:27 pm

im sorry where do i put that exactly?  thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2014 - 9:49 pm

put what?  the hook?  if so, something like:

add_filter('sph_pm_email_special', 'my_allow_usergroups');
function my_allow_usergrouops($flag) {
return true;
}

should do it...

Avatar
Dre Erwin
Member
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2014 - 10:38 pm

where....in a template or file?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2014 - 11:37 pm

Ah, sorry... In the spFunctions.php file of your sp theme...

Avatar
Dre Erwin
Member
Free Members
sp_UserOfflineSmall Offline
Apr 29, 2014 - 10:30 pm

that just messed up the entire site nope didnt work lol

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 29, 2014 - 11:17 pm

Explain what that means please...

And repost your code you used...

Avatar
Dre Erwin
Member
Free Members
sp_UserOfflineSmall Offline
Apr 30, 2014 - 11:59 am

Mr Papa said
Explain what that means please...

And repost your code you used...

i copied and pasted the code u gave me at the bottom of the spFunctions.php file

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 30, 2014 - 1:16 pm

There is nothing wrong with the code so it must have been the way you added it or where you added it. Did you add it outside of the closing php tag at the bottom of the page. If so it needs to be before that closing tag and there must be NO white space - or new, empty lines after that closing tag.

If that is not it then please do repost the code from the actual file.

andy-signature.png
YELLOW
SWORDFISH
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: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625