Downloads Box

Downloads Box adds a box for your downloads and takes care of the formatting, automatically adding the proper icon to the links, even if the file is compressed, and redirects visitors to the registration page if not logged in.

The intention of this plugin is not to prevent piracy but encourage visitors to register, to maximize social interaction.

Just install the plugin or download it and FTP it to the plugin folder, and activate it. That will add an icon to your post editor’s toolbar (visual view)

To add a new downloads box, select your link, links, or nothing, and just place the cursor where you want the Downloads Box to appear. Then click the Downloads button and add a title for the downloads box in the popup window, that will appear after the word “Download”, or leave the input field empty to show the default text, to read “Download the files here”

Below is a sample of how it looks and the actual plugin files for download

Download Downloads Box

Downloads-Box.zip

You can download the latest version (just in case I dropped dead tired before to update the link in these pages) from the WordPress plugins directory.

Leave your comments, bug reports or suggestions below.

UPDATE:

I added a new feature to waive registrations. When selected, this plugin only works as a way to format the box and downloads, which will be available right away, regardless of being a registered user or not. This defeats the whole purpose of this plugin (encouraging registrations) but because some users requested it…

To add the option for the shortcode version, add waiveregistration=”1″ to the parameters.

I accept donations even if you find this plugin not as useful as you expected. In that case, of course, let me know and I’ll try to modify it to suit your needs, if I find some spare time.

  • Maria

    Sorry to bother you again Sergio. I have managed to create a box and download a file but there is no requirement for the user to register before downloading. Has this aspect been removed or am I missing something again?
    Maria:)

  • http://socialblogsitewebdesign.com Sergio Zambrano

    Maria: Wrapping up a single link with the downloads box button breaks the code. Try two links (two lines of text) or selecting one extra line before and after your link BEFORE to click on the button.
    Once you see the code the button generates, you can do it yourself next time, or just fix what you got. The bug is documented.
    This is wrong
    <a href="http://your.downloads.url.pdf">[downloads_box title="Download title here"]
    Your link's anchor text
    [/downloads_box]</a>

    This is right
    [downloads_box title="Download title here"]
    <a href="http://your.downloads.url.pdf">Your link's anchor text</a>
    [/downloads_box]

  • http://internetmarketingsmallbusiness.net/ John Flynn

    Great plugin. Not only does it work in situations where other plugins will not, but it also supports multiple download links.

    Excellent work. Now if we could find easier the ability to get rid of the link back, or to make that an affiliate link… that would be really perfect, because I’d promote the heck out of it. Lol

    If anyone wants to know how to set up multiple download links, it’s actually very simple. Just create the download links as you normally would, one on top of the other, then copy & paste the links list before the plugin’s [/] shortcode closing bracket, where the dummy link gets created by the downloads-box button (having nothing selected).

  • http://www.samsmy.name Samuel Bellemare

    Hi there!

    Great plugin! I used it on a WordPress site I’m working on!
    I have a small question, is it possible to include other characters in the name? I mean I tried to insert the ‘è’ and ‘é’ character in the name and the widget can’t show these characters… have an idea?

  • http://www.anderskitson.ca Anders Kitson

    How do I get rid of the callouts box that popsup saying you’ve just got acces to these downloads.

  • http://www.anderskitson.ca Anders Kitson

    Never mind I just edited your css file and put display none on #callout_cont Thanks this is exactly what I needed

  • http://socialblogsitewebdesign.com Sergio Zambrano

    Samuel:
    It works fine in my theme, as you can see the accented ‘o’ in ‘Downloads’. There must be some problem with your html head enconding. make sure it shows UTF8. You can also try to set the language of your blog to english, since there could be a bug on the core (languages other than english are usually less debugged than english version). MAKE SURE to check wordpress recommendations for language change first! to prevent database corruption.

  • http://manorlogz.co.uk Juan

    Hi

    Just wondering if you can ask people to use a special code to access the files.

    i.e. enter CHKAU to download your free MP3?

  • Al

    Hey there, awesome plugin.

    I’d really like to have a download box in the sidebar and then select which directory to scan for files based on which page the user is on. Is there any way to do this?

    Perhaps duplicating the widget functions and creating different widgets to use on different pages? The site I have in mind only has three pages.

    Many thanks!

  • http://www.jamessimpson.co.uk James Simpson

    Seems Im having bother with this, fresh install of wordpress and a fresh install of your download box, but I am unable to see the “icon” in the editors (visual) toolbar.

    Can you shed some light on this?

  • http://socialblogsitewebdesign.com Sergio Zambrano

    James:
    Make sure you expanded the toolbar with the little icon that looks like a color swatches palette (its tooltip says “show/hide kitchen sink”. If you don’t see two rows of icons above your “Visual View” post editor, you still need to find that button.

  • http://socialblogsitewebdesign.com Sergio Zambrano

    Al: You asked for it. You’ve got it!
    Downloads box has a new option called “page based”.
    It will look for a folder named the same as your page – sanitized name and will show the files inside that folder only. Now it’s your job to create the folders and organize them in your server.
    You can use “widget logic” plugin to choose what pages to display the widget or not.

  • http://www.jamessimpson.co.uk James Simpson

    Sergio, I’ve tried all that, i see two rows of icons but still nothing about the download box appearing.

  • http://www.jamessimpson.co.uk James Simpson

    Just updated to the new version that you released today, still nothing :s

  • http://www.puntacanaparadise.es Iain

    Hi there,

    I may have missed something but I want a pdf to be downloaded once the clients have left me their email and contact details. Not quite the same as registering, they need to fill in some basic details to get to the download.

    Can I do this with your plugin? I can’t see it? It download fine, by the way.

  • Al

    Awesome work, many thanks Sergio – I think that is a great addition to this plugin!

  • steve

    Hi Sergio,
    i want to upload a file with a pgp key in it. it come an alert that i can not upload this file because it is a security problem. how can i fix it!

  • http://socialblogsitewebdesign.com Sergio Zambrano

    lain: This plugin doesn’t customize the required info to register. That’s on wordpress login side. Try with some plugin to do so. For me, the info at registering was enough. If you want more look for “content dripping”, “subscriptions”, “gradual content” or “membership” plugins.

  • http://socialblogsitewebdesign.com Sergio Zambrano

    Steve: Try uploading the file with a different system. If that message you say is from Wordpres, try FTPing it. If that’s a message from your hosting control panel, try uploading with WordPress.
    Compressing the file will most likely fix it.

    By the way, there’s no icon image for pgp files. Get one from the web or modify any of the included ones, upload it to “filetype_icons” folder and then add it to the css file. Just duplicate any of the existing definitions and change the class name and background image to the icon you made. You’ll understand the pattern when you see it. Let me know if it’s not that easier.

  • http://dutulescu.com Alex

    Can it be embedded in the template, instead of posts/pages?

  • http://socialblogsitewebdesign.com Sergio Zambrano

    Alex: I haven’t tried it yet, but try with this:

    < ?php
    downloads_folder = 'downloads'; //path from your domains root
    $downloads_page_based = 0;
    $title ='Downloads';
    downloads_box_nocredit = 0;
    $downloads_box_description = 'Downloads box description";
    list_downloads($downloads_folder, $downloads_page_based, $title, $downloads_box_nocredit, $downloads_box_description);
    ?>

    Let me know what happens.

  • http://www.Vybee.com Jeff

    Hey, I like the idea of this plugin.

    I know you guys have an icon in the WordPress dashboard.

    But was wondering if there is a shortcode for implementing the functions of this plugin.

    We’re hoping to be able to use it through the Buddypress post box which does allow for shortcodes.

    Please let me know. Your good response is appreciated.

    - Jeff -

    .

  • http://socialblogsitewebdesign.com Sergio Zambrano

    Yes, I’ll include a shortcode version soon. First I need to emulate the css3 behaviors for IE7, at least, with jQuery. For now I released it as an admin tool.

  • Mareshah

    Hi, I’m trying to use this plugin for wordpress but the plugin download from wordpress does not have the filetype_icons folder. If possible I would like a copy of the icons. Thanks

  • http://socialblogsitewebdesign.com Sergio Zambrano

    Mareshah:
    I’v uploaded the missing folder. Although it was in the trunk, it wasn’t in the latest version folder, which I though was NOT the one the regular download action would take.
    Anyway, my bad. There it is complete again.
    For all the ones who figured it out using previous folder, congrats!

  • BioGuy

    Stop Second Callout?
    I’m using two instances of your “Downloads Box” on the same page; one for documents and one for related web links. Unfortunately every visitor sees two instances of the Callout box (the “You have permission…” box on the right).
    Is there a way to turn off one of them?

  • http://codesonweb.com napster

    Does the template of this Download box can be customized?

  • http://socialblogsitewebdesign.com Sergio Zambrano

    BioGuy:
    Not at the moment. Most of us prefer one Callout per box.

  • http://socialblogsitewebdesign.com Sergio Zambrano

    napster: Not without coding skills.
    Of course all the php is in your plugins folder and the css can be modified, but not from the admin panel like a playful theme.

  • http://www.tibiasmooth.com Cristian

    Hello Sergio, first of all thanks for this great plugin! The only problem that i have with it, is that i need to configure it so everyone can download the files, not only registered people. Can you please help me with this? Thanks!

  • http://socialblogsitewebdesign.com Sergio Zambrano

    Cristian:
    The main purpose of this plugin is to encourage registrations.
    Email me if I can develop a specific plugin if you want something different, or if you know how to dive in php code without putting your blog down, just replace both occurrences of is_user_logged_in() by a number 1.

    UPDATE: I just updated the plugin. It includes a new feature to waive registrations. You can select them from the widget or the shortcode. Instructions for the shortcode in the read-me file and instructions page.

  • Lois

    Hi, this plugin looks like exactly what I need but the link http://wordpress.org/extend/plugins/downloads-box/ says ‘plugin not found’ – is it available under a different name now? Or can someone suggest something else similar? Thanks!