Advertisement:

Author Topic: Tracking User Activity  (Read 225312 times)

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 572
    • Army.ca
Tracking User Activity
« on: May 24, 2005, 12:47:14 PM »
I've created a simple script to track recent user activity on SMF. It's nothing fancy, but if you want to find out what people have been up to (useful for keeping tabs on potential trouble) you may find this handy. You can download the files from here: http://army.ca/deleteme/tracker.zip

Installation is simple, just drop it in to your SMF directory (same one that contains SSI.php), then browse to tracker.php.

You can enter the username, display name or user ID# for a user to track. Due to the nature of the info provided, currently only forum admins are allowed to run the script.

I've included a couple screen shots to show the general functionality.


Cheers
Mike

Update: Now shows moderator actions as well.

Update [10 July 2009]: A new version for SMF 2 is now available at the above link.
« Last Edit: January 04, 2011, 08:49:53 AM by Mike Bobbitt »

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,538
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Tracking User Activity
« Reply #1 on: May 24, 2005, 12:56:39 PM »
Nice MOD!

What is function=doesnothing? :D
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline Thantos

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 16,139
  • Gender: Male
Re: Tracking User Activity
« Reply #2 on: May 24, 2005, 01:01:02 PM »
Since you are including SSI.php anyways why not use
$scripturl instead of $forumurl
and
$db_prefix instead of $accounts_db_name

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 572
    • Army.ca
Re: Tracking User Activity
« Reply #3 on: May 24, 2005, 01:17:38 PM »
Mike, that's a great idea... can't believe I missed it! Script and instructions have been updated, thanks!

Owdy: I can't find a "doesnothing" reference in the code... did I miss something? :)

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,538
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Tracking User Activity
« Reply #4 on: May 24, 2005, 01:25:04 PM »
Look your attachment ;)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 572
    • Army.ca
Re: Tracking User Activity
« Reply #5 on: May 24, 2005, 01:26:00 PM »
Oh, lol...

Well, that works as designed of course... and does nothing! ;)

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,538
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Tracking User Activity
« Reply #6 on: May 24, 2005, 01:27:44 PM »
[offtopic]
What an great function! ;D Are you going to release that mod also? ;)  :D

edit: too late, its released in here allready: http://www.simplemachines.org/community/index.php?function=doesnothing

[/offtopic]
« Last Edit: May 24, 2005, 01:33:38 PM by Owdy »
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline Han

  • Full Member
  • ***
  • Posts: 510
  • Gender: Female
    • PC-Navigator Forum
Re: Tracking User Activity
« Reply #7 on: May 31, 2005, 11:39:58 AM »
What a great function, and so easy to install. Tnx for sharing !!
This ought to be a standard tool in a future release of SMS.

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 572
    • Army.ca
Re: Tracking User Activity
« Reply #8 on: May 31, 2005, 11:47:10 AM »
It's not fancy, but I needed something to give me visibility into user actions. Glad you like it! :D

Offline dustrho

  • Jr. Member
  • **
  • Posts: 132
  • Gender: Male
Re: Tracking User Activity
« Reply #9 on: May 31, 2005, 03:58:53 PM »
If I may say so, what a kick ass tool!  This is just what I was looking for, and you already made this!  Thanks!!!   :D

Offline Furvert

  • Semi-Newbie
  • *
  • Posts: 81
  • Gender: Male
    • A Tribute To Minerva Mink
Re: Tracking User Activity
« Reply #10 on: June 16, 2005, 12:21:57 AM »
I like this function, can it be easily linked into the current user/IP tracker?
So that you can just click on the user name to invoke it instead of using the tracker.php directly.
Of course this should be a admin/mod only function.

I am a newbie with this code set so am somewhat afraid to tinker much so far, but I would suspect this is a simple edit of one file.

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 572
    • Army.ca
Re: Tracking User Activity
« Reply #11 on: June 16, 2005, 08:30:44 AM »
Yeah, that would be pretty easy. You can invoke it for a specific user like this:

http://server.com/tracker.php?function=track;u=[uid]

So all it would take is just adding that URL with the user's ID in the URL, wherever you want to invoke it.

Offline Furvert

  • Semi-Newbie
  • *
  • Posts: 81
  • Gender: Male
    • A Tribute To Minerva Mink
Re: Tracking User Activity
« Reply #12 on: June 16, 2005, 01:28:25 PM »
Thanks, I thought it would be simple.
Now I just need to figure out where I want it ;)

Offline Han

  • Full Member
  • ***
  • Posts: 510
  • Gender: Female
    • PC-Navigator Forum
Re: Tracking User Activity
« Reply #13 on: July 07, 2005, 07:38:32 AM »
Unfortinately this function does not work anymore in SMF 1.1 Beta 3
It gives me an error and says "Hacking attempt...".  :(

Can it be altered so that it wil work again in SMF 1.1 Beta 3 ??

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 572
    • Army.ca
Re: Tracking User Activity
« Reply #14 on: July 07, 2005, 07:46:54 AM »
No problem, give it a try now...


Cheers
Mike

Offline Han

  • Full Member
  • ***
  • Posts: 510
  • Gender: Female
    • PC-Navigator Forum
Re: Tracking User Activity
« Reply #15 on: July 10, 2005, 10:09:30 PM »
Thank you very much, Mike.
It Works again  :)

Offline dustrho

  • Jr. Member
  • **
  • Posts: 132
  • Gender: Male
Re: Tracking User Activity
« Reply #16 on: July 22, 2005, 09:25:20 AM »
I have to reply to this thread again, and just tell you that it is one of the best features an Admin could possibly use for your own forums.  I've used it in a number of occasions now, and I must say that it's great knowing what people are doing (lurkers and spies, oh my!).  Thanks for making this script!

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 572
    • Army.ca
Re: Tracking User Activity
« Reply #17 on: July 22, 2005, 09:45:38 AM »
Thanks Chris, I'm glad you've found it useful. It seemed logical that admins might want to know this type of thing and since the info is already there it was pretty easy to thow together.


Cheers
Mike

Offline Han

  • Full Member
  • ***
  • Posts: 510
  • Gender: Female
    • PC-Navigator Forum
Re: Tracking User Activity
« Reply #18 on: July 25, 2005, 06:30:10 PM »
It comes in handy in all occasions when the admin needs to know if a user has read a certain topic.
I'm very pleased with it!!

Offline Skhilled

  • Full Member
  • ***
  • Posts: 484
  • Gender: Male
  • Logo Off Admin
Re: Tracking User Activity
« Reply #19 on: August 20, 2005, 03:15:51 AM »
Forgive me ignorance, but does "just drop it in" means in the smf root directory? You didn't specify which dir.