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

January 12, 2007 | Published in: Wordpress & plugins | Tags: , , , 29

Wordpress Download Monitor PluginWhilst posting bits and bobs on my blog, I’ve never had a consistent way of linking to files and recording download hits.

Therefore, I have created the ‘WordPress Download monitor plugin, to handle uploading, links, and to monitor download hits.

There is a newer version of this plugin, view its page here!

WordPress Download Monitor Plugin v1.0 Build 20070112

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

Featured include:

  • Admin page for uploading/linking to downloads, and specifying information (title and version).
  • Records download hits.
  • 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.

Plugin History

  • 12th Jan 2007V1.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.0 - Jan 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

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.0WP © 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

29 Responses to “WordPress Download Monitor Plugin”

RSS feed for comments on this post.

  1. Sheri says:

    Thanks for the plugin. I have been using it for about a week with success…no issues right from the get go.

    I just had one comment and that is with regard to the queries performed. I debug often and discovered that your script shot my db queries through the roof. I have modified the code to cache the results and delete the cache when a download occurs but that is just a quick fix until I have the time to get into the code.

    Just thought I’d mention it!

    Thanks again for the plug-in! Enjoying the stats :-)

    Comment made on March 7, 2007 at 2:32 pm

  2. Mike Jolley says:

    Hi, someone else mentioned my queries :( Im working on a solution, and some other add-ons. But if you find the problem/make optimisations please email me :)

    Comment made on March 7, 2007 at 5:23 pm

  3. Sheri says:

    Hi Mike. When I have a spare moment I’ll revisit the query issue! But for now I found an exclusion from the code that I think should be there, so I have included it into the wp_dlm_ins_button() function. Right now you have the download option dropdown on just the page-new and post screens but not the post-new. So I have changed this line of code:

    if( strpos($_SERVER['REQUEST_URI'], ‘post.php’)
    || strstr($_SERVER['PHP_SELF'], ‘page-new.php’))
    {

    to

    if( strpos($_SERVER['REQUEST_URI'], ‘post.php’)
    || strstr($_SERVER['PHP_SELF'], ‘page-new.php’)
    || strstr($_SERVER['PHP_SELF'], ‘post-new.php’) )
    {

    Now the list appears when I want to use it in a new post. :)

    Comment made on March 9, 2007 at 4:23 am

  4. Mike Jolley says:

    Say good bye to this post……… The new one is now being posted. New version everyone!!!!! :)

    Comment made on March 10, 2007 at 2:15 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.