News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Tracking User Activity

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

Previous topic - Next topic

Jessikard

Quote from: madman71 on August 19, 2008, 01:40:30 PM
That's the one that i used.  Just DL it and drop it in :)
do you have timestamps in this script ?

madman71

If i recall correctly, no, i dont.  I think SMF updated something that disabled this part of the mod.  The reason is somewhere in this thread.

you might be interested in this mod http://custom.simplemachines.org/mods/index.php?mod=1300

It's a integrated into SMF unlike this one.

Jessikard

 :o oh, i try to install this mod - thx  ;)

bros

CAn someone make this work on SMF 2.0?

Haffina

Quote from: bros on September 30, 2008, 11:25:15 PM
CAn someone make this work on SMF 2.0?
Yeah..we'd like that too :)
I aim to please.
I usually aim to please myself, but you never know, you might get lucky!

Kreator

Hah I tried this today... dropped it in my forum and when I browsed to it got the
following :


ERROR: You are not Army.ca Staff.

whatever that is!

HR

Now.. if we could skin this and work it in then Id be in pure bliss

I can explain this as simply as possible.. If I do it & implement I guarantee it.
If I do it and you implement it its a crap shoot.

rootkid

Great mod, thanks!

I changed it a bit to show my registered users what the admin user is doing.
I tried to upload my version and a patch file but was either too stupid to find a file upload button or simply don't have the rights to do it.

Nevertheless, if someone's interested, contact me and i'll mail you the files.

best regards,
Heiner


ellion

thank you so much this is a brilliant idea.

i recenlty had one user that registered three acounts and was setting up one particular thread for spamming links to his viagra site. using this i might have sussed him out earlier.

thanks again

Mike Bobbitt

#229
All,

Sorry for the delay, I've finally built a version for SMF 2. It looks like attach permissions have been removed from this board, but I've put the new script up here for now:

http://army.ca/deleteme/tracker.zip

If this link stops working, contact me. :)


Thanks for your patience!
Mike

JeremyB.

This is pretty cool thanks.

-JB
"The most overlooked advantage to owning a computer is that if they foul up, there's no law against whacking them around a little."

Powerbob




My SMF 2.1 Beta test site; http://www.pplb.net/smf21/index.php

Tones

#232
I've made some changes to the tracker myself to include a few things i needed for what i'm using it for.  But i'm a tard and didnt save the message i sent to Mike with the changes, so i'm just attaching my file. For smf 1.1.10

Additional code to display the primary groups of those added to the watch list, I've also added time stamps and edit the existing code to work with that, and html to skin it which  will use the images from your forum template.

With this version though note i've limited the number of topics displayed to 50, with large communities we'd just end up with a mile long list but you can change this. And i'll include a small change you can make to the profile.php page to link the tracker through the track user link there.

Run these queries in phpmyadmin to add the logtime fields to the database tables we call the info from. Change the database prefix if yours differs.

ALTER TABLE `smf_log_boards` ADD `logTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE `smf_log_topics` ADD `logTime` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;



open the tracker.php file

On line 8 find

if (preg_match("/yoursite.com$/i", $_SERVER["HTTP_HOST"])) {

Replace yoursite.com [nofollow] with your domain

For the edit to link the tracker to the users profile

Open Sources/profile.php
find

$context['profile_areas']['info']['areas']['trackUser'] = '<a href="' . $scripturl . '?action=profile;u=' . $memID . ';sa=trackUser">' . $txt['trackUser'] . '</a>';


Replace with

$context['profile_areas']['info']['areas']['trackUser'] = '<a href="./tracker.php?function=track;u=' . $memID . '">' . $txt['trackUser'] . '</a>';


I think i remembered everything.

download link to be updated


Mike Bobbitt

Fantastic, thanks for the great work Tones!

Blinker

#234
Tones, when I try and run those queries on my db, I get this error:

#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP'

I assume I can't use your version of the tracker without being able to alter my db unless I remove all references to the timestamps, correct?

Using 1.1.10 and MySQL Server version: 4.0.27-max-log

Mike Bobbitt

Blinker,

You'd have to be able to run the 2 ALTER TABLE commands near the top of Tones' post in order for his code changes to work.


Cheers
Mike

Tones


mandukar

does this have the ability to see who moved what thread where?

Tones

#238
Quote from: mandukar on September 16, 2009, 06:09:01 PM
does this have the ability to see who moved what thread where?

It appears to show what topic was moved by who on what i'm using, i didnt change anything drastic of what Mike had already done, so any of the versions on the thread will do. Ensure  log moderation actions is checked under the features and options in the admin panel.

Blinker

Quote from: Mike Bobbitt on September 16, 2009, 10:31:20 AMYou'd have to be able to run the 2 ALTER TABLE commands near the top of Tones' post in order for his code changes to work.

Yeah I figured that, it changes too much code from yours. I compared them beforehand to see what he changed. I've reverted back to yours until I can get this sorted.

Quote from: Tones on September 16, 2009, 06:00:18 PMRun them individually

I did.

I went into PMA, selected my db, clicked on SQL, pasted the first query only into the box and clicked go. Then I got that error.

Same thing happened with the second one.

Any ideas?

Advertisement: