Download Monitor 3.2.2 Maintenance Release

October 3, 2009 | Published in: Out of the Blue | Tags: , , , 14

Download Monitor has received some more love and has been updated. Here’s the change log from the new version:

  • Small bugfix in uploader.php – cat ID
  • Changed stats graph calculation – thanks lggemini
  • Changes to headers in download.php to avoid caching
  • File Browser fixes – $root was clashing with something….
  • exclude_cat works in all sections of download_page now
  • Removed hardcoding of /uploads/
  • Added action to download.php – should be able to use it to stop a download if you want – maybe limiting downloads per day or something? Whatever you want…
  • Made it so if you post new file on ‘edit’ screen, the post date is updated.
  • Fixed the ‘blank meta’ section which blanks out custom field values when nothing is set.
  • Moved ‘allow_url_fopen’ check.
  • Someone said downloads don’t work with spaces in the name. They do! Wasting my time sonny…
  • All work and no play make jolley a dull boy
  • Had to rename capabilities so they work. Apologies if you have to set this up again! Cheers to Mark Dingemanse.
  • {category_ID} custom format tag added. Useful if you want to send someone to its category on the DL page I guess. Also added {category_other} so when no category is set “other” is shown – this is because the download page can show an ‘other’ section if you want it to.
  • You can now manually edit the post date on the edit download screen.

If you have edited capabilities for download monitor user permissions, you’ll have to again sorry! This is because I named them too long. Also, you should check your forced downloads still work because there was a logic error meaning they may not have been forced after-all…

Enjoy.

Found this post useful? Why not buy me a coffee!

Related Entries

14 Responses to “Download Monitor 3.2.2 Maintenance Release”

RSS feed for comments on this post.

  1. Brian says:

    Thanks for the category id tag! That is perfect for our homepage listing. Oh, and editing the post date is great as well. Since I don’t receive meeting minutes for posting in the right order (approvals take time), I can edit the post date so the documents sort correctly by date. PERFECT! Keep the great updates coming! I have already recommended this plugin to others I know.

    ReplyReply

    Comment made on October 3, 2009 at 4:38 pm

  2. Mike Jolley says:

    @Brian: Thanks, Glad its *more* useful now :)

    ReplyReply

    Comment made on October 3, 2009 at 4:57 pm

  3. mark says:

    Hmm, the file browser stopped working for me on the two sites I run DM on. On one it fails silently, on the other it complains about an open basedir restriction (File(/) is not within the allowed path(s) ... in /plugins/download-monitor/js/jqueryFileTree/connectors/jqueryFileTree.php on line 59). The file browser root seems to be correct.

    ReplyReply

    Comment made on October 5, 2009 at 1:49 pm

  4. mark says:

    Ah good, solved in 3.2.3. Muchos gracias!

    ReplyReply

    Comment made on October 7, 2009 at 5:12 pm

  5. Manvendra says:

    Hi
    I am using Download Monitor 3.2.3. When i add a file to be downloaded by members only, it does not work even for admin or any users. It gives message ‘Download path is invalid!’.
    If i remove the options for members only then everything works fine.
    Is there any solution?
    Thanks
    Manav

    ReplyReply

    Comment made on October 25, 2009 at 8:36 am

  6. Mike Jolley says:

    Comment made on October 25, 2009 at 8:59 am

  7. Manvendra says:

    I think I have found a work around here.
    If default address for your blog is say ‘/public-html/apps/blog/’. While you create link for download using ‘add existing’ and give a link of file as http://www.yourdomain.com/files/filename.msi and say you have selected only for members to download. When user clicks on download button, url path gets translated to http://www.yourdomain.com/apps/blog/files/filename.msi which is wrong url address.
    Workaround:
    Create a folder in apps/blog with name ‘files’. Put the original files here. While providing a link in Download monitor, give link as http://www.yourdomain.com/files/filename.msi instead of giving as http://www.yourdomain.com/apps/blog/files/filename.msi. It should work fine now.
    Thanks
    Manvendra

    ReplyReply

    Comment made on October 25, 2009 at 10:52 am

  8. Manvendra says:

    sorry Mike. I did not see your comment.
    Why does it works fine when you have not selected options for members only for same url?
    My url is local to server.
    Thanks
    Manvendra

    ReplyReply

    Comment made on October 25, 2009 at 10:58 am

  9. Mike Jolley says:

    @Manvendra: If you manually enter the url to the file (and don’t use the file browser) does it work correctly? If not I think it may be expecting the url to be within the wordpress installation somewhere.

    ReplyReply

    Comment made on October 26, 2009 at 9:34 am

  10. Trevor Mauch says:

    Hey Mike,

    Hmmm… I’m having the same problem. We have a bunch of downloads that we had on our server before we started using DL Monitor about a year ago… then, we made them all member only downloads last month… and now all of them are going to “download path invalid” like Manvendra had.

    So… what is the final solution to this??? I’ve tried several things… and can’t find the solution…

    Here’s the site: http://www.thereibrain.com

    Thanks!

    – Trevor

    ReplyReply

    Comment made on November 3, 2009 at 12:21 am

  11. Mike Jolley says:

    @Trevor Mauch: Maybe you can help me debug since you have the problem? I just need to you to add this below line 413 of download.php in the plugin folder:

    echo 'File URL: '.$thefile.' - Wordpress URL: '.get_bloginfo('url'); exit;

    Just add that, then try a download with the problem. Tell me what it outputs – you can then remove that line of code.

    ReplyReply

    Comment made on November 3, 2009 at 8:35 pm

  12. Trevor Mauch says:

    Hey Mike, thanks for the response!

    Okay, I added that string to the file… this is what we get now:

    File URL: http://www.thereibrain.com/resources/forms/Move%20In%20Move%20Out%20Form.doc – Wordpress URL: http://www.thereibrain.com

    It’s just a blank white page that says that.

    It shows that even for the user when they are logged in.

    Here’s the URL of that download:
    http://www.thereibrain.com/rental-property-move-inmove-out-checklist/84/

    You of course have to join to be a free member first… then when you go to download it… that stuff above shows.

    If you wouldn’t mind… is there a way you can email me when you respond to this thread? I forgot all about it until today.

    Thanks!

    – Trevor

    ReplyReply

    Comment made on November 10, 2009 at 12:36 am

  13. Mike Jolley says:

    @Trevor Mauch: Subscribe to the feed http://blue-anvil.com/archives/download-monitor-3-2-2-maintenance-release/feed/.

    Anyway, you should repeat that for a member only download and see if the file url it reports is wrong. If you don’t want to disclose its url email me instead.

    ReplyReply

    Comment made on November 10, 2009 at 2:28 pm

  14. Christian says:

    Right
    This subject is old but seem already not soved.
    Same problem free link is good but for members no.
    My side if I put
    $new = preg_replace(‘/\.\./’,”,$thefile); echo ”.get_bloginfo(‘url’).”.$new.”;
    I have now the good link for members

    Any solution or update ?

    ReplyReply

    Comment made on March 11, 2010 at 10:32 pm

Leave a Reply

Why ask?

About this site

Blue Anvil is the online web design journal & portfolio of , a web designer from Norfolk, England. Read More »
ThemeSlice
  • Featured work - More

    • Beefjack
    • Integrity
    • theotaku.com
  • Latest Tweet - More

    • New blog post: MiniCard 1.1.7 Update http://blue-anvil.com/archives/minicard-1-1-7-update/
  • Out of the blue - More

    • MiniCard 1.1.7 Update

      I have just uploaded 1.1.7 of MiniCard here and to the WordPress theme directory. This updates includes:

      • New networks; xing, gowalla, yelp, foursquare, mobileme, google buzz
      • A way to change link text and define multiple links of the same network
      • A way to define your own custom links + icons
      • Improved admin panel

      Hope you like it, and don’t forget you can show your support by purchasing the premium pack from here.

    • Switched: From Shared to VPS

      It’s been about two weeks now since I made the transition from a shared reseller hosting account to a VPS (Virtual Private Server) account – impressions so far, excellent performance but fiddly to configure.

      The reason I wanted to change from shared hosting was the fact the server was always being hacked (even though ALL my scripts were secure), there was frequent downtime, support blamed me for problems every time, and it was slow as hell.

      Those used to a shared hosting environment would probably not know where to start when faced with configuring a VPS. Luckily, a lot of it was pre-configured when I received my account – certainly some of the major security holes were patched. I was not satisfied with those however. As a victim of hacking in the past (previous host swears it was not there fault, something I don’t believe) I took extra care to secure it as a much I could – configuring brute force detection, the firewall, installing mod security (excellent rules for that here: http://www.atomicorp.com/wiki/index.php/Atomic_ModSecurity_Rules) and going though multiple guides (like this one: http://www.webhostingtalk.com/showthread.php?t=468168) with a fine-tooth comb.

      The result? My pages are loading at least 6 times faster, I have had no down time (or at least have not noticed any), and I feel in control and happy. No longer am I at the mercy of shared hosts :)

      If your interested, I chose ServInt as my provider as they offered a great deal, as well as being a managed service (so I’m not on my own if I screw things up). I was tempted by the bells and whistles of Media Temple, but felt the ServInt service was better value.

    • Download Monitor 3.2.2 Maintenance Release

      Download Monitor has received some more love and has been updated. Here’s the change log from the new version:

      • Small bugfix in uploader.php – cat ID
      • Changed stats graph calculation – thanks lggemini
      • Changes to headers in download.php to avoid caching
      • File Browser fixes – $root was clashing with something….
      • exclude_cat works in all sections of download_page now
      • Removed hardcoding of /uploads/
      • Added action to download.php – should be able to use it to stop a download if you want – maybe limiting downloads per day or something? Whatever you want…
      • Made it so if you post new file on ‘edit’ screen, the post date is updated.
      • Fixed the ‘blank meta’ section which blanks out custom field values when nothing is set.
      • Moved ‘allow_url_fopen’ check.
      • Someone said downloads don’t work with spaces in the name. They do! Wasting my time sonny…
      • All work and no play make jolley a dull boy
      • Had to rename capabilities so they work. Apologies if you have to set this up again! Cheers to Mark Dingemanse.
      • {category_ID} custom format tag added. Useful if you want to send someone to its category on the DL page I guess. Also added {category_other} so when no category is set “other” is shown – this is because the download page can show an ‘other’ section if you want it to.
      • You can now manually edit the post date on the edit download screen.

      If you have edited capabilities for download monitor user permissions, you’ll have to again sorry! This is because I named them too long. Also, you should check your forced downloads still work because there was a logic error meaning they may not have been forced after-all…

      Enjoy.

    • Mahousive update to Download Monitor (3.2)

      Today I completed the update for the Wordpress Download Monitor Plugin – many tweaks, fixes, and features added. There were no changes to the database structure so people upgrading should be fine. Here is the list from the change log:

      • {user} tag added for custom formats
      • ‘autop’ option fix
      • Download page buttons applied with CSS so they are easier to customise/translate.
      • Fix for pagination bug after editing a download
      • Category output fix on edit downloads screen
      • Category urls on download page use ID rather than name to prevent errors when cats have the same names.
      • exclude_cat added to download_page shortcode
      • Localised ‘hits’ ‘date’ ‘title’ on download page
      • Option to disable the download logging
      • Read file ‘chunked’ some people found large files were corrupted so this should help (fingers crossed)
      • Added show_tags option to download page – displays x amount of tags on the download page.
      • File Browser root setting and download.php logic/mime types modified thanks to Jim Isaacs (jidd.jimisaacs.com)
      • Interface Improvements
      • Bulk edit categories, custom fields, tags, member only downloads
      • Added roles for download monitor admin – should be able to use with a role manager plugin if you want anyone other than admin to access the admin section e.g. http://wordpress.org/extend/plugins/capsman/
      • Change redirect after add
      • Edit Cat names/parents
      • Dedicated tags and thumbnails fields (they still use meta table though)

      And yes, those category link bugs are fixed at long last, and you can edit category names finally. Phew!