WordPress Download Monitor Plugin v1.6
This plugin has now been replaced by an updated version which you can find here.
The 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:
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?
- Features
- Files in the zip
- Plugin History
- Get it now!
- Installation Instructions
- Tags
- Licence
- Support my sweat, blood and tears
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 filewp-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 2007 – V1.6WP B20070812 -
- Bug fixes galore
- 10th March 2007 – V1.5WP B20070310 -
- New version released!
- Insert box now shows on new posting- thanks Sheri!
- No issues known.
- 8th March 2007 – V1.5WP B20070308 -
- Beta test.
- No issues known.
- 12th Jan 2007 – V1.0WP B20070112 -
- First release
- No issues known.
So, what are you waiting for? Download it now!
| Index |
Get it now!
Downloaded a total of 70953 times
| Index |
Installation Instructions
Installation is fast and easy. The following steps will guide get you started:
- Unpack the *.zip file and extract the
/wp-downloadMonitor/folder and the files. - Using an FTP program, upload the
/wp-downloadMonitor/folder to your WordPress plugins
directory (Example:/wp-content/plugins). - 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. - 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. - Once activated, go to the Manage > Downloads.
- That’s it, you’re done. You can now add downloads.
| Index |
Tags
To show download links, use the following tags:
- Link/hits –
[Download id not defined]Output example:<a href="download.php?id=1" title="Version 1 downloaded 10 times">Download title (10)</a> - 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> - URL only –
[Download id not defined]Output example:download.php?id=1 - Hits only –
[Download id not defined]Output example:10 - Link with image –
[Download id not defined]Output example:
*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.
- Most downloaded –
<?php wp_dlm_show_downloads(1,$no); ?> - Most recent –
<?php wp_dlm_show_downloads(2,$no); ?> - 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!












Mike Jolley says:
Damn. Must just be the content parser. Sorry, might need to wait for next version
Comment made on September 26, 2007 at 9:38 pm
G. Sun says:
Ok thanks anyway! It’s too bad I couldn’t figure how to get this to work, this plug-in is exactly what my boss wants! I will ask them to try to get it to work on their systems, maybe they will have better luck.
Comment made on September 26, 2007 at 9:58 pm
simon says:
hi, great plugin,
one question where would i find the drop down mentioned in the features list as
“Drop-down menu in non-rich text wordpress editor for adding links.”
what or where is the nonn rich text editor? I have a 2.3 installation and am looking for the dropdown somewhere on an edit post/page page. Is this correct?
cheers for any guidance, and cheers anyway!
Comment made on October 6, 2007 at 7:54 pm
simon says:
hello again,
please ignore post above.
as i have found that what i needed to do. For the benefit of others as cluless as me:
“Go to your profile, and there’s a little box on the bottom that says “Use the visual rich editor when writing”. If you uncheck it, you should get a basic text editor.”
after taht i could see the drop down.
sorry for bothering you,
s.
Comment made on October 6, 2007 at 8:01 pm
Danny Foo says:
I changed all the $max_size = 1024*1024; // the max. size for uploading in the wp-downloadmonitor.php file to 1024*2048.
But when I tried uploading a 2.49MB file, it gave me this error:
The uploaded file exceeds the max. upload filesize directive in the server configuration.
Any idea how to go about solving this?
Comment made on October 13, 2007 at 2:45 am
Daiv says:
“Only files with the following extensions are allowed: .zip .pdf” that little bit of info could have shown up prior to intsall, configure, and upload.
Comment made on October 20, 2007 at 9:36 am
Remko says:
Is it possible to let only registered users download certain files?
Comment made on October 20, 2007 at 12:55 pm
Mike Jolley says:
@Danny Check your web host FAQ, maybe they don’t allow you to change the setting
@Daiv You can configure it by editing the plugin, no need to be cocky.
@Remko No, this plugin is not designed for that.
Comment made on October 20, 2007 at 1:00 pm
Maarten Kooiker says:
Thanks, I will give it a shot!
Feel free to test it on my page
Comment made on October 21, 2007 at 6:15 am
Remko says:
A nice enhancement would be to include an option for file specific download icons (eg zip/pdf etc.)
Comment made on October 21, 2007 at 12:59 pm
Dark says:
Hello Mike! Thanks for donne this plugin! ButI can´t show the hits of downloads… I try [#hits] but not working. How I do show the hits ins the page?
Thanks a lot!
Comment made on October 26, 2007 at 1:58 pm
Mike Jolley says:
You need the download id as well as the [#hits] e.g. [download#10#hits]
Comment made on October 26, 2007 at 7:12 pm
Brasov says:
Hi, great plugin, Thanks for donne this plugin! is woderfull becouse work with link friendly. thanks thanks thans.
Comment made on October 29, 2007 at 3:33 am
abdomain referencement says:
Can’t make the plugin work on WordPress 2.3.1
It shows the raw code without the download link
has someone managed to make it work ?
Comment made on November 2, 2007 at 1:23 pm
Hilary says:
Is there a way to show the title and hits without making them a link?
Comment made on November 2, 2007 at 8:40 pm
SmartTURK says:
Thanks a lot for this useful plugin. And here a question:
I want to create a page called “downloads” and our users can see all downloads in one page like your plugin admin page. Is it possible?
Comment made on November 2, 2007 at 10:37 pm
Justin Adie says:
Like an earlier poster, with WP 2.3 and 2.4 the tags do not get automatically replaced with the link/image. likewise, the WYSIWYG cannot (seemingly) be turned off without editing the core code.
can you point us towards a solution?
Comment made on November 8, 2007 at 9:28 am
Justin Adie says:
previous issue resolved on both counts. second issue was pilot error, first related to the use of a show query which was not being properly captured by some abstraction code
Comment made on November 15, 2007 at 8:55 am
Kent says:
@ SmartTURK and others..
To create a standalone page, use this:
Downloads
Some text here or not.
Most downloaded
Most recent
I have non existsing numbers there because ive made some own options.
Comment made on November 25, 2007 at 3:25 am
Kent says:
Hmm.. im trying again.. my code doesnt show up
[code]
Downloads
Some text here or not.
Most downloaded
Most recent
[/code]
Comment made on November 25, 2007 at 3:26 am
Kent says:
I found a bug..
at the bottom of wp-downloadMonitor.php
$date = date(“jS M Y”, strtotime($D->postDate));
should be
$date = date(“jS M Y”, strtotime($d->postDate));
Comment made on November 25, 2007 at 3:33 am
Dave S. says:
Hi Mike,
This is really a great plug-in and I can honestly say that I have tried them all. It’s simple, fully featured and does what you have coded it to do. Nicely done.
I am having an issue similar to what Trevor Meier says said in comment 102
“Also, I noticed a bug… this dropdown menu for this plugin breaks any custom quicktags added by other plugins in the simple editor (tested with AddQuickTags and a couple other plugs that add custom quicktags)”
I am using Viper’s Quicktags plug-in and it worked without issue. I installed and configured your plug-in and tested it out (which was fine) but then I noticed that my second row of quicktags were missing and the only thing that was present was the download dropdown. Any thoughts on a fix?
For the record I am running WP 2.3.1. I’d appreciate your feedback and would be more than happy to donate a few $$$ to your efforts for the assist!
Thanks,
Dave
Comment made on November 30, 2007 at 1:38 am
Mike Jolley says:
I am aware of some of the bugs, thats one I want to fix; although Im unsure how to do quicktags properly (I kind of guessed lol). When I have time Ill take a look at all the bugs, if anyone has suggestions for improvements, or code fixes, send via contact page.
Comment made on November 30, 2007 at 1:11 pm
msn ifadeleri says:
thanks.
Comment made on December 2, 2007 at 10:06 pm
Mike Jolley says:
UPDATED!
Comment made on December 8, 2007 at 2:10 am