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)

subu1 05-05-2003 07:57 AM

hi very nice hack but i have a error in my global.php

Quote:

Warning: Unable to access ./admin/config.php in /home/virtual/site1/fst/var/www/html/board/admin/global.php on line 116
on Line 116 is:

require('./admin/config.php');

what can i do, just i don't have permission to ACP Control,too

subu1 05-05-2003 08:33 AM

ups, i must have forum/global.php, but now ich have this if i click on my link "No users found matching those criteria.
" ;)

ok i have 2.2.8 and on my ftp i gave tracelog 777

owc 05-15-2003 11:43 PM

Hi, I need your help MAN I downloaded the trace hack but I could not get the logs .. all I got was this table from the index.php


I have done every thing

I alted user table
1-`trace` SMALLINT( 5 ) UNSIGNED DEFAULT '0' NOT NULL
2- I created a dirctoy tracelog and and changed the mode t0 777
3-made the changes to global.php and admin/user.php
4-and the only thing I got when acess the tracelog dirctory is

Quote:

Filename Size Last Modified Last Accessed
. 4096 May 15, 2003, 18:09 May 15, 2003, 18:09
.. 4096 May 15, 2003, 16:44 May 15, 2003, 18:02
index.php 1082 May 15, 2003, 18:09 May 15, 2003, 18:09
when I type

forums/tracelog/username.log
I have this page is not found error


Can you help getting the user logs work with vb 2.3.0 becuse this hack would help me in a study I am condcuting .. thanks in advance

Zzed 05-15-2003 11:55 PM

I sent you a PM. ;)

gwhooooey 05-18-2003 04:07 PM

Execute the following query to create a new field in the user table:

alter table user add trace smallint(5) unsigned DEFAULT 0 NOT NULL;

I couldn't get that to work, any help?

zefman 05-25-2003 07:31 AM

Quote:

05-18-03 at 06:07 PM gwhooooey said this in Post #45
Execute the following query to create a new field in the user table:

alter table user add trace smallint(5) unsigned DEFAULT 0 NOT NULL;


I couldn't get that to work, any help?

hello !

try this

alter table `user` add `trace` smallint(5) unsigned DEFAULT "0" NOT NULL;

great hack thanks :)

gwhooooey 05-25-2003 09:51 AM

Thanks, that worked

paratek 06-02-2003 07:55 PM

I have one glitch. If i am adding a user manually from the admin CP, the trace user option is there for me to select. If i edit a current user to try and select this particular user to trace, the option isn't there.

Any ideas?

Zzed 06-02-2003 08:52 PM

You installed the hack in the wrong section. ;) The add user and edit user code look almost identical. ;)

The values for new users is set to 0 (No) by default.

Intex 06-03-2003 12:02 PM

Nice hack. Works great !

/me clicks install.

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. ;)

hagi 06-30-2003 03:46 AM

Hi. This hack was great. I installed it onto my live board pgamers.com . However I do have one question. Does this track clicks to the admin cp and mod cp also? Is it suppose to because so far it doesn't come up for me. If this isn't available can it please be inplemented :)

Zzed 06-30-2003 06:21 PM

Quote:

Yesterday at 09:46 PM hagi said this in Post #61
Hi. This hack was great. I installed it onto my live board pgamers.com . However I do have one question. Does this track clicks to the admin cp and mod cp also? Is it suppose to because so far it doesn't come up for me. If this isn't available can it please be inplemented :)
The hack traces user actions within the board itself and not the mod/admin CP. The Admin CP is already logged by the software for all admins.

af1 racing 08-18-2003 09:05 PM

Quote:

06-04-03 at 09:38 AM Intex said this in Post #57
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.
I second this. I need to trace guests on my board by IP. Any chance you can modify this hack to include this option?

Thanks

Mu5icMan 01-14-2004 12:41 PM

is it possible to trace who has clicked on an attachment, cause i've installed this hack but attachments aren't on the trace.

Alidar 01-29-2004 08:39 PM

I love the concept!!! Will install tonight after work (on lunch break).

Got a new user using nick "Guest" (thought it was locked out by vB, guess not) and starting to think the username/pass being shared by multiple peps to get around site security.

THANKS!!!!

Dennis01 09-09-2004 07:55 PM

Is something like this already availeble for vb3?

Imperial Fritz 12-03-2004 01:57 AM

I would like to know the same...

rh2004 12-04-2004 04:43 PM

Thanks :D for my one its great

Viks 03-11-2005 09:47 PM

Quote:

Originally Posted by Dennis01
Is something like this already availeble for vb3?

yeah i agree! it'd be a good idea

reverse1312 03-01-2006 07:59 PM

Is someone willing to release a 3.5 version for this useful hack ?

MikeWarner 03-09-2006 02:00 PM

Ditto - would like this for vb3.5 please. :)

berayiwu5 03-13-2006 01:52 PM

Yes, I am willing to donate as well. Please someone make this available.

Zzed 03-28-2006 08:01 AM

I'll look into porting this into a VB3.5 plugin. Feel free to send me a PM nudge if you don't hear from me in a while. :)

arcane1 08-27-2006 03:50 PM

Counting clicks?

Is there a way to modify this so that after a certain number of clicks on the board a user is diverted to a page or another event occurs?

Ignicoccus 08-28-2006 05:51 AM

Will there be a 3.5 / 3.6 Version of this mod ?

fxs158 09-01-2006 03:02 AM

absolutelly would love to have an update for 3.6

Quarterbore 10-03-2006 08:52 PM

I have a use for this as well now...

I would like to get data logged in a database table where I can tell it what to collect and when... for example, right now I am only interested in guests but other times I may be interested in groups (say staff) or individuals, or all members or all members and guests... or perhaps just bots...

I am going to code something for my immediate need but with 3.6 hooks this would be easy to use with 3.6!

fxs158 11-11-2006 01:37 AM

Update as plugin would be awsome!

bluesteel 12-12-2006 03:42 PM

Quote:

Originally Posted by fxs158 (Post 1065324)
absolutelly would love to have an update for 3.6

Me too!


All times are GMT. The time now is 04:19 AM.

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.01274 seconds
  • Memory Usage 1,809KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)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