Download Counter

Download Counter

על ידי Andrew Seears בתאריך
מספר תגובות: 4
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
ממוצע דרוגים: -
בתגובה ל: Andrew Seears

Re: Download Counter

על ידי Timothy Takemoto בתאריך
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
בתגובה ל: Andrew Seears

Re: Download Counter

על ידי Jon Bolton בתאריך
תמונה של Particularly helpful Moodlers תמונה של Testers
בתגובה ל: Jon Bolton

Re: Download Counter

על ידי Catalin Popescu בתאריך

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.

בתגובה ל: Catalin Popescu

Re: Download Counter

על ידי Davo Smith בתאריך
תמונה של Core developers תמונה של Particularly helpful Moodlers תמונה של Peer reviewers תמונה של Plugin developers

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.