View Full Version : Unknown location
Eagle Creek
05-31-2006, 10:17 AM
Hi!
I addedd the plugins as described at https://vborg.vbsupport.ru/showthread.php?t=98009 but it keeps saying unknown location.
Anbody an idea?
Alan @ CIT
05-31-2006, 11:30 AM
Can you post the code you put in the plugins please?
Thanks,
Alan.
Eagle Creek
06-01-2006, 02:51 PM
Yes I can:
The page that has to have a name is:
http://www.nucia.nl/forum/donatie.php
Hook Location : online_location_preprocess
My Custom Location (Part1)
if ($filename == 'donatie.php')
{
$userinfo['activity'] = 'donatie';
}
Hook Location : online_location_unknown
My Custom Location (Part2)
if ($userinfo['activity'] == 'donatie')
{
$userinfo['action'] = 'Viewing Test Page'; // you might wanna use a $vbphrase here...
$userinfo['where'] = '<a href="./donatie.php?' . $vbulletin->session->vars['sessionurl'] . '">Donate</a>'; // you might wanna use a $vbphrase here...
$handled = true;
}
Alan @ CIT
06-01-2006, 06:18 PM
The first plugin should be in "online_location_process" rather than "online_location_preprocess" - give that a try and see if it helps.
Thanks,
Alan.
Eagle Creek
06-01-2006, 08:37 PM
I will, hang on :).
Working perfect!
Thank you!
Didn't see that detail.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.