Download counter

Permalink
Hi, I have been using a download counter which adds a line to a log file, I then count the lines and return the number next to the file.

How do I do this in concrete as I can't seem to get my php code to work, it counts the rows but it wont add to the log file. Permissions are correct.

Thanks

Gary

 
Mnkras replied on at Permalink Reply
Mnkras
not really sure what you mean there,

this is just a guess,

$f = File::getByID($fileID)
$r = $f->getDownloadStatistics()
Fernandos replied on at Permalink Reply
Fernandos
you can use google analytics events to track downloads also.
tallacman replied on at Permalink Reply
tallacman
http://www.concrete5.org/marketplace/addons/downloads-list/

will let you specify downloadable files in sets and count the number of times they are downloaded. You can se it here:http://performancec5.com/reviews/downloads_list/...

Steve