Sermon Manager Does Not Allow Downloading

Issue #39 resolved
Gee Hill created an issue

When I click on the download the sermon title under "download files" under the sermon player bar, it does not download but only goes to the location of the file and plays the mp3 on a default browser.

How can I get it to download the file into my downloads folder?

Thank you. I love the plug in!

Comments (4)

  1. Kyle Horberg

    Gee,

    Your browser is trying to be helpful and handle the file type itself. Understandably, you want different behavior.

    You have basically two options.
    1) You can do the classic thing of right-click and press save as or what ever your browser shows.
    2) You can install the download shortcode plugin and modify SM to work with the plugin. The plugin rewrites the header of the file request and thus tells your browser to download instead of play the file. I've written how to all this here.

  2. Gee Hill reporter

    Thanks khornberg for the response! I am using Delightful Downloads [http://wordpress.org/plugins/delightful-downloads/] will that work instead of Download Shortcode? All I want is for the linked sermon title that have "Download Files" above it (on the individual sermon page) to automatically download rather than play in the browser player.

    If it will only work with Download Shortcode can I install it without it interfering with Delightful?

    Do I then add the code you have written on your website link?

    Thanks again. I REALLY appreciate it.

  3. Kyle Horberg

    After a quick look at delightful downloads, you can probably use it in conjunction with download short code. Since you are using delightful downloads, I wouldn't add another plugin.

    My code is set up for download shortcode but you can replace that code with some code that will work with delightful downloads.

    About line 17 of the first example, you'll see do_shortcode ( <code> ); replace that function call with the delightful download short code for a single downloadhttp://ashleyrich.com/wordpress/plugins/delightful-downloads/documentation/shortcodes/ddownload/ and that should do it.

    Kyle

  4. Log in to comment