Lionel
03-10-2007, 06:26 AM
You need to create 3 plugins per location
I've successfully tested this on the vbadvanced pages like index.php?page=xx but it should be fine for links too. Just use the preprocess plugin to set in the correct filename location.
In my attached example I use the soccer page. For links the preprocess would be
/forums/links/index.php
/forums/links/browselinks.php
etc... then you name the file whatever you want. I named mine in the plugin (don't go and change your filename on server) as linksmain.php
You need to repeat all 3 steps for each location you want to add.
EDIT: I just added for the main links page and it works just fine. This method will work for all who's online problematic unknown locations
Here are my plugins for the main vba_links index so you get the idea. Obviously this is an example as your paths will differ for sure.
Preprocess:
if ($loc == '/forums/haitisearch/index.php' OR $loc == '/forums/haitisearch/' )
{
$filename = 'linksmain.php';
}
Process:
if ($filename == 'linksmain.php')
{
$userinfo['activity'] = 'linksmain';
}
Unknown:if ($userinfo['activity'] == 'linksmain')
{
$userinfo['where'] = '<a href="/forums/haitisearch/index.php?">Haiti Search Main Page</a>';
$userinfo['action'] = "Viewing Haiti Search";
$handled = true;
}
I've successfully tested this on the vbadvanced pages like index.php?page=xx but it should be fine for links too. Just use the preprocess plugin to set in the correct filename location.
In my attached example I use the soccer page. For links the preprocess would be
/forums/links/index.php
/forums/links/browselinks.php
etc... then you name the file whatever you want. I named mine in the plugin (don't go and change your filename on server) as linksmain.php
You need to repeat all 3 steps for each location you want to add.
EDIT: I just added for the main links page and it works just fine. This method will work for all who's online problematic unknown locations
Here are my plugins for the main vba_links index so you get the idea. Obviously this is an example as your paths will differ for sure.
Preprocess:
if ($loc == '/forums/haitisearch/index.php' OR $loc == '/forums/haitisearch/' )
{
$filename = 'linksmain.php';
}
Process:
if ($filename == 'linksmain.php')
{
$userinfo['activity'] = 'linksmain';
}
Unknown:if ($userinfo['activity'] == 'linksmain')
{
$userinfo['where'] = '<a href="/forums/haitisearch/index.php?">Haiti Search Main Page</a>';
$userinfo['action'] = "Viewing Haiti Search";
$handled = true;
}