Support Forum

I want all members to be able to pm groups

DE Dre Erwin
Dre Erwin
Member

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

18 Answers

New Answer

MP Mr Papa
Mr Papa
Member

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…

MP Mr Papa
Mr Papa
Member

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…

MP Mr Papa
Mr Papa
Member

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

DE Dre Erwin
Dre Erwin
Member

that just messed up the entire site nope didnt work lol

MP Mr Papa
Mr Papa
Member

Explain what that means please…

And repost your code you used…

DE Dre Erwin
Dre Erwin
Member

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

YS Yellow Swordfish
Yellow Swordfish
Member

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.

DE Dre Erwin
Dre Erwin
Member

I added it inside and the members say thay cant pm other or even see them

YS Yellow Swordfish
Yellow Swordfish
Member

I will ask Steve to take a look at that…

MP Mr Papa
Mr Papa
Member

looks like a slight typo in the function name (doesnt quite agree with the hook argument)… try this, works for me:

add_filter('sph_pm_email_special', 'my_allow_usergroups');
function my_allow_usergroups($flag) {
    return true;
}
DE Dre Erwin
Dre Erwin
Member

members still cant see whos in the usergroups so they can pm them….hmm

MP Mr Papa
Mr Papa
Member

it wont show you the members… just the usergroups list…  select a usergroup…  if you want to see who is in what usergroup, you have to look at the members list page…