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

