Log in

View Full Version : Online Locations for custom page not working


Chunky Monkey
12-22-2008, 05:57 PM
Hi all,

I followed the instructions here (https://vborg.vbsupport.ru/showpost.php?p=1691293&postcount=921) to update the who is online location for my custom vb page but only see the location "Unknown common/lists.css" instead of what I've specified via the plugin manager. Does anyone know anything about this and if so can you help?

Thank you

Lynne
12-22-2008, 06:04 PM
Post the code you used in both plugins.

Chunky Monkey
12-22-2008, 07:09 PM
Thanks, Lynne:

online_location_process

switch ($filename)
{
case 'mypage.php':
$userinfo['activity'] = 'mylog';
break;
}

online location unknown:

switch ($userinfo['activity'])
{
case 'mylog':
$userinfo['where'] = '<a href="mypage.php?'.$vbulletin->session->vars[sessionurl].'">My Page</a>';
$userinfo['action'] = "Viewing My Page";
$handled = true;
break;
}

Lynne
12-22-2008, 07:42 PM
You need to replace things like "mypage.php", "mylog", "My Page", and "Viewing My Page" with your own page urls/names.

Chunky Monkey
12-22-2008, 08:31 PM
I had actually named my page mypage.php and defined THIS_SCRIPT as 'mylog', so those are my own page urls/names...

Thanks, Lynne.

Lynne
12-22-2008, 08:48 PM
Ha! You did that just to confuse me, huh? :)


Did you make sure to turn the plugins on? And it actually says "Unknown common/lists.css" ? Can unregistered users see your online page?

Chunky Monkey
12-22-2008, 09:36 PM
Hi Lynn,

The plugins are on. It actually does say "Unknown Location common/common.css" (said lists before). Guests cannot see the online page.

And no, I would never try to confuse such a helpful, hard working cat with a face like that. :-)

--------------- Added 1229990256 at 1229990256 ---------------

I got it to work, Lynn. Thank you very much for your help.