WP plugin: Download Manager

posted on April 28, 2005  (Update: January 25, 2007)

Download Manager (now in beta testing) is a WordPress plugin that provides the ability to restrict and track file downloads from your site, and manage it all through a single interface in WordPress’ administration pages.

(If you downloaded the alpha, see the update)

Finally! Finally! And yet it’s only an alpha beta release! Admittedly Download Manager is not the most frustrating plugin I’ve worked on, but it’s definitely in the top 2. I guess your first plugin that hooks into the admin pages is like that. Anyway, for those looking to try it out download the zip file (linked through Download Manager, naturally), extract download-mgr.php from it, place that file in your plugins directory (wp-content/plugins/), and activate “Download Manager” under Plugins in WordPress.

Using Download Manager for, well, downloading, is as easy as providing a link. In fact, all there is to it is linking to files in this manner:

/?dl=file.ext

?dl is what “gets” Download Manager to retrieve and download the file, which is specified in the value for dl=. If there’s a file called archives.zip in your downloads directory, you can link to it for downloading like so:

/?dl=archives.zip
-or-
/index.php?dl=archives.zip

An anchor link would look like:

<a href="/?dl=archives.zip">Download my zipped up archives</a>!

You’ll need to tell Download Manager where the download directory is, but before explaining how to configure things and let you be on your way, there’s one user variable in the plugin you may want to modify, depending on how you choose to track downloads, if at all. After the example dl links near the top, look for this section:

// user-configurable variable >
// Set $tracking_type to have Download Manager use a single table to
// track downloads, multiple tables (one per blog), or do not track.
// Valid value:
'single', 'multiple', 'none'

$tracking_type = 'multiple';

// < user-configurable variable

$tracking_type tells Download Manager how to retain tracking records. The setting of ‘multiple’ (the default) creates a table using the table prefix defined in your wp-config.php. If this is the default on a blog, then the download table with $tracking_type set to multiple will be ‘wp_downloads’. Setting $tracking_type to ’single’ tells Download Manager to ignore the table prefix and create a tracking table with the name ‘downloads’. Using ‘none’ effectively disables tracking and Download Manager will not create a table for it.

This let’s you manage download tracking in a multi-blog environment any number of ways. For an example, let’s say you have 4 WordPress blogs on a single host; 2 of the blogs share their resources; 1 is a subscription blog accessible only to registered users; the last is your personal blog but also has registered users, and though you don’t need to track downloads you do want to make certain files avaliable to them. The first 2 can track downloads together by setting $tracking_type on both to ’single’, so they’ll use a common ‘downloads’ table. On the subscription blog, setting it to ‘multiple’ creates and uses a table just for it (with its predefined prefix). And for your personal blog using ‘none’ turns tracking off, but you’re still able to restrict downloads to users.

With that out of the way, let’s take a look at Download Manager’s admin page. After activating the plugin, you’ll find it under Manage > Downloads in WordPress. (Click images for full version)

Download Manager - add settings

You’ll note at this point Download Manager is not quite ready to go about its business. It’s performed some guesses for settings which may need to be changed. They’re also not yet retained as WordPress options. Spend a few moments here making sure everything is as you want it, then click Add Settings.

Download path is the full (absolute) directory path to your download directory, starting from the root of the server your site is hosted on (and not the root of your web site). The path Download Manager generates should help guide those who are uncertain about the full path. Download URL is the url or web address to your download directory. This won’t be advertised when a file is downloaded, but it’s required all the same.

Access level is for setting a restriction on the user level allowed to download. User level is the numeric Level value for each user/author under Users admin. If you want to allow absolutely everyone to download with no restriction, select ‘public’.

The Report errors checkbox sets whether to use restricted access error messages, or to return no error and just quit on the download attempt. The Wrong level message displays if a user/author with a user level below the one allowed tries to download, and No login is for when restrictions are set but the download is initiated by a non- or logged out user.

Download Manager - normal view

The above is a screen shot of Download Manager in normal view. This is how it typically appears when first visiting the admin page, with settings on top, and the tracking list at bottom. You can temporarily modify this by clicking the “Tracking only” link at top right.

Download Manager - tracking view

And this is Download Manager in tracking view. Right now it only displays a line for each file, with the number of downloads (count). The rest of the information is for the last download of that file: login of the downloader if there’s one, referring page for the link, IP of the downloader, and date/time of the downloaded.

The purpose of releasing Download Manager now is to put it through some real world testing, as well as get feedback as to what may be missing. It’s unlikely anything more than munged downloads or failed responses from the plugin will occur, but keep in mind I consider this an alpha beta release. I’m not recommending it to anyone who can’t figure their way around WordPress and their host’s MySQL admin tools. If you run into problems beyond the plugin’s functionality, I’m afraid you’re on your own.

Speaking of alpha beta, note that certain features and functionality are still in the works for R1 final. Some things I’m looking at are: have Download Manager completely remove all restricted access message settings when Access level is set to ‘public’ (they’re just in the way then) (done); click-through links for fuller tracking reports by file name (done); ability to “empty” the tracking table of records for individual files. Let me know if you have any suggestions beyond this (but nothing fancy, OK?).

Update [May-06-2005] Beta release — I’ve hit two of the three mentioned “missing features” from the last paragraph above, along with another one…

  • A search is performed for the queried file in subdirectories of the download directory. So you can now organize files in subdirectories (and subdirectories of subdirectories, and so on) while using just the file name in your download query. You will need to specify the path to a file if you have more than one file with the same file name.
  • File names under Download Tracking link to a Full Tracking view of all downloads for that file. To return to (summary) Tracking view, click the [«] link at the end of “Download Tracking: filename [«] .”
  • Restricted access message settings are not displayed when Access level is ‘public’
  • Minor admin page tweaking.

If you have problems with this version, I’ve kept the alpha online: download-mgr-alpha.zip

Planned features still on the drawing board: paging for Full Tracking view; clear individual files from tracking table; localization of admin page (beta is basically localization-ready; just need to provide a POTS file). These should make it into the final.

Update [May-09-2005] Beta 2 resolves an issue with the newly released WordPress 1.5.1. Also killed a few bugs that slipped in since the Alpha.
Update [Jan-09-2006] Beta 2_WP2 offers practically no changes from the last beta. (Sorry! I will continue development on this plugin, promise!) Just slipping in a fix for more complete WordPress 2.0 support. Despite the weird version number, it should still work in 1.5.x.
Update [Jan-25-2007] Beta 2_WP2.1 — Yes, again, nothing new here but a tiny fix for WordPress 2.1.

Author: Kaf Oseo
Categories: WordPress
Comments: (110) · Leave a comment · Comments RSS2 · Trackback URL

eduardo
Comment » April 30, 2005 @ 9:36 pm

Hi,
I’vehad a download directory for some time now set up manually in my site, using a download manager independent of WP. A few months ago i ran into a problem: someone was hotlinking to the files i offer for download. I solved my problem with htaccess, so when someone links directly to my files the user who clicks on the link will not download the file but land on my downloads page.
I thought i would point this out for you so you could plan a counter-measure against hotlinking for your plugin.
Good luck!

Pierre
Comment » May 5, 2005 @ 11:59 am

Hi,
thank you for the plugin it’s cool and work fine for an alpha release :)
I’ve just made little modifications because i like to use some directories
in my download area (actually only in my PC) and the plugin don’t like them by default…
so i email to you the modified file for testing purpose.

Thanks again

Pierre

Richard
Comment » May 8, 2005 @ 6:39 pm

This sounds like a great plugin. I was looking around for something else,
but this is even better. Looking forward to trying it out.

Thanks

Moshu
Comment » May 12, 2005 @ 3:38 pm

Great plugin! Install was easy, I had some troubles figuring out the dl= part though. I guess because I put the call in a Page in WP, but using ./dl did the trick :)
Thanks!

soteke
Comment » May 13, 2005 @ 10:58 am

Greatplugin. Is there any documentation of how to localize o plugin using a pot/mo file?
thanks

Kaf
Comment » May 16, 2005 @ 2:06 am

The localization on my plugin won’t be finalized until it is, but if you’re looking for general info on the task, the Codex has some information about it here:

http://codex.wordpress.org/Writing_a_Plugin

Isn’t at all pretty, though. I mean the task, not the documentation.

sheryar
Comment » June 5, 2005 @ 2:44 pm

awesome work on this plugin, i set it up and had it running within MINUTEs.

keepitup.

James
Comment » June 14, 2005 @ 11:38 am

Kaf, installed nicely and tracks links, but I’m getting garbled stuff in the browser windows when I try to download; it’s sending index.php headers and then the file content, some kind of MIME problem or something ? Check it out:
http://www.pembsdoe.org.uk/?dl=tent.pdf

Hope I haven’t missed something obvious.

Cheers, James.

Steve
Comment » June 21, 2005 @ 8:54 pm

This is a very promising plug-in. One feature that is absolutely necessary for me would be a means of reporting the download data publicly. For example, I would love to be able to show the top ten downloads of the site in my sidebar.

Mark Pankoski
Comment » June 22, 2005 @ 2:41 am

I’m confused by the usage portion. It more than likely my increasingly obvious lack of understanding about the basic scripting context in which Pages operate - hence not knowing what or where something is embedded and how it eventually get executed.

I cut and pasted the sample code into a created Page and then viewed it “thru the Blog” - I previously configured the plugin’s path, and ensured that the directories existed. I even put a file named archives.zip in there too.

When the page was view, the only presence of a “link” was in the <a href> case and even then when clicked it it seemed to be looking in the root directory of the site rather than the directory or path I previously specified..

The latter issue I will probably figure out - but would you be so kind as to enlighten me with respect to each example listed in the section “Using Download Manager for, well, downloading, is as easy as providing a link” ?

Are the first two exmaples indicative of how the plugin is referenced in a “PHP script file” and the third - inside a “Post or Page”? Moshu’s comment did not clarify the matter for me. No doubt a fundamental lacking on my part.

What’s the significance of the distinction between the example - where the php.index file is referenced and the once where it is not?

I hacked scripts, but that was DCL in OpenVMS - “back in the day”, and “way back when” the scripting language for hackers (the good kind) was “TECO”, (so I grasp the basic concepts. I realize that I need to RTFM or is it now RTFC (read the friggin’ CODEX?)

And, if you would be so kind, spare me the embarrassment of publishing this comment. just help out an “old-timer”…

Mark Pankoski
Comment » June 22, 2005 @ 4:43 pm

The interface with the Administrative interface (Manage Downloads)is the bomb!
Any chance of adding an ability to delete individual or purge all tracking records?
It works like a champ BTW after I got past my own ignorance in the matter.

Patrick Harris
Comment » June 22, 2005 @ 5:43 pm

This plugin looks great, and works nicely.

I would like the ability to stream audio files (for wma files, along the lines of “header … Content-Type:audio/x-ms-wma, Content-Disposition: inline).

Also, I like the idea that the user always has to visit the site for the download to work. The only way I can think of enforcing this is to add a generated id to the url which is tied to the date and perhaps the users IP (along the lines of “/?dl=archives.zip&id=1005993934883), so that the current link only works for say one hour, or one day or whatever … does this make any sense, or is it crazy?

JuanManuel
Comment » June 22, 2005 @ 6:32 pm

Nice plugin i’m using it at my site. I would like to see a way to display the download counter for a specific download.

hipslu
Comment » June 26, 2005 @ 5:28 pm

hi, first i’d like to thank you for releasing such a cool plugin to public!
second, i’ve two proposals:
1) it would be cool to have stats on every download, not just on the last one
2) it would be very cool to have an anti leech protection - means the plugin should check referrers; if its not from configured urls the script should respond with an error instead of the download

hipslu
Comment » June 26, 2005 @ 5:45 pm

ok, i’m sorry. please forget proposal number one as i’ve found the link. time to go to bed for me ;-)

BIUS
Comment » July 6, 2005 @ 6:51 am

great plug-in! I would like to see a way to display the download counter near the link in the public post pages.

Mark Pankoski
Comment » July 7, 2005 @ 7:05 pm

Increasingly, I find myself wanting to be able to set the access level on individual files.

Steve
Comment » July 8, 2005 @ 7:42 am

Bius- if you’re interested in a hack I have that does this, email me. steve@automatorworld.com

waylogic
Comment » July 14, 2005 @ 12:29 am

Grreat Plugin! Just what I needed. Thanx! :-)

Just one remark: size DOES matter, at least in my case..

I first noticed that some downloads would work and some others not. Then realized that only the bigger files wouldn’t work. Simply nothing happened after clicking the download link, except the originating page would be repaint.

Finally found out that php memory allocation was set too low. This can be set in php.ini as:

memory_limit = 100MB;
; 8MB is the default value

solved the problem for me to download a file of a size of 25MB.

Michael Loos
Comment » July 15, 2005 @ 3:21 am

Great Job ! And so easy to install. As for the question: it seemed to be looking in the root directory of the site rather than the directory or path I previously specified. The solution to me was to add the previously mentioned POINT ./?dl=archives.zip before the slash.

Benjy
Comment » July 15, 2005 @ 7:44 pm

Great and fantastically simple download manager. I hate overly complex plugins! One query though - nothing comes up in the tracker section at he bottom of the Manage > Downloads page. I’ve only just installed it and quickly clicked a link for a download on my site then cancelled it (50mb file and I’m on someone elses net connection!)

Any ideas why this might be?

Thanks in advance.

Benjy

Marcel
Comment » July 21, 2005 @ 4:59 pm

Is it possible to show the DL - Counts on a certain WP Page, not only in the Admin menu?

Joshua
Comment » August 14, 2005 @ 1:58 am

It works; that’s all that matters.

Good job!

Joni Mueller
Comment » August 16, 2005 @ 12:18 am

This is an absolute dream come true for my web design site, where I plan to offer templates in Zip format. I’m going to try this out and report back how much I love it (hopefully)!!!

sfong
Comment » September 26, 2005 @ 6:11 am

I have problem managing download from my site if you have time to see my posts there. Does your plugin “force download” which would stop visitors from opening up file by application? This may be a dumb question but I have yet to learn php. I know there are php scripts out there which restrict users from opening file by application. As I’m new to WP therefore have yet to find the way into its codes.

fenomen
Comment » October 9, 2005 @ 3:54 pm

i have a problem. i upload file in plugins. then i change my settings (/~/~/public_html/fenomen/ftp). but i dont see my download tracks. what is wrong?

andrew
Comment » October 11, 2005 @ 4:00 pm

Hey!

I have your plug-in working and it’s great…THANK YOU :)
Is this built for lets say 20,000+ Downloads? Or is it more small scale?
Just wondering…

-AJ

esky
Comment » October 12, 2005 @ 4:00 pm

Great plugin. I’d like to see some sort of browsing interface though for users, along the lines of http://deviantone.com/pafiledb/pafiledb.php

spacewalk
Comment » October 19, 2005 @ 3:21 pm

Kaf: Is Download Manager alive and still under development?

Steve
Comment » October 24, 2005 @ 9:44 am

I’ve posted a quick and dirty tutorial on a Download Manager hack to allow reporting on your site:
http://wordpress.org/support/topic/47684

This plug-in has great potential, I really wish dev would resume.

demo
Comment » November 7, 2005 @ 10:15 am

Hi,
Is it possible to create
?dl=http://www.xyz.com/files/abc.zip
(outside site)
Thanks

dahead
Comment » November 29, 2005 @ 5:39 am

Hi,

is it possible with your plugin to limit downloads like an anti leeching tool (say that ip x has already had a download in the last 5 min it wouldn’t get a permission, otherwise all is fine)?

dahead
Comment » November 30, 2005 @ 2:04 pm

Hi, its me again.

I tried your plugin and it is working fine.

could you please integrate a new feature in the next release that allows only a certain amount of downloads for an ip or a specified file (something like: do not allow ip x to download file f in the next y min again).

another feature could be: File a - allow x downloads per day/month/week.

i would really love that!

and thank you for a really nice plugin!

Richard
Comment » December 22, 2005 @ 2:02 pm

I finally got the correct directory to show by putting the leading stop on front of the /dl, but now when I go to download the link (click on it) I get these errors at the top of the page:

—-error message—-
Warning: opendir(http://localhost/rmagic/downloads) [function.opendir]: failed to open dir: not implemented in C:\xampplite\htdocs\rmagic\wp-content\plugins\download-mgr.php on line 377

Warning: closedir(): supplied argument is not a valid Directory resource in C:\xampplite\htdocs\rmagic\wp-content\plugins\download-mgr.php on line 388

Warning: Cannot modify header information - headers already sent by (output started at C:\xampplite\htdocs\rmagic\wp-content\plugins\download-mgr.php:377) in C:\xampplite\htdocs\rmagic\wp-content\plugins\download-mgr.php on line 418

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampplite\htdocs\rmagic\wp-content\plugins\download-mgr.php:377) in C:\xampplite\htdocs\rmagic\wp-content\plugins\pxsmail.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampplite\htdocs\rmagic\wp-content\plugins\download-mgr.php:377) in C:\xampplite\htdocs\rmagic\wp-content\plugins\pxsmail.php on line 2
——–

I thought it might have had something to do with the pxs mail form I use so I disabled it and got the same error messages at the top of the page except for the last two regarding pxs mail.

Does anyone know what I have done wrong here and how I can fix it - or am I going to have to abandon this and try and find something else to track my downloads?! :-(

Cheers, Richard

Ken
Comment » January 6, 2006 @ 12:22 am

This is almost what I have been looking for. What I would really like is a way to upload a group of files to a certain subdirectory (which functions as a sort of “category” for the files), and then have them show up in a list on a certain Page. If the file name is descriptive enough, then I don’t need or want to bother filling in info on each file in an admin page. Just upload a group of files, go to the admin page and tell it to “harvest” the file names to the db. Then have a function that I can insert into the page template to list all the files that appear in a certain subdirectory.

Any change of eventually having something like this?

Ken

Dayna
Comment » January 7, 2006 @ 7:23 am

This plugin is working great and I’m using it on my site. But I was wondering if it’s possible to have a sort of added function to prevent direct linking? I think that would be very useful indeed. Thanks

Dayna
Comment » January 9, 2006 @ 10:40 am

Been using this for quite some time now. Today, all of a sudden, it just stop working. Having these errors…

WordPress database error: [Unknown column 'user_level' in 'field list']
SELECT user_level FROM wp_users WHERE user_login = ‘admin’

Warning: Cannot modify header information - headers already sent by (output started at /home/huaian/public_html/liberta/wordpress/wp-includes/wp-db.php:102) in /home/huaian/public_html/liberta/wordpress/wp-content/plugins/download-mgr.php on line 400

Warning: Cannot modify header information - headers already sent by (output started at /home/huaian/public_html/liberta/wordpress/wp-includes/wp-db.php:102) in /home/huaian/public_html/liberta/wordpress/wp-content/plugins/download-mgr.php on line 401

Warning: Cannot modify header information - headers already sent by (output started at /home/huaian/public_html/liberta/wordpress/wp-includes/wp-db.php:102) in /home/huaian/public_html/liberta/wordpress/wp-content/plugins/download-mgr.php on line 402

Warning: Cannot modify header information - headers already sent by (output started at /home/huaian/public_html/liberta/wordpress/wp-includes/wp-db.php:102) in /home/huaian/public_html/liberta/wordpress/wp-content/plugins/download-mgr.php on line 403

Warning: Cannot modify header information - headers already sent by (output started at /home/huaian/public_html/liberta/wordpress/wp-includes/wp-db.php:102) in /home/huaian/public_html/liberta/wordpress/wp-content/plugins/download-mgr.php on line 404

Is there anyway to fix it? Thank you

Kaf
Comment » January 9, 2006 @ 11:56 pm

You ran into a bug with WordPress 2.0. Shame I missed that one… anyway, very slightly updated version fixes the database error. Not sure why you got the “Cannot modify header” error as well. Replacing the plugin file with the new one should clear up though.

Dayna
Comment » January 10, 2006 @ 12:04 am

Thanks Kaf, updated to the latest and it is working fine now. Thank you :)

Steve
Comment » January 10, 2006 @ 7:36 am

Kaf - I’m in WP 2.0 and haven no problems..should I bother updating anyway? Or not rock the boat :)
Thanks for keeping up with this plugin…public reporting is much-looked forward to, please keep us posted.

Kaf
Comment » January 10, 2006 @ 9:56 am

Steve, the bug in WP 2.0 was in retrieving user level on a downloader, so if you’re not restricting downloads (i.e. allowing ‘public’ access) and everything is working, downloading the fix is not really necessary. And yes, I’ll try to update soon on where I’ll be going with the plugin.

Steve
Comment » January 11, 2006 @ 8:28 am

Kaf - I started getting this error on a new post:
WordPress database error: [Unknown column 'user_level' in 'field list']
SELECT user_level FROM wp_users WHERE user_login = ‘admin’

I updated to your new build, and the error goes away, just FYI.

João Costa
Comment » January 14, 2006 @ 8:58 am

I just installed your plugin, and it seems to be working pretty good. The only problem I found was that if the downloaded file contains spaces, it is saved with a different name than what it was supposed to.

Great job !

Prashant
Comment » January 24, 2006 @ 1:33 pm

Thanks a lot for this wonderful plugin!

This is not really a big issue but you might want to check it out. I’m currently using the Tiger Administration style on my Wordpress Admin page, and the text-boxes of the Download Manager’s page extend to a very long width, I suggest you shorten them so you don’t see that horizontal scrollbar. Other than that, great work!

shelby
Comment » January 24, 2006 @ 6:02 pm

Works great. But is there a way to enable per download settings? Such as I have a file and want people to see how many times it has been downloaded. It would be nice in the download manager to enable “Allow users to see how many downloads for this file” and have a check box. Then on the site next to the download link it would be something like “Click here to download, Downloaded 5 times.” or something. Just an idea.

Dayna
Comment » January 26, 2006 @ 12:08 pm

Just a question here, is it possible to remove the records of certain files that were removed from the downloads directory? Thanks :)

Steffen
Comment » February 3, 2006 @ 6:41 am

It does what it is supposed to, great !! For it being Beta, really great !!

Of course there are other things we want your Plugin to do, how about some coffee?

But on the serious side … when you really have time to kill, how about managing the bandwidth for the downloads … no joke … saw this on another download manager and though it to be pretty neat idea.

http://dsplus.sourceforge.net/

Maybe a bit of an overkill, but it’s all GPL code.

meep
Comment » March 2, 2006 @ 8:05 pm

Awesome plugin, only bad thing I noticed was after activating, everytime you post or save a post or page you get a blank page after submitting (the page get submitted, but just shows a blank page afterwards) I am using WP 2.0.1 if that has any influence.

Any fix? Thanks!

Tash
Comment » March 3, 2006 @ 6:58 am

I have one problem with your plugin. For some mysterious reason my files would not download through IE6. When on local machine it works through IE , but when using plugin through live site IE reports that it can not download file.

I wonder if this is something with IE or Plugin issue?

thanks!

082net
Comment » March 8, 2006 @ 11:33 am

Great plugin! it works very well.

thanks!

Pisang Kremes
Comment » March 9, 2006 @ 4:10 am

Your plugin is amazing! Thanks a lot!

Dietmar
Comment » March 25, 2006 @ 5:29 pm

Great plugin! Works very well into minutes! :)

PurpleRain
Comment » April 20, 2006 @ 11:32 pm

I am planning to sell my ebook on the platform of WP. I would like to know that if i wana let my customer download after they have paid me, how can i restrict my common readers from doing the same?

If u don’t mind plz drop me a mail bcoz this discussion have something to do with my business model i not prepared to reveal yet to the public. Thanks.

Ben
Comment » May 2, 2006 @ 3:38 pm

Hello, a known and I have yesterday are opened forums Community for Webblogger. We would like to offer many infos and good services to the visitors of our Community possibly FREE OF CHARGE. Themes, Plugins and Blog Hosting with Webspace also count to it. Because I find your Plugins very interesting and am the opinion that even more Blogger should use this Plugins, I wanted to ask for whether you a little bit against it hättes if we provided your “Plugins” in our download area (with link Verweiß to you) to the download. We would become the files on our own server Hosten, therefore would attack no other Traffic by the download. You can reach our just founded Community under http: // http://www.blogger-portal.de/greeting Benjamin P.

Trevor
Comment » May 8, 2006 @ 10:05 am

Hey, this is an awesome plugin!
The only improvement I can think of is to have a button which will let you delete the records for one file.

Also, it seems to run into problems with spaces in filenames.

Thanks for your work on this!

Rodney
Comment » May 9, 2006 @ 12:48 pm

I think this plugin is GREAT and it works flawlessly. Thankyou for this.

Although I’ve made my own modifications, maybe a feature to add is to allow multiple directories to be specified and have different permissions on each directory. Or even file based if you can get that far. I have mine setup so you can specify a directory ID in the URL and it’ll download from that directory.

Just a thought.

SpuTniQ
Comment » May 19, 2006 @ 5:56 am

Hi!
Nice Plugin you created. I will Firefox Addons put in my Download Area. The Files are .xpi Files. But it doesn’t work yet. Can you modify the Plugin? Or do you know how i can .xpi Files to download from my site directly?

thx 4 info

SpuTniQ

jaime
Comment » July 6, 2006 @ 7:02 pm

Great work!
undoubtedly a very useful plugin, thanks for sharing it. If you need an spanish version, call me ;)

Gracias!

Jan
Comment » July 7, 2006 @ 11:33 am

Man, I dunno what’s wrong but the plugin doesn’t seem to work. Instead of restricting files or tracking downloads, the page redirects to a page listing what’s inside my downloads directory.. can anyone please help me out on this? Please? feel free to visit my site and check on the downloads page..

Alex Holsgrove
Comment » July 9, 2006 @ 9:31 am

Will this work for files hosted on another server? I host loads of big files on a second server, and host my site and pages on a primary one? Is this possible?

Alex Holsgrove
Comment » July 10, 2006 @ 5:17 am

Answered my own question. The downloads have to be on the same server. I guess I need a click counter instead. Thanks anyway

Jan
Comment » July 24, 2006 @ 9:22 pm

Hey guys! The plugin worked great! I just want to know how i can create a download link to a file inside a directory within my downloads directory? please reply as soon as possible guys! Thanks!

Anne
Comment » August 3, 2006 @ 3:59 am

Cannot load download-mgr.php.

I keep on getting this error message and I don’t really know what I’m doing wrong.

EDIT: Nevermind. I solved it. I should have placed the file without the folder.

david
Comment » August 7, 2006 @ 2:23 pm

It’s a very good plugin with one flaw. It won’t feed .pdf-files correctly, making them unreadable once downloaded. At least that’s what I’ve got from it on various setups and servers. If you can fix that, it’ll rock every bloggers world. :)

Kang Asep
Comment » August 29, 2006 @ 10:55 pm

Nice …. I will use it

Lucky Power
Comment » September 22, 2006 @ 4:00 pm

I downloaded this Plugin beta release and installed it by following your instructions.
The problem now is I can not see the Downloads submenu shown under Manager.
Did I miss something?
By the way, my Wordpress version is 2.0.4
Thanks in advance!

Lucky Power
Comment » September 25, 2006 @ 9:49 pm

Sorry, I just forgot to activate this plugin.
It is great plugin which I’d like to have.

Adam
Comment » September 27, 2006 @ 3:49 am

I’m confused, I have installed the plugin, but I now get these errors under the “Download Tracking” section when I go to the Manage –> Downloads section of my admin:

WordPress database error: [Unknown column 'date' in 'order clause']
SELECT * FROM wp_downloads WHERE file_name = ‘auto_database.xls’ ORDER BY date DESC

WordPress database error: [Unknown column 'id' in 'field list']
SELECT id FROM wp_downloads WHERE file_name = ‘auto_database.xls’

WordPress database error: [Unknown column 'date' in 'order clause']
SELECT * FROM wp_downloads WHERE file_name = ‘Cheques_and_Balances.sit’ ORDER BY date DESC

WordPress database error: [Unknown column 'id' in 'field list']
SELECT id FROM wp_downloads WHERE file_name = ‘Cheques_and_Balances.sit’

Any idea what I’ve gone and done wrong?

I’m also not really clear on where I’m supposed to put files and how I access a link to them to place in my blog. (The errors seem to refer to my earlier attempts to upload stuff - I’ve since deleted/moved/re-uploaded these files…)

Arggggghhh…. I sense I’m very close to getting this to work….

Thanks!
adam

rob
Comment » October 13, 2006 @ 11:08 am

Kaf, I’m liking your plugin a lot so far as I start to change the download links on my site to use it. I notice that you say (close to the top of the page) that the plugin’s own download is linked through Download Manager yet it appears as ‘http://guff.szub.net/downloads/download-mgr.zip’ instead of ‘/dl=download-mgr.zip’. I’d really like to know how you do that!

Thanks!

J
Comment » October 16, 2006 @ 12:23 pm

Awesome! Thanks for the hard work on this. Great plug-in you’ve got there!

Martijn Stegink
Comment » November 2, 2006 @ 6:54 am

Thank you for the plugin. I use is and it is working fine. Why is is still beta?

anders
Comment » November 8, 2006 @ 3:24 pm

Hi all! ice plug-in. It works very well for me with one exception - i get error sving file -1 when uploading files to the server. But I dont kow what the error code means - is it related to the file size? Please help. I have changed the max file size in downloads.php without success.

Arun
Comment » December 5, 2006 @ 5:47 am

Thanks, this is excellent!

Miranda
Comment » December 16, 2006 @ 1:21 am

This is great! The only difference I’d like is the ability to track images too - I make a lot of icons and would like to be able to track those without zipping them. Even without that though it’s very useful :)

Saxman
Comment » December 22, 2006 @ 11:12 am

Wow, this is the best anti leech for WP!
Thanks so much :)

Digitz
Comment » December 23, 2006 @ 7:25 pm

Hi,

Congrats, Nice Plugin…

I’ve installed Wordpress in root/blog/
I’ve then made modifications to wordpress configuration so it loads blog/index.php when I type in my web address. This is done by copying index.php into the root directory of your site and modifying htaccess

More info is available here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

I’ve also created a downloads folder in my wp-content directory.

Now when I link to a file in the downloads folder e.g. /?dl=javascripts.zip it generates errors like this:

Warning: opendir(hsphere/local/home/digitz/musavis.com/blog/wp-content/downloads): failed to open dir: No such file or directory in /hsphere/local/home/digitz/musavis.com/blog/wp-content/plugins/download-mgr.php on line 361

Warning: closedir(): supplied argument is not a valid Directory resource in /hsphere/local/home/digitz/musavis.com/blog/wp-content/plugins/download-mgr.php on line 372

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/digitz/musavis.com/blog/wp-content/plugins/download-mgr.php:361) in /hsphere/local/home/digitz/musavis.com/blog/wp-content/plugins/download-mgr.php on line 402

What should I do?

Modern furniture Boy
Comment » December 24, 2006 @ 11:12 am

Great stuff. I agree with Miranda, support of images would be great, especially for digital photographers (gallery, etc).

Adam Patterson
Comment » January 31, 2007 @ 2:34 am

hey, i love the plugin but i am getting a lot of header errors, and i have the new version of your plugin 2.71. it fixed the downloading header issues but not your plugin is giving me an error on almost all other plugins and tasks.

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/studiolo/public_html/wp-content/plugins/download-mgr.php:421) in /home/studiolo/public_html/wp-content/plugins/editnplace.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at /home/studiolo/public_html/wp-content/plugins/download-mgr.php:421) in /home/studiolo/public_html/wp-includes/pluggable.php on line 275

hope that helps :)

thanks

P2R Team
Comment » February 1, 2007 @ 7:16 pm

Hi,

I am wondering if you can answer a question for me, what file permissions do you set on the download directory ?

Can you lock out the directory so even if they guess the dir and filename they still can’t pass the url into the browser? Or does there still need to be public read on the dir ? I can see in comments and in the code that you work with the physical path, does this allow you to take away public access.

Very nice code work.

Thanks

andrei
Comment » February 14, 2007 @ 3:17 pm

Tried to use protected downloads, but I am not able to edit in the control panel: Cannot load download-mgr.php.

paolo
Comment » February 19, 2007 @ 9:05 am

First of all thank you for your wonderful plugin. It works very nice with “small” files but I’m having problem managing a 90M file.

Download starts but ends as soon as possible. File content is the following:
Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 104460288 bytes) in /[...] wp-content/plugins/download-mgr.php on line 389

How can I get rid of it? It’s a problem with php.ini? Becouse my provider don’t let me change it!

Thank you!

Todd loewen
Comment » February 19, 2007 @ 12:28 pm

Dude this is a really sweet and simple download manager. The only thing I wish it had was a way to manage the actual files.

adam patterson
Comment » March 5, 2007 @ 12:05 pm

Hey, i love the plug-in but it seams to mess up wordpress with the headers, the admin, posting of content and commends as well as my gallery script.

i updated the plug-in but that only allowed the front end to work, the back end is still messed up.

Steve
Comment » March 6, 2007 @ 1:29 am

Dev on this plugin has dried up, but there’s a new one that is much better and faster, and has post and template tags: WP Download Monitor

Check it out.

Thomas
Comment » March 6, 2007 @ 5:16 pm

Nice plugin, it’s exactly what I was looking for.
But I have a problem: I restricted the access to the download link to a level 0 which is the subscriber level. When I log my blog as a subscriber, I can’t download the file, the blog told me that I can’t.
If I switch to level 1 and set the user to contributor, it works.
I don’t want to let the visitor who register to be contributors, then if someone have an idea to fix that… I don’t need anything else, this pugin is a must have!

Paula
Comment » March 30, 2007 @ 2:56 am

I’ve tried and tried, and it’s not working, no doubt an error on my part. When the download button gets pressed, the page goes to my default home page with the filename in the url, which makes no sense to me at all. I’m trying not to track downloads, but to restrict downloads to reg’d members only. Any help appreciated, please.

ernst
Comment » March 30, 2007 @ 7:26 pm

I installed this application and with the help of it some guy hacked my site. here. My database was delete without ressurection. How i can solve this problem ? maybe reasons in permissions ?

Lisa
Comment » April 4, 2007 @ 11:52 pm

Your plug-in looks great and is almost exactly what I was looking for - except that I can’t get one crucial feature to work. I’m trying to restrict downloads to registered subscribers only. If I set Access Level to 0 it still locks out users who are at the 0 level (i.e. Subscribers). The only way I can make a download available to them is to make it Public (which defeats my purpose) or to promote all my Subscribers to the Contributor level (1). What am I missing????

blinkman
Comment » April 6, 2007 @ 8:31 pm

I’m using the plug to restrict downloads to registered users, and it’s working–mostly. A small number of users are reporting the “wrong user level” error, and I can’t figure out why. I have Access Level set to 0, and even after setting users to level 1 they’re still having problems. It doesn’t seem to be restricted to any particular browser or OS; some are using IE6/Win, some Safari and Firefox on Mac. I have tested it here with a dummy user account and it works all around (IE, FF, Opera for Windowns, Safari and FF for Mac). I’m stumped. Can you help?

ismail yk
Comment » April 29, 2007 @ 10:08 am

Nice plugin i’m using it at my site.
I would like to see a way to display the download counter for a specific download..

Alex
Comment » May 2, 2007 @ 6:22 am

im having some trouble with the permissions, i am the sole administrator on my blog, but still, the only way i can access the download page on the manage panel is if i set the permissions to 0 > $user_level then say not permitted.
im using wp 2.1.3,
any ideas?

Donald
Comment » May 2, 2007 @ 12:24 pm

You do not have sufficient permissions to access this page.

I keep getting that message

uncleboob
Comment » May 8, 2007 @ 3:53 am

I m getting the ’sufficient permissions’ message too. Yesterday i believe the plugin worked.

uncleboob

Peter
Comment » May 13, 2007 @ 2:29 pm

Implemented without problems ! Works flawlessly on Mac OS X, with both Safari & Firefox.
Thanks for making this available !

uncleboob
Comment » May 25, 2007 @ 4:28 pm

I had the ’sufficient permissions’ message as you can see in my comment above.

But i have a solution: I simply changed the option for the WYSIWYG-Editor in the Settings panel. Saved. And changed it again.

Or go to the settings panel for you user and set the password to the password set before.

http://www.uncleboob.de

Martins
Comment » May 27, 2007 @ 4:22 am

Would it be possible to add a feature smth like “permalink for downloads”. It would use the mod_rewrite to redirect all links from [site_URL]/[download_folder]/[file_name] to [site_URL]/[download_folder]/?dl=[file_name]. This would solve at least tree topics:
1) you dont have to modify your links when posting
2) dont have to modify links for the downloads before the plugin was installed
3) looks better

Maybe someone knows how to write this mod_rewrite rule?

oh, the rewrite rule might be more complicated if the downloads are within sub-directories organized by date (a WP feature).

jp
Comment » August 2, 2007 @ 8:50 am

Hello.
First thanks for your script.
I have a problem with Wordpress 2.2 and Download Manager.
For Subscribers (Role) with Download level on “0″, I always get the message : When I’m logged as “subscriber” and try to dowload, I get the message “Sorry, you don’t have the right user level for downloads.” I have read that the Wordpress 2.2 “Subscriber role” corresponds to the “old 0 level”, but.. it doesn’t work. (Public downloads works fine) — Any ideas?

gogo
Comment » September 21, 2007 @ 2:19 pm

I’m getting ’sufficient permissions’ message too. using WP 2.2 here, where’s to change WYSIWIG? in the profile? have tried that but no luck, have tried to change the password, and still not working, please HELP.

Peter
Comment » September 27, 2007 @ 8:15 am

Have you been able to test for WP 3.0 compatibility yet ?

overig
Comment » October 2, 2007 @ 6:47 am

This plugin is totally useless at this moment because it DOESN’T work with large files (i’m hosting files between 200 Mb and 900 Mb). Could anyone please support this bug?? :( :(

older
Comment » October 15, 2007 @ 6:19 pm

Unable to stick it to… Download Tracking

WordPress database error: [Unknown column 'file_name' in 'field list']
SELECT DISTINCT file_name FROM wp_downloads ORDER BY date DESC
There have been no downloads to track.

please help

Arun
Comment » December 4, 2007 @ 1:04 am

I’ve been using this plugin for quite a while now and it’s worked great so far (works well with WordPress versions up to 2.2.x). Are there any plans to update this plugin for WordPress 2.3.x? I’m getting the same error as Older (above). Thanks :)