I've moved! I've moved my online home to mikejolley.com, and thats where I'll be blogging primarily. This site will stay live for archive purposes :)

WordPress Download Monitor Plugin v1.6

March 10, 2007 | Published in: Wordpress & plugins | Tags: , , , , , 218

This plugin has now been replaced by an updated version which you can find here.


Wordpress Download Monitor PluginThe Download Monitor plugin has been updated with some tasty new features, and since I’m releasing this as a new version rather than a new build, also I decided to make it its own post.

Download Monitor is a plugin for uploading and managing downloads, tracking download hits, and displaying links. The download link on this page, and even the downloads in the website footer, are all powered by it.

Admin Screenshot:

Admin screenshot

Read more for more information, installation instructions, and of course, the download link in all its glory!

WordPress Download Monitor Plugin v1.6 Build 20070812

By Mike Jolley ( http://www.blue-anvil.com )

Index

What is it?

The whole idea to this plugin is to keep your website downloads organised, and provide means to monitor the amount of downloads a file has, along with an easy method of linking to those files using its own tags.

On installation, this plugin only uses 1 database table to store download information, uploaded downloads are stored in their own directory. Don’t want to upload? You can add links to existing downloads, and track them, also.

By adding a simple tag to a wordpress page you can show the link, with or without hits displayed.

Basic Documentation is shown in your wordpress control panel too, under Manage > Downloads.

I’d like to thank Mike Cherim at http://green-beast.com/ for part of this script and the idea.

Features

New Features

  • Re-upload files, handy for updating versions!
  • Change hits, just in case you change servers or import old downloads that already have stats
  • URL hider using mod_rewrite
  • Sorting and pagination of downloads in admin
  • New ‘image’ display mode (show a link like the download link image on this page!)

Older Features include:

  • Admin page for uploading/linking to downloads, and specifying information (title and version).
  • Records download hits.
  • Does not count downloads by wordpress admin users.
  • Template tags for showing popular, recent, and random downloads in your web site’s sidebar.
  • Post tags for outputting download links e.g [Download id not defined]
  • Drop-down menu in non-rich text wordpress editor for adding links.

Files In the zip

The following files are provided with the download:

  • wp-downloadMonitor/user_uploads — Directory for uploads. Must have 777 permissions (via CHMOD)
  • wp-downloadMonitor/index.php — Prevents snoops looking at the files…
  • wp-downloadMonitor/wp-downloadMonitor.php — Main plugin file
  • wp-downloadMonitor/download.php — Links to your downloads, recording the hit.
  • wp-downloadMonitor/css/wp-downloadMonitor.css — Admin interface styling.
  • wp-downloadMonitor/img — Admin images.
  • wp-downloadMonitor/upload_class — Upload class by Olaf Lederer.

Plugin History

  • 8th December 2007V1.6WP B20070812 -
    1. Bug fixes galore
  • 10th March 2007 – V1.5WP B20070310 -
    1. New version released!
    2. Insert box now shows on new posting- thanks Sheri!
    3. No issues known.
  • 8th March 2007 – V1.5WP B20070308 -
    1. Beta test.
    2. No issues known.
  • 12th Jan 2007 – V1.0WP B20070112 -
    1. First release
    2. No issues known.

So, what are you waiting for? Download it now!

| Index |

Get it now!

Download the Download Monitor Plugin - version 1.6 - Dec 2007

Downloaded a total of 70953 times

| Index |


Installation Instructions

Installation is fast and easy. The following steps will guide get you started:

  1. Unpack the *.zip file and extract the /wp-downloadMonitor/ folder and the files.
  2. Using an FTP program, upload the /wp-downloadMonitor/ folder to your WordPress plugins
    directory (Example: /wp-content/plugins).
  3. In the directory, /wp-downloadMonitor/, using FTP or your server admin panel,
    change the permission of the user_uploads directory to 777, or you will not be able to upload files.
  4. Open your WordPress Admin panel and go to the Plugins page (link on the
    top menu). Locate the “WordPress Download Monitor” plugin and
    click on the “Activate” link.
  5. Once activated, go to the Manage > Downloads.
  6. That’s it, you’re done. You can now add downloads.

| Index |

Tags

To show download links, use the following tags:

  1. Link/hits[Download id not defined] Output example: <a href="download.php?id=1" title="Version 1 downloaded 10 times">Download title (10)</a>
  2. Link w/o hits[Download id not defined] Output example: <a href="download.php?id=1" title="Version 1 downloaded 10 times">Download title</a>
  3. URL only[Download id not defined] Output example: download.php?id=1
  4. Hits only[Download id not defined] Output example: 10
  5. Link with image[Download id not defined] Output example: Download Download Monitor Version 3.x *note you can style this using the classes “dlimg” and “dlstat”!

There are a few other template tags to use in your wordpress templates. Replace ‘$no’ with the amount of downloads to show.

  1. Most downloaded<?php wp_dlm_show_downloads(1,$no); ?>
  2. Most recent<?php wp_dlm_show_downloads(2,$no); ?>
  3. Random<?php wp_dlm_show_downloads(3,$no); ?>

Licence

WordPress Download Monitor Plugin v1.6WP © Copyright 2007-current. All rights reserved.
Mike Jolley

You are free to use this application but may not redistribute it without written permission.
Use of this application will be at your own risk. No guarantees or warranties are made directly or implied.
The creators cannot and will not be liable or held accountable for damages, direct or consequential.

| Index |

Support my sweat, blood and tears

I know, that sounds gross, but we really did put ALOT of effort in to this plugin. If you like this plugin, or it has benefited you, please make a donation via paypal! Any amounts are welcome, your support is much appreciated.


| Index |

Found this post useful? Why not buy me a coffee!

Related Entries

218 Responses to “WordPress Download Monitor Plugin v1.6”

RSS feed for comments on this post.

  1. Matthew J says:

    Hello, can you please tell me how to post the download count in a loop for my single.php page rather than have to enter it in every post (it won’t work with my layout that way).

    Thanks in advance…

    Comment made on December 10, 2007 at 2:59 am

  2. tyl3r® says:

    I have wordpress 2.3.1, i installed the plugin and tested uploading files, the dropdown menu doesn’t appear on plain text editor, and if type manually [download#1][download#2]nothing happen, i view the same text i type.

    My theme parses with the_content()

    Any idea for what’s wrong?, sorry for my bad english ^^U.

    Thx

    Comment made on December 16, 2007 at 6:32 pm

  3. Jeremy Clark says:

    I really like your plugin, the newest version has a little bug. Not really a bug but V1.6 still shows as 1.5 it looks like you just forgot to edit the version number of the plugin file, I do it all the time with my themes. Thanks again.

    Comment made on December 20, 2007 at 5:55 pm

  4. Vicky says:

    Perhaps I’m just being stupid, but I can’t get this to work. I’ve uploaded a pdf file, then in a post I typed [download#1] but that’s what shows in the post, not a link to the file.

    Comment made on December 21, 2007 at 10:40 am

  5. Jason says:

    Love the plugin! I have to ask though, is there a way to paginate the list of downloads in the admin panel? The admin panel seems to have a max of 25 downloads with no way to view the next 25 (and so on). Keep up the good work!

    Comment made on December 29, 2007 at 10:46 pm

  6. Mike Jolley says:

    @Jason – Sure? It should paginate..and show pagination top right when you have too many downloads to show

    Comment made on December 29, 2007 at 10:59 pm

  7. Chris says:

    Hi there, there is a bug bug in this newest version, pagination top right of the admin panel is gone in 1.6

    I can’t see more than 25 downloads.

    Comment made on December 30, 2007 at 12:03 pm

  8. Jason says:

    @ Chris: Thanks for confirming that I’m not crazy. I got a little worried when Mike said it should be there…

    Comment made on January 7, 2008 at 5:03 am

  9. Mike Jolley says:

    Ill look into this; I also have some other small fixes to make…

    Comment made on January 7, 2008 at 7:41 pm

  10. Jason says:

    Thanks Mike – look forward to an update!

    Comment made on January 8, 2008 at 7:26 am

  11. Adam says:

    Highly anticipating an update, Mike. Good article :) !

    Comment made on January 15, 2008 at 4:59 am

  12. Shack Dougall says:

    Great Plugin! I’m upgrading from 1.5 to 1.6. 1.5 is working for me, but 1.6 is not updating the download counter. It redirects to the download fine, but the counter doesn’t increment.

    Could be something in my setup, but I thought I should report my experience. I’m running WP 2.3.2.

    Comment made on January 17, 2008 at 8:29 pm

  13. Jauhari says:

    My WordPress engine placed in different folder, example (main) and I try activated custom URL download and got this error
    —-
    Error 404 – Not Found
    —-

    What happen? and how to fix it?

    :(

    Comment made on January 20, 2008 at 3:20 am

  14. Kidino says:

    Hey, I think this is cool plugin. But I am reporting the same thing as Shack Douglas (comment 167). The download went fine but it’s not updating the counter. Got ideas?

    Comment made on January 20, 2008 at 5:07 pm

  15. Kidino says:

    This for Matthew asking about how to put the code in the theme files or in the single.php. Here’s what I did. First I use the Custom Fields to define the Download ID for my post. Then I use the code below somewhere in my single.php

    ID, “Download ID”, true)); ?>

    Comment made on January 20, 2008 at 5:11 pm

  16. Kidino says:

    Nevermind Mike. I discovered that your script does not count Admin download. That’s a good feature. I know that it works now. So Shack, don’t worry about it. Try logging out and downloading again.

    Comment made on January 20, 2008 at 5:17 pm

  17. Shack Dougall says:

    Yes! Thanks, Kidino! Yep, you’re right. It doesn’t count admin downloads. Good feature.

    Comment made on January 21, 2008 at 11:05 pm

  18. joseph says:

    Great plugin! One thing though, it is set up so that you can use a graphic for the download link, and i found the download.gif file. What I would LOVE to do is be able to have 2 different gifs to be able to choose from to use for this and be able to choose which to use by putting image1 or image2 in the tags or something like that. I am sure this is relatively easy but i am a programming css newb. If you could suggest how to do this that would be great! Thanks.

    Comment made on January 23, 2008 at 6:56 pm

  19. ophelia says:

    Hi there! good plugin! I have a question: why I can’t upload a winrar files? rar is my favourite!

    Comment made on January 24, 2008 at 9:44 pm

  20. Mike Jolley says:

    @ophelia – Look in the plugin file for a list of file types, just add RAR

    Comment made on January 24, 2008 at 11:14 pm

  21. Alex says:

    For a future update, would it be possible to include some way in the download edit screen to add custom attributes to each href link your plugin generates? For instance, when someone downloads a specific file off of my site, I’d like to be able to include an “onclick” attribute, so that I can track downloads via google analytics.

    Comment made on January 25, 2008 at 6:40 pm

  22. FM says:

    good plugin

    Comment made on January 25, 2008 at 6:50 pm

  23. Kyam says:

    Thank you for an awesome plugin. One question though, when I activate the url hider, and it becomes yoursite.com/download/id, the 404 error comes up. But it works fine when normal. What can I do to fix that?

    Comment made on January 30, 2008 at 4:28 am

  24. Mike Jolley says:

    @Alex – I don’t think that would be used much by the average user, so youll have to mod the plugin if you wanted that.

    @Kyam – Did you update htaccess/update permalink structure?

    Comment made on January 30, 2008 at 8:51 am

  25. ganes says:

    mike, is it possible to add “word verification” as an anti leeching?

    thanks for your greatwork

    Comment made on January 31, 2008 at 3:11 am

The comments are closed.

About this site

Blue Anvil is the online web design journal & portfolio of , a web designer from Norfolk, England. Read More »
MiniCard Theme for WordPress
  • Featured work - More

    • Beefjack
    • Integrity
    • theotaku.com
  • Latest Tweet - More

    • @pippinsplugins Thanks. We're rewriting all those queries anyway (queryposts uh oh)
  • Out of the blue - More

    • Download Monitor 3.3.5 Tagged for release

      The latest update to Download Monitor for WordPress has been released; this version comes with a many fixes and some new features, such as improved sorting. For full details view the readme; you can grab the plugin here.

    • Closing the Forums

      Just posting to let current users know that I’m closing the forum on Blue-Anvil. This is mainly due to spam-registrations getting out of hand and being a general nuisance. I will be posting good topics as FAQ items within posts if applicable.

      Please note that you can still post and get help for my plugins/themes by posting on the wordpress.org website.

    • Show off your MiniCard!

      Are you a user of the WordPress MiniCard theme? Its been downloaded over 14,000 times so far!

      If you have used it as-is, made your own child-theme or done something creative with it, please show off your MiniCard’s in the comments, I’d love to see how the theme is being used!

    • Spam Stopper updated for WordPress 3.0

      My Spam Stopper plugin has been updated for WordPress 3.0 (version 3.1.3) – you can grab it here. Sorry this update took longer than my other plugins but this one gets less lovin’ – if you want to change that feel free to donate, spread the word, or rate it on the WordPress.org plugin page.