i did not get that warning due to my ERROR_REPORTING level (set to NONE)...
Well, i'm trying to debug.
First, on line 24
"SELECT DISTINCT userip FROM jos_comprofiler_plug_iplog WHERE userid='62' ORDER BY logdate ASC LIMIT 0, 3"
i don't think the userid is a varchar, so the ' are useless ?
Then there's a bug line 129
# Detect users IP - unless is admin and no admin log settings enabled
if (!$iplogNoAdminLog AND $admin) { } else { $this->detectUserIp($user, $iplogDetect, $iplogLogIp); }
$admin does not exist. $is_admin, yes.
Then
$is_admin = (strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'super administrator');
correct it to (better)
$is_admin = (strtolower($my->usertype) == 'administrator') || (strtolower($my->usertype) == 'super administrator');
Then, i never verify
if ($iplogDetect=="0" AND $my->id==$user) { // Visiting own profile only! and
else if ($iplogDetect=="1"«») { // Visiting any profile!
with my config
Then, modify
if ($iplogDetect=="0" AND $my->id==$user) { // Visiting own profile only! with
if (($iplogDetect=="0"«») AND ($my->id==$user)) { // Visiting own profile only!
it's better to set explicit priorities
Then i did not get that warning due to my ERROR_REPORTING level (set to NONE)...
Well, i'm trying to debug.
First, on line 24
"SELECT DISTINCT userip FROM jos_comprofiler_plug_iplog WHERE userid='62' ORDER BY logdate ASC LIMIT 0, 3"
i don't think the userid is a varchar, so the ' are useless ?
Then there's a bug line 129
# Detect users IP - unless is admin and no admin log settings enabled
if (!$iplogNoAdminLog AND $admin) { } else { $this->detectUserIp($user, $iplogDetect, $iplogLogIp); }
$admin does not exist. $is_admin, yes.
Then
$is_admin = (strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'super administrator');
correct it to (better)
$is_admin = (strtolower($my->usertype) == 'administrator') || (strtolower($my->usertype) == 'super administrator');
Then, i never verify
if ($iplogDetect=="0" AND $my->id==$user) { // Visiting own profile only! and
else if ($iplogDetect=="1"«») { // Visiting any profile!
with my config
Then, $user in
if (($iplogDetect=="0"«») AND ($my->id==$user)) { // Visiting own profile only! is an object and not a value
Then $user in
if (($iplogDetect=="0"«») AND ($my->id==$user)) { // Visiting own profile only! is incorrect. Must be
if (($iplogDetect=="0"«») AND ($my->id==$user->id)) { // Visiting own profile only!
Post edited by: silexian, at: 2006/06/15 21:30
Okay ... I made some modification ...
and now, with my config, it works !
Post edited by: silexian, at: 2006/06/15 21:43