Hello,
how should the following look like if the file test.php is on the path
http://mysite.com/custompages/test.php ?
PHP Code:
switch ($filename)
{
case 'test.php':
$userinfo['activity'] = 'mypage';
break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.
}
PHP Code:
switch ($userinfo['activity'])
{
case 'mypage':
$userinfo['where'] = '<a href="test.php?'.$vbulletin->session->vars[sessionurl].'">My Page</a>';
$userinfo['action'] = "Viewing My Page";
$handled = true;
break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.
}
If I put
HTML Code:
/custompages/test.php
instead of
I get the right link and redirection in the "who's online" list, but instead of the action I get "
Unknown Location".