PDA

View Full Version : Custom WOL Locations?


LifesGreatestGift
12-31-2009, 05:18 PM
Is it possible to set custom locations for the Who's Online page and Location?

For example, if a member is viewing a custom template (EX: custom_ImageHost) and its url is www.yoursite.com/misc.php?do=page&template=ImageHost it will display as the user viewing the forum index in the Online Location. But if you hover your mouse over the exact location question mark ( ? ) you can see that the user is viewing the template.

Thanks in advance. :)

Lynne
12-31-2009, 05:50 PM
There is an article on how to do this, did you look in the articles forums?

LifesGreatestGift
12-31-2009, 08:34 PM
Yeah, I followed this article:
https://vborg.vbsupport.ru/showthread.php?t=121776&highlight=wol+location

So I made a plugin called WOL 1 and made the hook location "online_location_process" and entered in the following code:


if ($filename == 'misc.php?do=page&template=ImageHost')
{
$userinfo['activity'] = 'Image Host';
}



And another plugin called WOL 2 with a hook location of "online_location_unknown" and with the following code:


if ($userinfo['activity'] == 'Image Host')
{
$handled = true;
$userinfo['action'] = 'Viewing Image Host';
$userinfo['where'] = "<a href=\"misc.php?do=page&template=ImageHost">Image Host</a>";
}



Still no go :|

I also tried this plugin (Yeah I know it was made for vB 3.5) to see if it might work and it didn't.
https://vborg.vbsupport.ru/showthread.php?t=83247

--------------- Added 1262299089 at 1262299089 ---------------

I was hoping I wouldn't have to edit any php files :|

Lynne
12-31-2009, 10:52 PM
I believe if you are going to put in variables (misc.php?do=page&template=ImageHost ) then it gets a bit more complicated. Take a look starting around post 25 here - https://vborg.vbsupport.ru/showthread.php?t=82882&page=2