2008-08-03, 05:06 PM
There's something wrong in the file inc/functions_online.php.
1. In the who's online list it is shown that a user is reading a thread but not which thread. The same applies for profiles and so on. If you replace
2. In the profiles the location is always shown as "Unknown location".
1. In the who's online list it is shown that a user is reading a thread but not which thread. The same applies for profiles and so on. If you replace
case "showthread":
if($threads[$user_activity['tid']])
{
$pagenote = '';
$location_name = $lang->sprintf($lang->reading_thread2, get_thread_link($user_activity['tid']), $threads[$user_activity['tid']], $pagenote);
}
else
{
$location_name = $lang->reading_thread;
}
break;
with case "showthread":
if($threads[$user_activity['activity']['tid']])
{
$pagenote = '';
$location_name = $lang->sprintf($lang->reading_thread2, get_thread_link($user_activity['activity']['tid']), $threads[$user_activity['activity']['tid']], $pagenote);
}
else
{
$location_name = $lang->reading_thread;
}
break;
the thread issue is fixed. $user_activity['tid'] should be $user_activity['activity']['tid']. The issue with the profiles etc. should be the same.2. In the profiles the location is always shown as "Unknown location".