WP plugin: Download Manager
- plugin:
- Download Manager
- version:
- Beta 2_WP2.1
- download:
- download-mgr.zip
- source:
- download-mgr.php
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)
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.
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.
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?).
- 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.
Author: Kaf Oseo
Categories: WordPress
Comments: (110) · Leave a comment · Comments RSS2 · Trackback URL
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!
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
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
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!
Greatplugin. Is there any documentation of how to localize o plugin using a pot/mo file?
thanks
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.
awesome work on this plugin, i set it up and had it running within MINUTEs.
keepitup.
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.
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.
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”…
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.
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?
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.
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
ok, i’m sorry. please forget proposal number one as i’ve found the link. time to go to bed for me ;-)
great plug-in! I would like to see a way to display the download counter near the link in the public post pages.
Increasingly, I find myself wanting to be able to set the access level on individual files.
Bius- if you’re interested in a hack I have that does this, email me. steve@automatorworld.com
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.
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.zipbefore the slash.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
Is it possible to show the DL - Counts on a certain WP Page, not only in the Admin menu?
It works; that’s all that matters.
Good job!
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)!!!
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.
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?
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
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
Kaf: Is Download Manager alive and still under development?
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.
Hi,
Is it possible to create
?dl=http://www.xyz.com/files/abc.zip
(outside site)
Thanks
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)?
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!
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
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
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
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
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.
Thanks Kaf, updated to the latest and it is working fine now. Thank you :)
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.
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.
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.
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 !
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!
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.
Just a question here, is it possible to remove the records of certain files that were removed from the downloads directory? Thanks :)
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.
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!
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!
Great plugin! it works very well.
thanks!
Your plugin is amazing! Thanks a lot!
Great plugin! Works very well into minutes! :)
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.
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.
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!
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.
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
Great work!
undoubtedly a very useful plugin, thanks for sharing it. If you need an spanish version, call me ;)
Gracias!
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..
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?
Answered my own question. The downloads have to be on the same server. I guess I need a click counter instead. Thanks anyway
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!
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.
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. :)
Nice …. I will use it
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!
Sorry, I just forgot to activate this plugin.
It is great plugin which I’d like to have.
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
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!
Awesome! Thanks for the hard work on this. Great plug-in you’ve got there!
Thank you for the plugin. I use is and it is working fine. Why is is still beta?
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.
Thanks, this is excellent!
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 :)
Wow, this is the best anti leech for WP!
Thanks so much :)
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?
Great stuff. I agree with Miranda, support of images would be great, especially for digital photographers (gallery, etc).
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
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
Tried to use protected downloads, but I am not able to edit in the control panel: Cannot load download-mgr.php.
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!
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.
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.
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.
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!
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.
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 ?
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????
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?
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..
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?
You do not have sufficient permissions to access this page.
I keep getting that message
I m getting the ’sufficient permissions’ message too. Yesterday i believe the plugin worked.
uncleboob
Implemented without problems ! Works flawlessly on Mac OS X, with both Safari & Firefox.
Thanks for making this available !
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
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).
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?
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.
Have you been able to test for WP 3.0 compatibility yet ?
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?? :( :(
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
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 :)
Hi, thanks for your great development. I have a problem with your plugging. I