PDA

View Full Version : Who's Online WOL - External Page - Not Working


STGU_daNo
03-27-2006, 03:54 PM
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:
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:
if (strpos($loc, '/news/') !== false)
{
switch ($filename)
{
case '':
case 'index.php':
$filename = 'newsindex.php';
break;
}
}

WOL Process:
switch ($filename)
{
case 'newsindex.php':
$userinfo['activity'] = 'browsenews';
break;
}

WOL Process Unknown:
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...