View Full Version : profile..parse error?
Chadi
12-19-2004, 04:59 PM
I get this error when clicking on someone's profile
Parse error: parse error, unexpected T_CASE, expecting ':' or '{' in /home/chadi/public_html/includes/functions_online.php on line 153
switch($userinfo['activity'])
// Album user online Mod
case 'album':
$userinfo['action'] = 'Browsing album';
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
break;
// End
the third line is line 153
Zachery
12-19-2004, 05:14 PM
case 'album': try
case 'album';
Chadi
12-19-2004, 05:18 PM
same error :(
Chadi
12-20-2004, 12:51 AM
Anyone else know?
This happened after I installed the 4images mod (which works) but I don't know how to correct this
Paul M
12-20-2004, 01:09 AM
You are missing the {} for the switch.
Try ;
switch($userinfo['activity'])
{
// Album user online Mod
case 'album':
$userinfo['action'] = 'Browsing album';
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
break;
// End
}
Since there is only one case, it seems daft using switch anyway, an if statement would have been better.
ZGeek
01-09-2005, 11:38 PM
I also found this worked.
switch($userinfo['activity'])
{
case 'album':
$userinfo['action'] = 'Browsing album';
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
break;
case 'showthread':
$userinfo['action'] = $vbphrase['viewing_thread'];
if ($seetitle)
Mink_
01-10-2005, 12:22 AM
You missed these guys: {}
switch($userinfo['activity'])
// Album user online Mod
{ case 'album':
$userinfo['action'] = 'Browsing album';
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
break; }
// End
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.