Tags:
create new tag
, view all tags

TodaysVisitorsPluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on TodaysVisitorsPlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on TodaysVisitorsPlugin

(feedback for shell version deleted).

It'd be nice to show visitors for a given date, both in absolute and relative ("-3" days) form.

-- MartinCleaver - 22 Nov 2004

    # go through the logfile and collect visitor names
    foreach( reverse split( /\n/, $logfile ) ) {
      @bar = split( /\|/ );
      if( ( ! %exclude ) || ( ! $exclude{ $bar[2] } ) ) {
        # strip off all days not today
        next unless sprintf( "%.2u ${tmon} %.2u", $mday, $year ) eq substr( $bar[1], 1, 11 );
        
        push @visitorList, $bar[2];
        $exclude{ $bar[2] } = "1";
      }
    }

the sprintf is invariant inside the loop - it would be faster to precalculate it.

-- MartinCleaver - 23 Nov 2004

I had started to convert this over to pure Perl, and then just before checking in, saw that it was already done. In my version, I have a "period=thismonth" that will produce a report on all people visiting in the current month. I had thought about being able to specify a more specific period, but haven't done it yet. I hope to roll in my changes soon; perhaps then I can take a look at MartinCleaver's suggestion. Unless, of course, someone beats me to it again. smile

-- DavidBright - 23 Nov 2004

I am sorry you wasted time David. I so hate wastage. Its a shame that the InterestedParties field is so utterly useless; all we need is a good subscription / email notification system that mailed people when topics changed.

-- MartinCleaver - 23 Nov 2004

If you are in the code David, can you make it count TWikiGuests from different IP addresses as different visitors? Many people visit as TWikiGuest and it is good to show these as separate visitors. Thanks.

Oh - and it would be nice to be able to recognise those IPs that definitely belong to certain spiders. For example:

Related is:

-- MartinCleaver - 24 Nov 2004

checked .zip into CVS

-- WillNorris - 19 Jul 2005

Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2005-07-19 - WillNorris
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.