PDA

View Full Version : Show Guest Location for Administrator


exTracT
10-04-2002, 04:48 PM
I have guest access turned off on my board. and I don't show guests in "Who's Online". Is it possible to show a full who's online with guests and their location in the admin cp. I always see there are guests online and I am curious where they are on my website.

If anyone has some insite on this It would be greatly apreciated.

thanks

Logician
10-04-2002, 07:29 PM
Originally posted by exTracT
I don't show guests in "Who's Online". Is it possible to show a full who's online with guests and their location in the admin cp.
I dont understand. Why did you disable "Guest activity on Who's Online" setting while this is exactly what you want?

Just enable the setting via Admin CP and you should be fine.. ;)

exTracT
10-04-2002, 08:46 PM
what I am looking for is it to show the guests only inside the admin cp and not the regular who's online.

Logician
10-04-2002, 09:07 PM
Let me give you another solution:

Edit online.php, find:

default:
$userinfo[activity] = 'unknown';
}

return $userinfo;
}

After that add:

if ($bbuserinfo[usergroupid]==6)
{$WOLguests=1;}


This will display the guests to only Site Admins in who is online..

Fits to you?

exTracT
10-04-2002, 10:53 PM
I seem to get this error when i click on to see whos online

Parse error: parse error, unexpected '=' in /forums/online.php on line 622

Logician
10-05-2002, 07:06 AM
sorry missing char.. Try now..

exTracT
10-05-2002, 07:30 AM
still no goes.

Logician
10-05-2002, 07:37 AM
Can you please post the lines between 618 to 630 and tell me which one is 622?

Also make sure you use Notepad to edit and IE or Netscape (not Opera) to copy paste from here

exTracT
10-05-2002, 07:39 AM
618:
return $userinfo;
}

622: $allusers= $DB_site->query("SELECT user.username, session.location, session.lastactivity, user.userid, user.usergroupid, user.invisible, session.host, user.showemail, user.receivepm
FROM session
". iif($WOLguests, " LEFT JOIN user USING (userid) ", ",user") ."
WHERE session.lastactivity > $datecut
". iif(!$WOLguests, " AND session.userid = user.userid", "") ."
ORDER BY user.username
");

$moderators = $DB_site->query("SELECT DISTINCT userid FROM moderator");

Logician
10-05-2002, 07:54 AM
And where is the hack code I told you to insert? :confused:

It seems that you are getting the error BEFORE applying the hack..

Originally posted by exTracT
618:
return $userinfo;
}

622: $allusers= $DB_site->query("SELECT user.username, session.location, session.lastactivity, user.userid, user.usergroupid, user.invisible, session.host, user.showemail, user.receivepm
FROM session
". iif($WOLguests, " LEFT JOIN user USING (userid) ", ",user") ."
WHERE session.lastactivity > $datecut
". iif(!$WOLguests, " AND session.userid = user.userid", "") ."
ORDER BY user.username
");

$moderators = $DB_site->query("SELECT DISTINCT userid FROM moderator");

exTracT
10-05-2002, 07:57 AM
this is the regular code, i stuck in your code right above line 622

Logician
10-05-2002, 08:21 AM
Originally posted by exTracT
this is the regular code, i stuck in your code right above line 622
I dont know what your problem is but I can say that there is nothing wrong with my code. Again:
1- make sure you dont use Opera to copy paste,
2- Make sure you use Notepad to insert the hack
3- Make sure you send the file as ASCII in your FTP program.

If you insert the code to the right place I mentioned it can not procude a "parse error".. Tested..