Quote:
Originally Posted by SkyShadow
That's correct!
There is an error in vB 3.0.7
please help
|
In the private.php file, add the code, below the line:
PHP Code:
$pm['recipients'] = trim($pm['recipients']);
instead of the one mentioned in the instructions:
PHP Code:
$pm['recipients'] = vbstrtolower(trim($pm['recipients']));
So that part of the file should look like:
PHP Code:
// check for valid users
$pm['recipients'] = trim($pm['recipients']);
if (!$warn_opts['collector']=='' OR !$warn_opts['collector']=='0')
{
if (!$warn_opts['automatic_warner']=='')
{
$w=$warn_opts['automatic_warner'];
$autowarner=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
$autowarner=vbstrtolower($autowarner['username']);
}
if (!$warn_opts['warner']=='')
{
$w=$warn_opts['warner'];
$warner=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
$warner=vbstrtolower($warner['username']);
}
$w=$warn_opts['collector'];
$collector=$DB_site->query_first("select username from ".TABLE_PREFIX."user where userid=$w");
$collector=vbstrtolower($collector['username']);
}
Rgds