Custom mass pm & simple ignore 1.3.0

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 !

Custom mass pm & simple ignore 1.3.0

Postby cherokee red on Fri 30. Jul, 2004 15:54

I have this mod and Ravenhearte's simple ignore 1.3.0 mod installed. Problem is that both mods edit the same bit of code.
Namely this part in privmsg.php -
Code: Select all
$to_userdata = $db->sql_fetchrow($result);


Your mod changes the code from this -
Code: Select all
         if ( !($result = $db->sql_query($sql)) )
         {
            $error = TRUE;
            $error_msg = $lang['No_such_user'];
         }

         $to_userdata = $db->sql_fetchrow($result);
      }
      else
      {

Code: Select all
// Start replacement - Custom mass PM MOD
   if( !($result2 = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, 'Could not obtain users PM information', '', __LINE__, __FILE__, $sql);
   }
   $to_users = $db->sql_fetchrowset($result2);
   $n=0;
   while ($to_username_array[$n] && !$error)
   {
      if (strcasecmp($to_users[$n]['username'], str_replace("\'", "'",$to_username_array[$n])))
      {
         $error = TRUE;
         $error_msg .= $lang['No_such_user']." '".str_replace("\'", "'", $to_username_array[$n]);
      }
      $n++;
   }
}
else
{
// End replacement - Custom mass PM MOD


but Ravenhearte's adds this aftes it-
Code: Select all
         if ( isset($ignored_ids[$to_userdata['user_id']]) && $ignored_ids[$to_userdata['user_id']] )
         {
            message_die(GENERAL_ERROR, $to_username . $lang['Has_ignored']);
         }



It's a bit annoying as I can't seem to have them both running without loosing my pm functionality altogether. I'm unsure as to who to post this to, so i'm putting it here and at phpBB.com in the simple ignore [BETA] thread. I'll keep both posts updated.
Or if need be, i'll create a post in the correct topic (if there is one for this type of problem) and edit my posts.

I did have a look at the code for the 2 mods to see if i could figure it out myself, but I'm still really unsure about php.
Any help would be great.
cheers,

kenny :)
cherokee red
Poster
Poster
 
Posts: 3
Joined: Thu 22. Apr, 2004 10:57

Return to Custom mass PM [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron