vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Trace and log user actions... (https://vborg.vbsupport.ru/showthread.php?t=52300)

WEForums 06-03-2003 12:41 PM

Is it possible (I am almost positive it is) to track individual users selected by admins? I ask this because currently WEForums has 23,000+ members so it isn't exactly something I'd want to install. Additionally, hundreds sign up per day.

So how hard would it be?

Intex 06-03-2003 01:16 PM

WEForums - by default nobody is traced. You select the users you want to trace in the AdminCP.

cYbercOsmOnauT 06-04-2003 12:17 AM

Nice one!
/me clicks on install.

Sad that there is no function to show the logs via ACP. Anyways nice security hack!

WEForums 06-04-2003 06:16 AM

Thanks, Intex.

I have installed this now...and while everything works...there is one exception. Once I clicked the "Show all traced users" log, I get ALL usernames who have registered. Sure, may not be a problem, you think...but considering it just froze up my PC because it was loading 23,100+ names...I don't think it's very good.

Showing records 1 to 23169 of 23169. Click username to view forum profile.

Strange though...anyone else having this problem? I don't think I did anything wrong, but I will check again...

Intex 06-04-2003 07:02 AM

I'm personally not experiencing that particular problem, but then again I've got nowhere near that many members :).

WEForums 06-04-2003 07:10 AM

Nope. Followed instructions perfectly.

Perhaps it is to do with the miserable hack or the country hack. I noticed in the DB query part there is two hacks there. Perhaps those are it?

Intex 06-04-2003 07:38 AM

ZZed - is there any way you can include guests in the trace logs? The reason I ask is because I want to keep an eye on actions taken by people who aren't registered yet.

WEForums 06-04-2003 08:35 AM

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.

quinte 06-28-2003 12:44 PM

A lovely hack -

ALAS.....
Allthough everything seems to be intact - for one or other reason when editing a user's profile in the adminCP (tick the option to trace) - it will not save.

Clicking on the 'list users who are being traced' likewise indicates that there are none!

Any help on this problem will be appreciated - as it is a very useful hack indeed!

(Using VB 2.2.9)

Zzed 06-28-2003 05:08 PM

Quote:

Today at 06:44 AM quinte said this in Post #59
A lovely hack -

ALAS.....
Allthough everything seems to be intact - for one or other reason when editing a user's profile in the adminCP (tick the option to trace) - it will not save.

Clicking on the 'list users who are being traced' likewise indicates that there are none!

Any help on this problem will be appreciated - as it is a very useful hack indeed!

(Using VB 2.2.9)

check your PM's. ;)


All times are GMT. The time now is 11:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01121 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete