Quote:
Originally Posted by Bluefin221
This throws up errors on the who's online when I deactivate the mod the errors go away.
The error when trying to view who's online
Error1
Code:
Parse error: syntax error, unexpected T_CASE in /home/myfolder/public_html/forums/includes/functions_online.php(2197) : eval()'d code on line 18
Error2
Code:
Parse error: syntax error, unexpected T_CASE in /home/myfolder/public_html/forums/includes/functions_online.php(1214) : eval()'d code on line 38
|
Replace the following
HTTP Error Pages Pro -> Who's Online List: Online Location Unknown
replace with code with:
Code:
if ($userinfo['activity'] == '400')
{
$userinfo['action'] = "Viewing 400 Bad Request";
$userinfo['where'] = '<a href="400_forum.php?'.$vbulletin->session->vars[sessionurl].'">400 Bad Request</a>';
$handled = true;
}
if ($userinfo['activity'] == '401')
{
$userinfo['action'] = "Viewing 401 Unauthorized";
$userinfo['where'] = '<a href="401_forum.php?'.$vbulletin->session->vars[sessionurl].'">401 Unauthorized</a>';
$handled = true;
}
if ($userinfo['activity'] == '403')
{
$userinfo['action'] = "Viewing 403 Forbidden";
$userinfo['where'] = '<a href="403_forum.php?'.$vbulletin->session->vars[sessionurl].'">403 Forbidden</a>';
$handled = true;
}
if ($userinfo['activity'] == '404')
{
$userinfo['action'] = "Viewing 404 Not Found";
$userinfo['where'] = '<a href="404_forum.php?'.$vbulletin->session->vars[sessionurl].'">404 Not Found</a>';
$handled = true;
}
if ($userinfo['activity'] == '500')
{
$userinfo['action'] = "500 Internal Server Error";
$userinfo['where'] = '<a href="500_forum.php?'.$vbulletin->session->vars[sessionurl].'">500 Internal Server Error</a>';
$handled = true;
}
HTTP Error Pages Pro -> Who's Online List: Online Location Process
replace code with:
Code:
if ($filename == 'forum_400.php')
{
$userinfo['activity'] = '400';
}
if ($filename == 'forum_401.php')
{
$userinfo['activity'] = '401';
}
if ($filename == 'forum_403.php')
{
$userinfo['activity'] = '403';
}
if ($filename == 'forum_404.php')
{
$userinfo['activity'] = '404';
}
if ($filename == 'forum_500.php')
{
$userinfo['activity'] = '500';
}