Okay, I got it to sort of work.
online_location_unknown:
Code:
if ($userinfo['activity'] == 'topposters')
{
$handled = true;
$userinfo['action'] = $vbphrase['top_view'];
$userinfo['where'] = '<a href="misc.php?do=topposters">'.$vbulletin->options['bburl'].'/misc.php?do=topposters</a>';
}
I changed it to this:
Code:
if ($userinfo['activity'] == 'topposters')
{
$handled = true;
$userinfo['action'] = "Viewing Page";
$userinfo['where'] = '<a href="misc.php?do=topposters">'.$vbulletin->options['bburl'].'/misc.php?do=topposters</a>';
}
However, I still can't get the URL to just be a simple hyperlink (Top Posters).
Code:
if ($filename == 'topposters.php')
{
$userinfo['activity'] = 'topposters';
}
I tried changing that to this, but it just made it appear as an unknown location:
Code:
switch ($filename == 'topposters.php')
{
case 'topposters.php':
$userinfo['activity'] = 'Top Posters';
break;
}
Any help?
EDIT: I changed
online_location_unknown again and made it this:
Code:
switch ($userinfo['activity'])
{
case 'Top Posters':
$userinfo['where'] = '<a href="misc.php?do=topposters">'.$vbulletin->options['bburl'].'/misc.php?do=topposters</a>';
$userinfo['action'] = "Viewing Page";
$handled = true;
break;
}
...and the activity name is still not working how I want it to.
This is what it should be:
Viewing Page Top Posters
This is what it says:
Viewing Page http://www.kh-mediaflare.net/misc.php?do=topposters
Any help will be greatly appreciated.