Club3G
11-12-2005, 03:34 AM
My IRC chat uses webtemplates, based off of view.php. In who's online, I get the following for the user's location:
Unknown Location
/forum/view.php?pg=ircchat
I have these in my functions_online.php:
case '/forum/view.php?pg=ircchat':
$userinfo['activity'] = 'IRC';
break;
followed by:
case 'IRC':
$userinfo['action'] = 'In The Chat Room';
$userinfo['where'] = "<a href=\"view.php?pg=ircchat$session[sessionurl]\">IRC Chat</a>";
break;
I believe that's right, I've tried stripping the leading slash from the first case statement, and no luck.
What am I missing? Thanks in advance. :)
Edit, missed a step in the webtemplates installer, so it's solved. Thanks anyhow.
Unknown Location
/forum/view.php?pg=ircchat
I have these in my functions_online.php:
case '/forum/view.php?pg=ircchat':
$userinfo['activity'] = 'IRC';
break;
followed by:
case 'IRC':
$userinfo['action'] = 'In The Chat Room';
$userinfo['where'] = "<a href=\"view.php?pg=ircchat$session[sessionurl]\">IRC Chat</a>";
break;
I believe that's right, I've tried stripping the leading slash from the first case statement, and no luck.
What am I missing? Thanks in advance. :)
Edit, missed a step in the webtemplates installer, so it's solved. Thanks anyhow.