paul41598
07-20-2005, 01:18 PM
Ive been doing alot of searching lately on here looking for code/solutions for display users who are viewing my homepage out in *root
I found a few,but none really worked, so I somehow combined two of them, and thought I had a perm fix.
However Ive been doing alot of testing. WHen I logout with a temp user, (and see this screen - below) and view the whos online list from my admin user, I see "Viewing The Homepage" and it should be "viewing index" or whatever the default is.
So this code is somehow messed up, and Im not sure why. Anyone help out? Brian?
case 'cmps_index.php':
// HACK : START : VBADVANCED
//$userinfo['activity'] = 'index';
if (isset($userinfo['values']['page']) && !empty($userinfo['values']['page'])) {
$userinfo['activity'] = 'page';
} else {
$userinfo['activity'] = 'unknown';
if (strpos($userinfo['location'], "forums") === false)
{
$userinfo['activity'] = 'home';
} else {
$userinfo['activity'] = 'index';
}
}
// HACK : END : VBADVANCED
break;
Here is my case statement:
case 'home':
$userinfo['action'] = 'Viewing The Homepage';
$userinfo['where'] = "<a href=\"../cmps_index.php?$session[sessionurl]\">Homepage</a>";
break;
Unless of course in this screenshot, Im not technically in the "forums" dir anymore, and thats why its showing that...but, seems odd
I found a few,but none really worked, so I somehow combined two of them, and thought I had a perm fix.
However Ive been doing alot of testing. WHen I logout with a temp user, (and see this screen - below) and view the whos online list from my admin user, I see "Viewing The Homepage" and it should be "viewing index" or whatever the default is.
So this code is somehow messed up, and Im not sure why. Anyone help out? Brian?
case 'cmps_index.php':
// HACK : START : VBADVANCED
//$userinfo['activity'] = 'index';
if (isset($userinfo['values']['page']) && !empty($userinfo['values']['page'])) {
$userinfo['activity'] = 'page';
} else {
$userinfo['activity'] = 'unknown';
if (strpos($userinfo['location'], "forums") === false)
{
$userinfo['activity'] = 'home';
} else {
$userinfo['activity'] = 'index';
}
}
// HACK : END : VBADVANCED
break;
Here is my case statement:
case 'home':
$userinfo['action'] = 'Viewing The Homepage';
$userinfo['where'] = "<a href=\"../cmps_index.php?$session[sessionurl]\">Homepage</a>";
break;
Unless of course in this screenshot, Im not technically in the "forums" dir anymore, and thats why its showing that...but, seems odd