Code: Select all
['Has_ignored'];
Code: Select all
['Has_ignored']);
Code: Select all
if ( !($result = $db->sql_query($sql)) )
{
$error = TRUE;
$error_msg = $lang['No_such_user'];
}
if ( $userdata['user_level'] == USER && isset($ignored_ids[$to_userdata['user_id']]) && $ignored_ids[$to_userdata['user_id']] )
{
$error = TRUE;
$error_msg = $lang['Has_ignored'];
}
if (!($to_userdata = $db->sql_fetchrow($result)))
{
$error = TRUE;
$error_msg = $lang['No_such_user'];
}
Code: Select all
Error getting ignore listing
DEBUG MODE
SQL Error : 1146 Table 'unfougiv_phpb1.IGNORE_TABLE' doesn't exist
SELECT i.ignored_id, u.username, u.user_id FROM phpbb_users u, IGNORE_TABLE i WHERE i.user_id = 51 AND u.user_id = i.ignored_id
Line : 97
File : ignore.php
Code: Select all
#
#-----[ FIND ]------------------------------------------
#
$to_userdata = $db->sql_fetchrow($result)
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $userdata['user_level'] == USER && isset($ignored_ids[$to_userdata['user_id']]) && $ignored_ids[$to_userdata['user_id']] )
{
$error = TRUE;
$error_msg = $lang['Has_ignored'];
Code: Select all
$to_userdata = $db->sql_fetchrow
Code: Select all
if (!($to_userdata = $db->sql_fetchrow($result)))
IPB_Refugee wrote: Hello,
first of all thanks a lot for this great mod!
Unfortunately I´ve got a problem with it: User A still can send PMs to user B although A is ignored by B.
Maybe the problem is due to this line:
In my privmsg.php there is no lineCode: Select all
# #-----[ FIND ]------------------------------------------ # $to_userdata = $db->sql_fetchrow($result) # #-----[ BEFORE, ADD ]------------------------------------------ # if ( $userdata['user_level'] == USER && isset($ignored_ids[$to_userdata['user_id']]) && $ignored_ids[$to_userdata['user_id']] ) { $error = TRUE; $error_msg = $lang['Has_ignored'];
but onlyCode: Select all
$to_userdata = $db->sql_fetchrow
I have added the code above the line mentioned. You can see my full privmsg.php here:Code: Select all
if (!($to_userdata = $db->sql_fetchrow($result)))
http://home.twin.at/wolfgang/privmsg.txt
Your help would be very appreciated!
Greetings from Austria!
Wolfgang
Code: Select all
if (!($to_userdata = $db->sql_fetchrow($result)))
{
$error = TRUE;
$error_msg = $lang['No_such_user'];
}
Code: Select all
// Ignore Mod
if ( $userdata['user_level'] == USER && isset($ignored_ids[$to_userdata['user_id']]) && $ignored_ids[$to_userdata['user_id']] )
{
$error = TRUE;
$error_msg = $to_username . $lang['Has_ignored'];
}
// Ignore Mod
IPB_Refugee wrote: There should be an add on that A can´t send emails through the board to B when B ignores A. But maybe this mod does already exist.
Code: Select all
Could not obtain matched posts list
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'poster_id NOT IN ( 108 )' at line 3
SELECT post_id FROM phpbb_posts WHERE post_time >= 1156880164AND poster_id NOT IN ( 108 )
Line : 266
File : search.php
Code: Select all
if ( $ignored_sql != '' ) $ignored_sql = 'AND poster_id NOT IN (' . substr($ignored_sql, 2) . ' )';
Code: Select all
if ( $ignored_sql != '' ) $ignored_sql = ' AND poster_id NOT IN (' . substr($ignored_sql, 2) . ' )';