News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Tracking User Activity

Started by Mike Bobbitt, May 24, 2005, 12:47:14 PM

Previous topic - Next topic

Mike Bobbitt

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 download the zip, unzip it, then 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.

[edited the install instructions to include that it needs to be unzipped first: Shadav]

Owdy

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

Thantos

Since you are including SSI.php anyways why not use
$scripturl instead of $forumurl
and
$db_prefix instead of $accounts_db_name

Mike Bobbitt

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? :)

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

Mike Bobbitt

Oh, lol...

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

Owdy

#6
[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]
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

Han

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.

Mike Bobbitt

It's not fancy, but I needed something to give me visibility into user actions. Glad you like it! :D

dustrho

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

Furvert

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.

Mike Bobbitt

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.

Furvert

Thanks, I thought it would be simple.
Now I just need to figure out where I want it ;)

Han

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 ??

Mike Bobbitt

No problem, give it a try now...


Cheers
Mike

Han

Thank you very much, Mike.
It Works again  :)

dustrho

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!

Mike Bobbitt

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

Han

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!!

Skhilled

Forgive me ignorance, but does "just drop it in" means in the smf root directory? You didn't specify which dir.

Advertisement: