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 69067 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. Oria says:

    I get this error whenever I attmept to add an existing download, right after I click “save”:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '21:10:25,0,'admin')' at line 1]
    INSERT INTO 7DLM_DOWNLOADS (title, filename, dlversion, postDate, hits, user) VALUES (‘test’,'http://test.com’,’.01beta’,2007-03-26 21:10:25,0,’admin’)

    Comment made on March 27, 2007 at 1:14 am

  2. Mike Jolley says:

    Did you upgrade to the latest version? I just inputted what you entered and It worked for me…

    Comment made on March 27, 2007 at 6:17 am

  3. chatca says:

    too difficult to find plugin like this, increase the power of wordpress theme.

    Comment made on March 27, 2007 at 5:11 pm

  4. Alex says:

    This plugin is great but add download button not show up if I activate WP-Tiger-Administration plugin from http://orderedlist.com/wordpress-plugins/wp-tiger-administration/

    Any idea how to fix it?
    Thank you…

    Comment made on March 29, 2007 at 8:55 am

  5. Oria says:

    Yes, I’m using the most recent version of this plugin (1.5) and the most recent version of WordPress 2.1.2 – I tried reinstalling the plugin but it still has the same problem.

    Comment made on March 31, 2007 at 10:10 pm

  6. Mike Jolley says:

    Alex, if you mean the dropdown when posting I dont know how to fix, but the tag is simple to remember so it shouldn’t make posting that much harder

    Comment made on April 2, 2007 at 9:01 pm

  7. Stahn says:

    Hi!

    A bug: The quicktags don’t appear if I’m editing a post in a Page.

    A suggestion: config in via Manage > Downloads a custom path for downloads, I don’t like uploading files in that folder.

    Extremely good plugin, man, congratulations :)

    Comment made on April 3, 2007 at 5:05 pm

  8. Alex says:

    Mike, yes I can remember the tag but there is other problem, that I cant add download anymore through Manage Download, Add Download button seems gone :(

    Maybe you or other users have idea how to fix it, thank you…

    Comment made on April 5, 2007 at 10:50 am

  9. alakhnor says:

    Hello,
    Thank you for your nice plugin. It’s really easy to use and functional.
    I have a minor request: how would it be possible to add version/last update date in the download tag so that it’s displayed?

    Comment made on April 7, 2007 at 11:33 pm

  10. Usayd says:

    Hey, excellent plugin thank you very much. Maybe in the future it would be cool to have an extension selection list in the administration panel, or to allow all as the access to the panel is limited anyway.

    Comment made on April 9, 2007 at 7:43 pm

  11. Mike Jolley says:

    alakhnor > noted for future version

    Comment made on April 9, 2007 at 8:47 pm

  12. Josh says:

    Mike, this looks like it would be a great plugin except it will not convert the tags for me in a page or post. I think Dave posted a similar issue earlier. I am running wordpress 2.1.3 on IIS on windows 2003 server. I was just curious if a fix had been figured out for this issue? Thanks.

    Comment made on May 3, 2007 at 4:14 pm

  13. Mike Jolley says:

    I did not work out the bug, I don’t have a clue to the error, but its got to be something to do with the Windows server…

    Comment made on May 3, 2007 at 4:40 pm

  14. Chero07 says:

    Thanks for this update, I try to “update” but I get an error, and nothing in wordpress work. If I make a new instalation on other blogs works perfec, but I´m still asking you a “page” to display all the donwloads.

    Comment made on May 4, 2007 at 4:29 am

  15. kenny says:

    how can i using this in custom field
    i have try to add the [download#1] in custom field
    but it not work

    i have try to add
    add_filter(‘the_meta’, ‘wp_dlm_ins’);
    after
    add_filter(‘the_excerpt’, ‘wp_dlm_ins’);
    in wp_dlm_ins

    it also not work, can you tell me how to solve my problem?

    Comment made on May 4, 2007 at 3:37 pm

  16. Mike Jolley says:

    Im not sure, it looks correct to me. Sorry im no help.

    Comment made on May 4, 2007 at 4:44 pm

  17. Trisha says:

    Hi there. I am currently using v1.0 of this plugin and I would like to upgrade but I do not want to have to reupload 92 videos that I just got cataloged and organized…any ideas??

    Comment made on May 12, 2007 at 6:23 am

  18. Mike Jolley says:

    The update has the same database structure, should just be a straight update, it should not affect the old ones.

    Just make a backup just in case of course.

    Comment made on May 12, 2007 at 9:25 am

  19. Bronze says:

    hi!
    i was wondering if i could force file downloads through this plugin.
    i am linking large .pdf files through the plugin and i’d like the option for people to download the pdf instead of opening directly on the browser.

    any tips on doing that?

    Comment made on May 17, 2007 at 6:39 pm

  20. Mike Jolley says:

    I don’t think thats possible, why not just zip it up?

    Comment made on May 17, 2007 at 7:50 pm

  21. traxen says:

    Hi there, I tried you plugin on the latest version of wordpress 2.2 and it seems it hit a bug on the way. I can add downloads but cant delete them. This is what I get in return:

    “The requested URL /wp-admin/edit.php was not found on this server.”

    Could it be the upgrade that broke it?

    Comment made on May 17, 2007 at 9:59 pm

  22. Mike Jolley says:

    Thats strange, I just tried and my install works fine. Did you disable the plugin before upgrading?

    Something in wp is different i just cant find it….

    Comment made on May 17, 2007 at 10:37 pm

  23. traxen says:

    Yepp, it was not active at the upgrade… weird.. I’m scratching my head :)

    Comment made on May 17, 2007 at 10:52 pm

  24. traxen says:

    One thing came to mind, does it rely on any sort of server variable to work?

    I know that my original installation that is up and running is on a server that has turned off a few.

    Testing on my own:
    ————————–
    Got a apache2triad up and running with the 2.1.3 version to test it out, and the same thing happens. Hoped that would tell me something but…*sob*

    Comment made on May 18, 2007 at 12:11 pm

  25. Mike Jolley says:

    ah, is it the yes/no buttons that screw up when you try and delete. If yes, open the plugin and goto line 635, try changing the line:

    635
    
    <p>Are you sure you want to delete "<?php echo $d->title; ?>"? (If originally uploaded by this plugin, this will also remove the file from the server) <a href="<?php get_bloginfo('wpurl'); ?>/wp-admin/edit.php?page=Downloads&amp;action=confirmed&amp;id=<?php echo $_GET['id']; ?>&amp;sort=<?php echo $_GET['sort']; ?>&amp;p=<?php echo $_GET['p']; ?>">[yes]</a> <a href="<?php get_bloginfo('wpurl'); ?>/wp-admin/edit.php?page=Downloads&amp;action=cancelled&amp;sort=<?php echo $_GET['sort']; ?>&amp;p=<?php echo $_GET['p']; ?>">[no]</a>

    to

    635
    
    <p>Are you sure you want to delete "<?php echo $d->title; ?>"? (If originally uploaded by this plugin, this will also remove the file from the server) <a href="<?php echo get_bloginfo('wpurl'); ?>/wp-admin/edit.php?page=Downloads&amp;action=confirmed&amp;id=<?php echo $_GET['id']; ?>&amp;sort=<?php echo $_GET['sort']; ?>&amp;p=<?php echo $_GET['p']; ?>">[yes]</a> <a href="<?php echo get_bloginfo('wpurl'); ?>/wp-admin/edit.php?page=Downloads&amp;action=cancelled&amp;sort=<?php echo $_GET['sort']; ?>&amp;p=<?php echo $_GET['p']; ?>">[no]</a>

    Comment made on May 18, 2007 at 12:44 pm

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

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