MOD download & history

Makes it posble for admin to specify witch type of users may mass PM any usergroup
Also PM users can be a list of usernames, so PM can be sendt to any number of users

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Postby Niels on Sun 14. Sep, 2003 23:38

I have updated the mod to version 1.4.2. - witch fixes a isue about the users inbox seam "empty" - even thoug it is not.

in file privmsg.php
Code: Select all
[FIND]
$sql = "SELECT DISTINCT g.group_id, g.group_name
      FROM ".GROUPS_TABLE . " g, ".USER_GROUP_TABLE . " ug
      WHERE g.group_single_user <> 1
         AND (
            (g.group_allow_pm='".AUTH_MOD."' AND g.group_moderator = '" . $userdata['user_id']."') OR 
            (g.group_allow_pm='".AUTH_ACL."' AND ug.user_id = " . $userdata['user_id'] . " AND ug.group_id = g.group_id ) OR
            (g.group_allow_pm='".AUTH_REG."')       
         )" ;
      if( !$g_result = $db->sql_query($sql) ) message_die(GENERAL_ERROR, "Could not select group names!", __LINE__, __FILE__, $sql);


[REPLACE WITH]
$sql_g = "SELECT DISTINCT g.group_id, g.group_name
      FROM ".GROUPS_TABLE . " g, ".USER_GROUP_TABLE . " ug
      WHERE g.group_single_user <> 1
         AND (
            (g.group_allow_pm='".AUTH_MOD."' AND g.group_moderator = '" . $userdata['user_id']."') OR 
            (g.group_allow_pm='".AUTH_ACL."' AND ug.user_id = " . $userdata['user_id'] . " AND ug.group_id = g.group_id ) OR
            (g.group_allow_pm='".AUTH_REG."')       
         )" ;
      if( !$g_result = $db->sql_query($sql_g) ) message_die(GENERAL_ERROR, "Could not select group names!", __LINE__, __FILE__, $sql_g);
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Fri 21. Nov, 2003 23:33

I have uploaded new version of this mod (ver 1.4.4)

to upgrade:
Code: Select all
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_validate.php

#
#-----[ FIND ]------------------------------------------------
#
// Don't allow
if (strstr(

#
#-----[ IN-LINE FIND ]----------------------------------------
#
, chr(160))

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------------
#
|| strstr($username, ';')
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Wed 10. Dec, 2003 10:49

-=ET=- have re-written the header of the how-to, to be more EM ready
New version is 1.4.5., no change in code
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Thu 18. Mar, 2004 22:51

I have uploaded version 1.4.6.
this version solves a isue, then selecting usernames

in file search_username.php
Code: Select all
[FIND]
opener.document.forms['post'].username.value = opener.document.forms['post'].username.value + ', ' + selected_username;

[REPLACE WITH]
opener.document.forms['post'].username.value = opener.document.forms['post'].username.value + ';' + selected_username;
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Tue 28. Sep, 2004 23:23

version 1.4.7. solves a isue, where usernames a capitalized..
thanks to
Jascha S. so report this isue

in file privmsg.php
[FIND]
sort ($to_username_array);

[REPLACE WITH]
usort ($to_username_array);
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby Niels on Thu 10. Nov, 2005 23:49

I have uploaded a new version of the included groupmsg.php file
this is cosmetic updated, and will correct a bug about the users name in the notification email

The version number of the mod stays the same, but the inlcuded file groupmsg.php change version number from 0.9.9 -> 0.9.10

to update simply replace the file
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Previous

Return to Custom mass PM [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron