I'm trying to figure out how to implement a download counter in Moodle. I see one implemented on the Moodle download page at: http://download.moodle.org/, but for the life of me, I can't figure out how they did that.
Does anyone know how that was done or how to implement a download counter in Moodle?
Andrew Sears
andrew@techmission.org
The moodle download page uses, I think, some custom php and mysql. You really need both because the script will have to remember the number of downloads and save that data somewhere.
Alternatively if you sign up for a free site counter - which provides the database and the php for you, you only provide a javascript link - then these can be used as a download counter as described here.
http://forum.statcounter.com/phpBB2/viewtopic.php?t=6122
Alternatively if you sign up for a free site counter - which provides the database and the php for you, you only provide a javascript link - then these can be used as a download counter as described here.
http://forum.statcounter.com/phpBB2/viewtopic.php?t=6122
Andrew, have a look at http://www.mikeleigh.com/dev/downloadcounter/index.php
Any news on this "File download counter" plugin?
This is a pretty old thread, but I see no more recent reference on this issue, and it seems a pretty important issue.
Also, are files normally accessible by direct linking in Moodle? This should not be the case, because then anyone -even not subscribed to the courses- could download them.
Do you have an example of a file on your site that is available by directly linking to it without logging in?
If so, please file a security bug at tracker.moodle.org
If you're just asking the question, without having tried it, then the answer is: no. All files are checked for access permissions before they are served.