Version: 1.00, by Zero Tolerance
Developer Last Online: Nov 2023
Version: 3.0.3
Rating:
Released: 10-04-2004
Last Update: Never
Installs: 134
No support by the author.
This is a minor upgrade from the first version, 1 main new feature, and a little code revision.
Features:
Number of PM's to send at a time
It's a server intensive process and you don't want to ultimatly send to everyone at once on your forum unless you have like 50 member's.
New Usergroup Selecting
Your now able to select all, 1 or certain usergroup's to which the PM is sent to, so if you wish to send to staff, Ie, Admins, SMods + Mods, you would simply check all those, making it much easier and saving time.
Very simple install, take you 3 seconds, im not joking, yet very useful, a preview is below for those desiring to see what it look's like first.
Enjoy,
- Zero Tolerance
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
This is a minor upgrade from the first version, 1 main new feature, and a little code revision.
Features:
Number of PM's to send at a time
It's a server intensive process and you don't want to ultimatly send to everyone at once on your forum unless you have like 50 member's.
New Usergroup Selecting
Your now able to select all, 1 or certain usergroup's to which the PM is sent to, so if you wish to send to staff, Ie, Admins, SMods + Mods, you would simply check all those, making it much easier and saving time.
Very simple install, take you 3 seconds, im not joking, yet very useful, a preview is below for those desiring to see what it look's like first.
However I have a minor problem. The usergroupd I have set-up are for members to join as a secondary usergroup. They show up on the window, but when trying to send a PM to users I get the error
Quote:
There are no user's within the specified usergroup(s) to PM. Please go back.
select * from user where usergroupid IN(24) order by userid
Can you add support to pm users in the group that are in them as secondary users as well?
It's something ill have to look into, i've never used secondary usergroups (never saw any reason to) and im not exactly sure how they are constructued =)
I would need support for secondary usergroups as well.
I think that the is_member_of() function accounts for secondary usergroups as opposed to using the $bbuserinfo[groupid] (that's probably not exactly right)
Dune had the following modification posted in the original Thread for version 1.0, however at first glance I don't see how this will apply to the new version 1.5.
Quote:
Originally Posted by dune
We use secondary groups too, primarily. (We leave everyone except admins in Reg users (and banned, unregistered, etc). Additional permissions are in secondary groups, so we needed this to.
Here's what you need to do:
In admin_pmall.php
Find:
Code:
// Collect Array Of Members Within Specified Usergroup
$Get_Members=$DB->query("select * from ".TABLE_PREFIX."user where usergroupid='{$_POST['to_usergroup']}' order by userid");
REPLACE WITH:
Code:
// Collect Array Of Members Within Specified Usergroup
$Get_Members=$DB->query("select * from ".TABLE_PREFIX."user where usergroupid='{$_POST['to_usergroup']}' or membergroupids REGEXP '[[:<:]]{$_POST['to_usergroup']}[[:>:]]' order by userid");
Find:
Code:
// Collect Array Of Members Within Specified Usergroup
$Get_Members=$DB->query("select * from ".TABLE_PREFIX."user where usergroupid='{$_GET['usergroup']}' order by userid");
REPLACE WITH:
Code:
// Collect Array Of Members Within Specified Usergroup
$Get_Members=$DB->query("select * from ".TABLE_PREFIX."user where usergroupid='{$_GET['usergroup']}' or membergroupids REGEXP '[[:<:]]{$_GET['usergroup']}[[:>:]]' order by userid");
This will find members who are in the specified group as EITHER their primary or as a secondary. Hope that helps. Credit for the REGEXP goes to my sysadmin Dan (the Man).