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
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
you can use google analytics events to track downloads also.
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
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
this is just a guess,
$f = File::getByID($fileID)
$r = $f->getDownloadStatistics()