download_count
This module increments a download counter each time an attached file is successfully downloaded. Each file has its counter. Note : the module only works when Drupal's download method is set to private.
The module also logs a descriptive message to admin » logs, under type 'download', when a file is either successfully downloaded or when someone (usually a robot) attempts to download a file but is denied access to that file ('file x has been downloaded', 'Failed to download file x'). Browsing through the logs, the administrator can see who downloaded what file and from which 'referal' page.
A page can be accessed where a table lists all downloaded files with their download count. The table provides this information:
- filename
- download count
- last time the file was downloaded in the form 'x days y min ago'
- a link to view the node where the file is attached
Download statistics can be viewed in the node as well.
Roles can be given access to the 'Download center' where they can view the download count 1- for each file that was ever downloaded (since module installation) OR 2- for files attached to nodes they authored. The same access control granularity applies for viewing download count in nodes.
The module keeps track of downloaded files that are attached to nodes as 'file attachments'.
NOTES
The module only works when Drupal's download method is set to private. Using the public method, files are downloaded using HTTP, so Drupal is not aware of them being downloaded. Check your download settings in admin » settings under "File system settings" (in Drupal 5 that is "File System").
UPDATES
February 21th, 2007 : I added file type exclusion. These file types can be specified on the administrator settings page for that module. Reason : This module considers files that have been uploaded with the upload module and that become file attachments. If you are using a contributed module to upload images and display them in the body of nodes, these files may get flagged as downloaded whenever a visitor or robot views the node page, because strictly speaking they are file attachments. This will happen with the module img_assist. Note that this won't happen with the module imce, because imce treats inline images as nodes. If you do not want to set a download counter for image files, list their extension on the admin page. You can exclude any file type by providing its extension.
Caroline
11 heavens
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.1 | 2008-May-05 | 11.2 KB | Download · Release notes | Recommended for 6.x | |
| 5.x-1.0 | 2008-Mar-22 | 10.9 KB | Download · Release notes | Recommended for 5.x | |
| 4.7.x-1.0 | 2008-Mar-22 | 9.06 KB | Download · Release notes | Recommended for 4.7.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.x-dev | 2008-May-11 | 11.24 KB | Download · Release notes | Development snapshot | |
| 5.x-1.x-dev | 2007-Dec-30 | 10.9 KB | Download · Release notes | Development snapshot | |
| 4.7.x-1.x-dev | 2007-Apr-27 | 9.06 KB | Download · Release notes | Development snapshot | |
