Project

General

Profile

Actions

Feature #6039

open

File download statistics

Added by Gareth Sylvester-Bradley over 14 years ago. Updated about 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Plugin Request
Target version:
-
Start date:
2010-08-05
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

The "Files" tab includes a "D/L" column (which is an odd abbreviation...) that shows the number of downloads for each file.

For some projects, it would be useful to expand on this to be able to see the history of downloads (e.g. (graph of) number of downloads per day/week/month) and even information about who was downloading (e.g. user id for logged-in users similar to the history for wiki pages).

Is this something that would be possible already with a plug-in?

Actions #1

Updated by Felix Schäfer over 14 years ago

Gareth Sylvester-Bradley wrote:

Is this something that would be possible already with a plug-in?

If you write it, yes :-) I'm not aware of one that does that currently, nor do I think that such a feature should nor will make it into core.

Actions #2

Updated by Nick Peelman over 14 years ago

Wouldn't be hard to write/extend, just create a separate table to handle the data. But, you guys would need to provide some hooks in the Projects controller. I didn't find where you're actually tracking the download (i.e. where you're currently incrementing the counter), but chances are that would have to be wrapped using alias_method_chain or something as well, unless a more friendly way could be worked in...

Felix Schäfer wrote:

Gareth Sylvester-Bradley wrote:

Is this something that would be possible already with a plug-in?

If you write it, yes :-) I'm not aware of one that does that currently, nor do I think that such a feature should nor will make it into core.

Actions #3

Updated by Eric Davis over 14 years ago

  • Category set to Plugin Request

If you want to create a plugin for this functionality, I'd be happy to add any hooks you might need.

Actions #4

Updated by Felix Schäfer over 14 years ago

<rant>

Nick Peelman wrote:

I know I will sound like a grumpy old man, but please please refrain from top-posting.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

(I know the example is for e-mail, but it applies to virtually every threaded discussion).

Oh, and trimming down the quote so that it contains only the parts you are answering to and/or only the parts to understand your answer would be even greater, but I've grown to live without that…

</rant>

Actions #5

Updated by Nick Peelman over 14 years ago

sure. Will get right on that.

Felix Schäfer wrote:

<rant>

Nick Peelman wrote:

I know I will sound like a grumpy old man, but please please refrain from top-posting.

</rant>

Actions #6

Updated by Tao Lin about 12 years ago

Hi all,

I like the file download statistics feature as well. I don't need fancy graphic but just a table to list follow fields:

  1. Download Date & Time
  2. Download By User
  3. (Maybe) IP address

Cheers,

Actions

Also available in: Atom PDF