Log in

View Full Version : Can some check my custom WOL plugin?


SCRIPT3R
06-07-2006, 04:54 PM
Product: vB

Title: Viewing Forums Dex Part1
Hook Loc: online_location_process
if ($filename == '/forum/forums_index.php?')
{
$userinfo['activity'] = 'Viewing Forums Index';
}

Title: Viewing Forums Dex Part2
Hook Loc: online_location_unknown
if ($userinfo['activity'] == 'Viewing Forums Index')
{
$userinfo['action'] = 'Viewing Forums Index';
$userinfo['where'] = '<a href="/forum/forums_index.php?' . $vbulletin->session->vars['sessionurl'] . '">Viewing Forums Index</a>';
$handled = true;
}

using vB 3.5.3 w/ security patch, it doesn't seem to be working for me.

noppid
06-07-2006, 04:57 PM
I think ya need to shorten if ($filename == '/forum/forums_index.php?') to if ($filename == 'forums_index.php')

SCRIPT3R
06-07-2006, 05:00 PM
I think ya need to shorten if ($filename == '/forum/forums_index.php?') to if ($filename == 'forums_index.php')
will try that.

update... didn't work. :(

SCRIPT3R
06-08-2006, 06:01 PM
still looking for some help on this one... anymore ideas?

SCRIPT3R
09-11-2006, 08:47 PM
in vB 3.6, is preprocess necessary?

Ntfu2
09-12-2006, 03:02 AM
if($userinfo['activity']=='YOUR_ACTIVITY')
{
$userinfo['where'] = '<a href="YOUR_ADDIN_FILE.php?'.$vbulletin->session->vars[sessionurl].'">'.$vbulletin->options[bbtitle].' YOUR_ACTIVITY</a>';
$userinfo['action'] = 'YOUR_ACTIVITY';
$handled = true;
}