WordPress Download Monitor Plugin 2

This plugin has now been replaced by an updated version which you can find here. This version is good for wordpress versions below 2.5 and can be obtained here.


Wordpress Download Monitor PluginIt’s here! The new improved download monitor plugin for wordpress is ready for use, and ready for wordpress 2.5 which is set to be released soon. This new version, aside form the wordpress 2.5 support, contains many bug fixes and is now much more efficient.

Download Monitor is a plugin for uploading and managing downloads, tracking download hits, and displaying links. Version 1 had a total of over 6000 downloads, lets hope this new release proves just as popular. Read more for the download link, the list of fixes, and usage/upgrade instructions.

WordPress Download Monitor Plugin

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

Index

About the plugin

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 special 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.

For usage instructions see this page or the admin page after installing the plugin (Manage > Downloads).

Admin Admin

Features

  • New – WP2.7 Support
  • New – Editor button – upload and add a download stright from a post.
  • New – Custom redirects.
  • New – Custom download image.
  • New – Localised files include redirects.
  • New – Added support to add downloads to text widgets
  • New – Mirror support (selected at random)
  • New – Mirror deadlink checker
  • Custom Field support.
  • Download Categories.
  • Member only downloads.
  • Localization support.
  • Fixed – Sorting and pagination of downloads in admin.
  • 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.
  • Image display mode (show a link like the download link image on this page!).
  • 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.

Change log

You can track changes to the plugin in the wordpress plugin SVN.

Get it now!

You can get the latest version from the wordpress plugin database; Download it here!

Localization files

Need it in a different language? Some users have been kind enough to provide some translation files.

First time installation instructions

Latest instruction are found in the wordpress plugin database; here.

Upgrade instructions

Latest instruction are found in the wordpress plugin database; here.

Tags/usage

Usage instructions can be found here.

Licence

WordPress Download Monitor Plugin v2 © Copyright 2008-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.

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.

P.s. This plugin uses the awesome upload script found at finalwebsites!

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

Related Entries

483 Responses to “WordPress Download Monitor Plugin 2”

RSS feed for comments on this post.

  1. Marco says:

    Mike, are you there ;) ?

    Getting a bit desperate by now : every file with the extension “.ipa” turns into “.zip” and I can’t find out why.
    Every other extension (so far) works and stays the same.

    Can you (or someone else) help me out here ?

    Regards,

    Marco

    ReplyReply

    Comment made on January 30, 2009 at 9:01 am

  2. Marco says:

    Sorry for the many posts about this, but I have a solution (for me) that works:

    added a line to the .htaccess file in the uploads-directory :

    AddType application/x-httpd-zip ipa

    ReplyReply

    Comment made on January 30, 2009 at 9:25 am

  3. Mentality says:

    How can I change the file upload limit?

    ReplyReply

    Comment made on January 31, 2009 at 5:52 pm

  4. Liri says:

    Mike, thank you for the plugin.
    I translate plugin to russian language. Translation is published in my blog: http://blog.liri-site.ru/portfolio/wordpress-download-monitor

    ReplyReply

    Comment made on February 3, 2009 at 12:09 pm

  5. Dave says:

    Apparently I have a hole in my steps… I’ve installed this plug in and I’ve loaded files for download… I can use the down arrow to add a download to a post. But when I publish the post, it simply has an inactive file name in the post… no links of hyper text. Clearly I’m missing something – probably something obvious or easy… can someone clue me in?

    TIA!

    ReplyReply

    Comment made on February 3, 2009 at 4:05 pm

  6. Anthony says:

    Hey Mike, I also have been getting the “invalid Add method, go back.” error when trying to upload a zip file. it is larger than the default upload size, but I have changed both the php.ini and the max_upload script in the plugin. I’ve tried both uploading to a category, sub-category, and no category, but nothing helps.
    Thanks for your help,
    Anthony

    ReplyReply

    Comment made on February 4, 2009 at 3:22 am

  7. Oleg Medinskiy says:

    Hi Mike.

    I posted Russian translation of your plugin here:
    http://www.wpbloging.com/2009/02/russkij-download-monitor-i-ego-opisanie.html

    Hope you will add it to “Localization files” and Description on WordPress site chapter page :)

    ReplyReply

    Comment made on February 6, 2009 at 5:27 pm

  8. quaker says:

    i made a widget for my site http://nalan.org

    here is the code i used.
    it is very cude but works for me.
    just place it at the end of the functions.php right be for the closing ?> tag.
    i added the code to my functions.php inside my theme.

    function widget_download_register() {

    function widget_download($args) {

    extract($args);

    ?>

    Recent Downloads

    <?php

    }

    register_sidebar_widget('Downloads',

    'widget_download');

    register_sidebar_widget('Download','widget_download');}

    add_action('init', widget_download_register);

    ReplyReply

    Comment made on February 7, 2009 at 6:59 pm

  9. Dean Williams says:

    Is there a way to change the default path for where downloads are stored?

    ReplyReply

    Comment made on February 7, 2009 at 10:31 pm

  10. Matthias says:

    Hi there!

    I have the same problem with uploading files. I get an error saying “Invalid Add method, go back.”

    I have increased upload limits in php.ini and wp-download_monitor.php, but I still get the error.

    Any idea what could be wrong?

    ReplyReply

    Comment made on February 9, 2009 at 9:02 pm

  11. J says:

    I get this error when trying to show all downloads from one category!

    Fatal error: Cannot redeclare wp_dlm_get_sub_cats()

    ReplyReply

    Comment made on February 10, 2009 at 2:34 am

  12. Mark says:

    I think I am not seeing the forest for the trees….

    After successful installation of the plugin I created a
    Custom Output Format:
    {title} ({size}, {hits} downloads), version: {version}

    When I use the “default” format [download#1] within my posts, a link is shown with the title of the file and the hit counter. However when insert my custom format via the arrow-down symbol in the editor, the [download#1#format=1] is not creating a HREF link to click on. Instead it simply displays the contents of the variables.

    What am i doing wrong?

    Using: WordPress 2.7

    ReplyReply

    Comment made on February 17, 2009 at 7:03 am

  13. Machun says:

    How to remove the download link image border to 0

    ReplyReply

    Comment made on February 18, 2009 at 1:07 am

  14. Jay says:

    I think this is a great plug-in, but I do have one question. Do you or anyone else know how to show the “top downloads” as a widget? I would like to give this information on my website.

    Thanks!
    Jay

    ReplyReply

    Comment made on February 18, 2009 at 5:55 pm

  15. nick says:

    not sure if this has already been addressed, but if you modify the Custom Download URL to download/ as your example is, and then update your .htaccess as instructed, and say you have 8 files uploaded. if a person noticed in their browser status bar that the complete URL is now:
    http://domain.com/download/file-name.zip
    and for whatever reason decide to see all files in that directory, so type
    http://domain.com/download/
    into their browser, they will be automatically prompted to download the last file uploaded.

    I understand the htaccess rewrite, and the folder doesn’t ACTUALLY exist. I’m just pointing this out. Even if you create a folder and put a index file in there, it won’t read in a browser, always prompts to the last file uploaded. Not a proper bug, just a nuance of the plugin.

    cheers.

    ReplyReply

    Comment made on February 19, 2009 at 9:55 am

  16. Pinky says:

    @ Machun: Yes! That’s been driving me crazy as well, however I’ve recently changed the theme for my blog so I’m not sure if it’s the theme or plugin and I’ve given up for now after having scoured the stylesheet. The border is around the download image in Firefox but using Chrome, it’s an border around the whole page. Can’t figure it out and have given up for the moment.

    @ Jay: First you need to be using a theme that is widget-enabled, then download and install the following plugin:
    http://wordpress.org/extend/plugins/php-code-widget/
    Activate it then input the necessary php code to show the top downloads as detailed in Downloads Monitor plugin admin page. That’s worked fine for me on my blog and you can configure the code to display the top 3, 5, 10 or whatever number you desire.

    Mike – any idea re: my earlier comment (#451) about showing the downloads in any particular category in descending order as the previous fix I did no longer seems to work? Thanks.

    ReplyReply

    Comment made on February 19, 2009 at 10:33 am

  17. Mike Jolley says:

    @Amine27: Fix is to just add .gz as the extension.

    ReplyReply

    Comment made on February 21, 2009 at 5:10 pm

  18. Vincent says:

    How could i show downloads in a ascending (newest on top) order on my page when I use [download_cat#id]?

    Thanks,
    Vin

    ReplyReply

    Comment made on February 22, 2009 at 6:02 pm

  19. Vincent says:

    already done it:)

    @ wp_download_monitor.php line 640, after:
    // Get downloads for category and sub-categories
    $query ="SELECT * FROM $wp_dlm_db WHERE category_id IN (".implode(',',$the_cats).") ORDER BY 'title'";
    $downloads = $wpdb->get_results($query);

    add:
    //reverse order
    rsort($downloads);

    ReplyReply

    Comment made on February 22, 2009 at 6:16 pm

  20. Patrick says:

    Did you ever add a function to display the Top X (5 or 10) downloads? I like the “top download” feature but it could be more useful if it showed the top ten.

    Thanks, great plugin.

    ReplyReply

    Comment made on February 24, 2009 at 4:16 am

  21. c0d3r says:

    Hello,
    Great application ! But there is something missing I would find very usefull : I want to keep track of who is downloading files from the website.

    So I have made the following changes to the download monitor code on my personal website :
    1. I added a new table ‘dlstats’ that contains the following fields :
    uniqueid (bigint, auto increment) (index)
    downloadid (int)
    userid (bigint)
    dldate (date), allow null
    dltime (time), allow null
    ip (tinytext), allow null

    2. In download.php, right before the “Link to download” is returned to the client browser, I have added the following code :

    $timestamp = current_time(‘timestamp’);
    $vdate = gmdate(“Ymd”, $timestamp);
    $vtime = gmdate(“H:i:s”, $timestamp;
    $ipAddress = $_SERVER['REMOTE_ADDR'];
    $dlid=$d->id;
    $table_name = $wpdb->prefix . ‘dlstats’;
    $query_statsupdate = “INSERT INTO ” . $table_name . ” (downloadid,userid,dldate,dltime,ip) values (‘”.mysql_real_escape_string($dlid).”‘,’$user_ID’,'$vdate’,'$vtime’,'”.mysql_real_escape_string($ipAddress) . “‘)”;
    $wpdb->query($query_statsupdate);

    Would it be a big problem to put this in the production code
    (so basically add the table and code to save downloads to the table)
    At this point, I’m still using a custom query to find who has downloaded which file, but it should not be a big problem to build some code/widget to look at the download details

    thanks

    ReplyReply

    Comment made on February 24, 2009 at 8:50 am

  22. musky00 says:

    Hi Mike,

    I have a little problem with the date of the files uploaded with the plugin. If the date of the file is “2009 february 20th”, all is right. But if this date is “today” or “yesterday”, then the date of the upload in the database is 1970 january 1rst. Is there something to do to correct this?

    Thank you very much for your work and the support.

    ReplyReply

    Comment made on February 24, 2009 at 1:57 pm

  23. Mike Jolley says:

    @musky00: It only captures post date so Im not sure what your getting at…?

    ReplyReply

    Comment made on February 24, 2009 at 2:04 pm

  24. musky00 says:

    OK Mike, I will try to make some screenshots to show you what happens… as soon as my blog will be online (shame on the hosting provider!). Thanks for your answer.

    ReplyReply

    Comment made on February 24, 2009 at 7:03 pm

  25. Mike Jolley says:

    @c0d3r: Hmm I don’t know how many people would use it – nice work customising it for yourself though!

    At the moment I’m working on a version to track daily downloads so if I did add this it wouldn’t be in this round of updates.

    ReplyReply

    Comment made on February 24, 2009 at 7:30 pm

Leave a Reply

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

    • RT @jameskoster: Free MacBook Pro vector; http://www.potatoestomatoes.co.uk/technical/free-macbook-pro-vector/ #vector #resource
  • Out of the blue - More

    • 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.

    • SexyBookmarks & Tr.im

      Just a notice to users of the brilliant http://www.sexybookmarks.net/ plugin by shareaholic – If you use tr.im (as I have on a few client sites) be aware tr.im has ceased operation so you may see errors on your blog or in your source code; it screwed up the background and headings on one of my blogs.

      To fix, go to sexybookmarks options, switch services in the “Which URL Shortener?” box, and tick the box to reset all short urls. Once done, your blog should return to normal.