bugDrupal Forge - Bugs: bug #14650, Enable download statistics

 
 

bug #14650: Enable download statistics

Submitter:  Ricardo Gladwell <axon>
Submitted:  Mon 26 Sep 2005 01:23:13 PM UTC
   
 
Category:  Project Module Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Releases
Status:  None Assigned to:  None
Open/Closed:  Open Release:  * cvs
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 26 Sep 2005 01:23:13 PM UTC, original submission:  

Download statistics are a frequently requested functionality. It would be easy enough to implement in a way parallel to what's done in the weblinks module, where a download link doesn't point directly to the file. This would require:

  • add a field to the project_releases table, e.g.


<code>ALTER TABLE project_releases ADD download int(10) unsigned NOT NULL default '0';</code>

  • change download links to point to a callback that first increments a counter and then redirects to the file.


Thoughts about this approach? If no problems are seen, I'll code a patch.

Copied from http://drupal.org/node/32124.

Ricardo Gladwell <axon>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code