Invalid username

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 !

Invalid username

Postby Psychokiller1888 on Sat 06. Aug, 2005 13:04

Hello!

Well, i've installed this mod, and it seems I've a problem. After clicking on "send pm" with a multi username, it tells me the user doesn't exist. I can send normal pm (understand, to one user) but not to several. Can anyone help me? Thanks a lot!
----------==<<<PSYCHOKILLER1888>>>==----------
Psychokiller1888
Poster
Poster
 
Posts: 5
Joined: Wed 04. May, 2005 18:40
Location: Suisse

Postby Beeveer on Sun 07. Aug, 2005 14:51

Make sure that you have editted all parts of privmsg.php correctly!
User avatar
Beeveer
brilliant supporter
 
Posts: 264
Joined: Tue 30. Nov, 2004 19:13
Location: Boskoop, South-Holland, the Netherlands

Postby Psychokiller1888 on Sun 07. Aug, 2005 15:06

well, it seems to be correctly edited, as I've already checked two times right now...
----------==<<<PSYCHOKILLER1888>>>==----------
Psychokiller1888
Poster
Poster
 
Posts: 5
Joined: Wed 04. May, 2005 18:40
Location: Suisse

Postby ezybee on Sat 24. Sep, 2005 21:17

Seeing similar error

Send to Single User works
Send to Group works

Send to Username1; Username2

"get a Sorry, but no such user exists. 'Username1"

Note leading " ' " always appears

Appears to be in this block of code

#-----[ REPLACE WITH ]----------------------------------------
#

// 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
ezybee
Poster
Poster
 
Posts: 3
Joined: Sat 24. Sep, 2005 17:17

Postby ezybee on Tue 25. Oct, 2005 23:56

still looking for an answer
ezybee
Poster
Poster
 
Posts: 3
Joined: Sat 24. Sep, 2005 17:17


Return to Custom mass PM [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron