I am trying to get an external page to show up in the Who's Online (WOL) box, to no avail. I have searched for the relevant articles, and the code suggested doesn't work, and the hack for adding it through the AdminCP doesn't work. I am manually trying to make it work. Here is my plugin code:
forum directory = /forum/
news directory = /news/
news filename = /news/index.php
News Index Header:
PHP Code:
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'index');
chdir('/forum');
require_once('./global.php');
require_once('./includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
chdir('/news');
require_once('functions.php');
WOL PreProcess:
PHP Code:
if (strpos($loc, '/news/') !== false)
{
switch ($filename)
{
case '':
case 'index.php':
$filename = 'newsindex.php';
break;
}
}
WOL Process:
PHP Code:
switch ($filename)
{
case 'newsindex.php':
$userinfo['activity'] = 'browsenews';
break;
}
WOL Process Unknown:
PHP Code:
if (!$handled)
{
switch ($userinfo['activity'])
{
case 'browsenews':
$userinfo['action'] = "Browsing News";
$handled = true;
break;
}
}
It keeps showing up that the person is viewing the forum index.
Can anyone see what I am doing wrong?
I have been trying everything and can not get it to work...