I fixed my problem.
I was tampering with the code and this seems to work. (Although not sure about the userid = part. Guess it stays blank...)
Code:
if($bbuserinfo['usergroupid']==1) {
if ($handle = fopen("tracelog/Guest.log", 'a')) {
$location=$DB_site->query_first("select location from session where userid = $bbuserinfo[userid] order by lastactivity
desc limit 1;");
$ztime = strftime("%Y-%m-%d %H:%M:%S", time());
$data = sprintf("%s, %-15s, %-19s, %s\n", Guest, $REMOTE_ADDR, $ztime, $location[location]);
fwrite($handle, $data);
fclose($handle);
}
}
Put that above
Code:
if($bbuserinfo[trace] == 1) {
I am going to assume tracking an entire group would be just like the above, right? Then just replace Guest with whatever name... Perhaps useful for tracking a group you are nearly going to ban.