I'm trying to nail down a problem with some code, and I think I've narrowed it down to this chunk of code:
Code:
case 'play':
$userinfo['action'] = $vbphrase['ibproarcade_playing_game'];
$userinfo['where'] = '<a href="arcade.php?' . $vbulletin->session->vars['sessionurl'] . "do=play&gameid=$gameid\">$gametitle</a>";
break;
case 'stats':
$userinfo['action'] = $vbphrase['ibproarcade_viewing_highscores'];
$userinfo['where'] = '<a href="arcade.php?' . $vbulletin->session->vars['sessionurl'] . "do=stats&gameid=$gameid\">$gametitle</a>";
break;
default:
$userinfo['action'] = $vbphrase['ibproarcade_viewing_home'];
$userinfo['where'] = '<a href="arcade.php' . $vbulletin->session->vars['sessionurl_q'] . "\">$vbphrase[ibproarcade_home]</a>";
break;
Something's not right with the first case statement, and I'm going bonkers trying to figure out what and where the syntax error is. I need more eyes to look at this - mine are starting to go buggy. Any input would be appreciated. I'm not a coder, so I can't post this in the coding section. Thanks.