Pepper: Download Counter

I happily installed Mint this weekend, and couldn’t resist tinkering with it’s Pepper plugin structure. The result is Download Counter, and addition which tracks file downloads linked from your site. I must say that, for the most part, I am impressed with the planning that has gone into Mint. Shaun did a great job.

Update 4/19/2007: Updated for Mint 2.0.

There were only a few places that I wished I had an extra hook, but in general, the Plugin interface is top-notch. Creating the install and preferences procedures was especially simple.

The plugin works by specifying a comma separated list of file extensions you wish to track on your site e.g. zip,pdf,mp3,mpg,jpg Mint will then automagically reforward the files through a download script to register their delivery, so you don’t need to touch any code whatsoever. It’s that easy. Downloads begin tracking immediately.

Limitations

There are a few limitations to this method, just like any other:;/p>

  • Files must be linked to from an a tag. The href must point directly to the file.
  • Files must be linked to from a page where Mint is activated.
  • If other sites link directly to your files, they will not be recorded. But that’s just lame anyway.

Installation

Installation is simple. Just follow these steps:

  1. Just download the files, unzip, and copy the orderedlist directory into your /mint/pepper folder. To clarify, the final file destinations should be in /mint/pepper/orderedlist/downloads/.
  2. Login to your Mint installation and in the Preferences click “Install” under Pepper.
  3. Click the Download Counter Pepper “Install” button. Click “Okay.”
  4. Now click on the Download Counter preferences under Pepper in the preferences pane.
  5. In the box, type a comma separated list of file extensions to track, eg. zip,pdf,mp3
  6. Click “Done.”

Help and Support

If you encounter problems, have questions, or come up with any suggestions, please contact me and I’ll do what I can to help.

If you feel so inclined, donations of any amount are always appreciated, and help keep me motivated to develop more feature-rich plugins and software. Thanks for your support, and enjoy.

Post and Author Info.

Published September 07, 2005 by:

This article is tagged with , , and .

Commenting is currently off for this post.
So far there are 23 comments.

23 comments

  1. Looks great! Can’t wait to try it! So glad to see Peppers are already coming out! :)

  2. You use the standard path mint. Can you change it to the user specific one? Thanks!

  3. Just what I was looking for! Thanks a ton!

  4. Yep, the path needs to be fixed, as it stands this doesn’t work for me b/c my mint folder is not in the root of my site. Shaun fixed this in 1.0.3 for the default pepper.

  5. Joerg and Scott: I believe I have the path issue fixed. Download the files again and upload over the current ones. Let me know if that works for you.

  6. Darn should have refreshed the page before I went in and fixed it myself ;)

    Not crazy about the long URL in the window status bar. May add something to change it so it doesn’t have the pepper info…

    thanks again!

  7. It works very well thank you. today I had some problem with the new version only, blank screen! :-(

  8. I have downloaded and installed your Pepper. Looks good, works good – Thank you!!

  9. Dude. You’re amazing. You win the first non-inman pepper award! :) Thanks for this. I love that people are already playing with pepper and find it easy enough to actually do. Maybe I’d do my own if I wasn’t such a noob. :)

  10. It doesn’t seem to respect the setting for number of items to show :(

  11. Is there a way to filter the statistics so I can see how many people downloaded within the last 24 hours?

  12. I’m having an issue with the Download Counter…

    http://haveamint.com/forum/viewtopic.php?id=253

    Any thoughts?

  13. I’d use that, but I don’t have any zips on my site for people to download.

  14. Windows support would be nice. Hopefully it will come soon :)

  15. It doesn’t adhere to the number of entries allowed for a list, like the other windows in Mint :(