Advertisement:

Author Topic: Tracking User Activity  (Read 285282 times)

Offline Anakin_holland

  • Jr. Member
  • **
  • Posts: 237
  • Gender: Male
  • universe malfunction, restart reality.sys ?
Re: Tracking User Activity
« Reply #40 on: September 25, 2005, 07:08:10 AM »
Just installed it on my board. Works a treat!

Thnx mike!

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Tracking User Activity
« Reply #41 on: September 25, 2005, 09:02:25 AM »
Yep, tested and confirmed on 1.1 RC1. :)

Offline Egg

  • Full Member
  • ***
  • Posts: 519
  • Gender: Male
  • Busahead
    • 200mph.org.uk
Re: Tracking User Activity
« Reply #42 on: September 25, 2005, 12:34:45 PM »
just the first package, or with the listed alterations added??

thanks

Offline Purplemadness

  • Semi-Newbie
  • *
  • Posts: 28
Re: Tracking User Activity
« Reply #43 on: September 25, 2005, 01:31:49 PM »
It's cool, works fine on 1.1 RC1
Keep up the good work ;)
Dutch power!

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Tracking User Activity
« Reply #44 on: September 25, 2005, 07:16:51 PM »
Egg, both the original script and the modifications will work on 1.1 RC1.

Offline Egg

  • Full Member
  • ***
  • Posts: 519
  • Gender: Male
  • Busahead
    • 200mph.org.uk
Re: Tracking User Activity
« Reply #45 on: September 26, 2005, 06:22:42 PM »
doesnt seem to like it

Code: [Select]
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /htdocs/200mph.org.uk/tracker.php on line 2

Parse error: parse error, unexpected T_STRING in /htdocs/200mph.org.uk/tracker.php on line 2

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Tracking User Activity
« Reply #46 on: September 27, 2005, 12:18:42 PM »
Line 2 eh... maybe one of the mods above broke it, or maybe it was FTP'd in as binary...?

Offline Egg

  • Full Member
  • ***
  • Posts: 519
  • Gender: Male
  • Busahead
    • 200mph.org.uk
Re: Tracking User Activity
« Reply #47 on: September 27, 2005, 04:25:36 PM »
I took the file from your first post. changed SSI path, and thats the output :(

tried reuploading in ASCII, no change. same error.

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Tracking User Activity
« Reply #48 on: September 27, 2005, 04:46:03 PM »
Ok, line 2 is the require('/var/www/html/forums/SSI.php'); statement, so can you double check the syntax is OK?

Offline Egg

  • Full Member
  • ***
  • Posts: 519
  • Gender: Male
  • Busahead
    • 200mph.org.uk
Re: Tracking User Activity
« Reply #49 on: September 28, 2005, 02:36:28 AM »
if the path to my SSI.php is

/htdocs/publicspace/90/200mph.net/smf

or

www.200mph.net/smf

what would the syntax be??

I think my lack of knowledge might be the cause  ::) ???

Offline Egg

  • Full Member
  • ***
  • Posts: 519
  • Gender: Male
  • Busahead
    • 200mph.org.uk
Re: Tracking User Activity
« Reply #50 on: September 28, 2005, 07:38:17 AM »
replaced it with

Code: [Select]
<?php

require(dirname(__FILE__) . &#39;/SSI.php&#39;);

?>

and it all works.

thank you!

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Tracking User Activity
« Reply #51 on: September 28, 2005, 07:59:16 AM »
Nice idea, then the files simply have to be in the same directory... no need to update the path. :)

webfangled

  • Guest
Re: Tracking User Activity
« Reply #52 on: October 21, 2005, 09:13:52 AM »
This should be included in the SMF release its very handy!

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Tracking User Activity
« Reply #53 on: October 21, 2005, 10:03:21 AM »
Thanks... just updated it. In a nut shell:

* Simpler install (if it's in the same dir as SSI.php no edits required, otherwise you can set the path).

* Current activity is shown in a more readable format.

* Small code cleanups.

Offline Saku

  • Jr. Member
  • **
  • Posts: 305
  • Gender: Male
Re: Tracking User Activity
« Reply #54 on: October 23, 2005, 12:27:50 AM »
thanks work like a charm!
i have a question, it's possible to track the members who have download attachements files and how much time??

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Tracking User Activity
« Reply #55 on: October 23, 2005, 08:02:38 AM »
You could check your web logs for that, but as far as I know SMF doesn't track attachment downloads...

Offline Nitro

  • Full Member
  • ***
  • Posts: 668
  • Gender: Male
  • Be Kind
    • The Novoa's
Re: Tracking User Activity
« Reply #56 on: October 24, 2005, 03:58:28 PM »
Good point.  I just changed it back to default so we're on the same page while troubleshooting.  No difference, though.  Is the code working on your end?

I had it set to "$isstaff=$context['allow_admin'];" which allows both my admin and 'semi-admin' member groups to access it.  It's now back to "$isstaff=$user_info['is_admin'];"

so this allow_admin actually works?
MPF Rocks!!!

Offline brooks

  • Newbie
  • *
  • Posts: 9
Re: Tracking User Activity
« Reply #57 on: October 26, 2005, 12:39:40 PM »
Quote
Fatal error: Call to undefined function: determineactions() in /home/thefound/public_html/tracker.php on line 157

any ideas why I'm getting this when the user is logged in?

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Tracking User Activity
« Reply #58 on: October 26, 2005, 12:46:55 PM »
What version of SMF are you using? I've tested with 1.1 RC1, but it may not work with other versions... Basically, Who.php in your Source directory must have a determineactions function... If not, just comment out line 157 in the script.

Offline brooks

  • Newbie
  • *
  • Posts: 9
Re: Tracking User Activity
« Reply #59 on: October 29, 2005, 03:03:47 PM »
1.0.5, and I'll do that, thanks :)