Version: 1.1, by vBNinja
Developer Last Online: Nov 2023
Category: Private Messages Enhancements -
Version: 4.2.x
Rating:
Released: 05-09-2014
Last Update: 05-10-2014
Installs: 38
Uses Plugins Auto-Templates
No support by the author.
This is a custom mod I created for the member: XSV_4ce and was given permission to release it here.
This mod basically allows specific usergroups (not required to be admins) to be given a list of other usergroups they are allowed to mass PM (can also be allowed to PM all usergroups)
A checkbox list of the allowed usergroups will show up above the PM message area (in private.php) for those given permission to use the feature (see screenshots)
Features:
Setting to allow only certain usergroups to use the mass PM feature
Setting to allow specific usergroups to mass PM all usergroups (overwrites custom permissions / [Useful for admin/mod usergroups])
Allows "custom permissions" in which usergroups can only mass PM a specific list of other usergroups
Note: Checking one or more usergroups to mass PM will overwrite the "BCC Recipients" field (should't be a problem, but just letting you know )
Please "Mark as Installed" for support/updates
Also don't forget to rate
Nominate for MOTM if you'd like as well
Is it possible to set this up to allow you to message someone regardless to whether their usergroup is primary, or additional usergroup?
Edit: I followed Badhabitz's instructions below, and it appears that I can now PM both primary and secondary groups.
Quote:
Originally Posted by Badhabitz
This thing is amazing for my community since we are a multi gaming community and I needed my Guild Leaders to be able to PM members within their usergroups.
However members are in mutiple usergroups since we have a usergroup for each guild. So I modified this to look for if the member is in a secondary user group instead of their primary.
I hope VBNinja doesn't mind me posting how I did this.
find
Product : Mass PM Usergroups Then click the edit button where it says:
Process PM private_insertpm_process
Find
Code:
$masspm_recipients_q = $vbulletin->db->query_read_slave(
"SELECT username FROM " .TABLE_PREFIX. "user
WHERE usergroupid IN (".implode(',', $masspm_recipientugs).")"
);
And replace with this line
Code:
$masspm_recipients_q = $vbulletin->db->query_read_slave(
"SELECT username FROM " .TABLE_PREFIX. "user
WHERE membergroupids LIKE '%".implode(',', $masspm_recipientugs)."%'"
);
Save and your done.
Hope this helps anyone else looking to send mass pm's based on a secondary usergroup. Thanks VBNinja for a great mod!
This is what i am getting when i select my Registered users group to send a mass MSG to all other usegroups seem to be working fine just that one is not i have added the code for a secondry usergroup now that it only sends to a few users when i send a msg to registered users if you can think of a fix to this issue it will be a great help.
PS i think it maybe due to the # and others like [ {etc etc so if we can find a fix for that it would be appricated.
This is what i am getting when i select my Registered users group to send a mass MSG to all other usegroups seem to be working fine just that one is not i have added the code for a secondry usergroup now that it only sends to a few users when i send a msg to registered users if you can think of a fix to this issue it will be a great help.
PS i think it maybe due to the # and others like [ {etc etc so if we can find a fix for that it would be appricated.