PDA

View Full Version : Location Online Issues


Hell Bomb
08-16-2010, 03:08 PM
Ok, I can get the normal method of whos online but i wanna make it more specific. my custom pages are displayed as "info.php?do=sitemap" but I can't seem to make it work when i set the file location to that. But if i set it to "info.php?" it works just fine. any ideas?

Hool Location:online_location_process
Title:sitemap location process
active:yes

if ($filename == 'info.php?do=sitemap')
{
$userinfo['activity'] = 'sitemap';
}

Hook Locatation:online_location:unknown
Title:sitemap location process
active:yes
if ($userinfo['activity'] == 'sitemap')
{
$userinfo['where'] = '<a href="info.php?do=sitemap'.$vbulletin->session->vars[sessionurl_q].'">'.$vbulletin->options[bbtitle].' Viewing The Site Map</a>';
$userinfo['action'] = 'sitemap';
$handled = true;
}

kh99
08-16-2010, 06:51 PM
Hmm...I only spent a few minutes looking at the code so I can't guarantee it, but it kind of looks like it takes apart the URL and puts the parameters in a $values array, so that you'd want something like:

if ($filename == 'info.php' && $values['do']=='sitemap')
{
$userinfo['activity'] = 'sitemap';
}