WordPress.org

Support

Support » Plugins and Hacks » [Resolved] No effect / no result

[Resolved] No effect / no result

  • Hey Drew (and team)

    Thanks for this, seems great!
    Right now though, I can’t get it to work.

    I’m using WP Audio player to play music, and when I write the word ‘download’ for example and hyper link it to the place my MP3s are kept (http://eisandnose.com/audio/)
    it brings up another audio player instead of a link.

    I’ve checked to see if the file made it into my wp content and it’s there.
    Can’t work out how to get around it… Any thoughts?

    Thanks!

    http://wordpress.org/extend/plugins/download-shortcode/

Viewing 15 replies - 1 through 15 (of 26 total)
  • Nothing seems to be happening at all 🙁

    Is there a tutorial, something I should be doing or some code I should be inserting with the mp3 link?

    Ah, ok scrap that…

    Is there a tutorial, something I should be doing or some code I should be inserting with the mp3 link?

    I had a go at copying some code from some of the previous threads, and now I have a white screen show up with the URL http://eisandnose.com/download/http://eisandnose.com/audio/ComaCat%E2%80%93RoundTableKnightsRemix.mp3%E2%80%B3

    the short code i’ve put in reads –
    [download label=”Download here”]http://eisandnose.com/audio/Coma Cat – Round Table Knights Remix.mp3″[/download]

    Sorry, am an absolute novice here so wil need as detailed walkthrough as possible!

    Thank you!

    Plugin Author Drew Jaynes

    @drewapicture

    Docs Czar

    Hi Andy,

    First things first:
    Have you tried uploading a file without spaces in the filename? I only ask because there are many documented problems with WordPress being unable to handle files with spaces in the filenames.

    Second:
    Have you already visited Settings > Permalinks and re-saved your Permalink settings? Was WordPress able to write to your .htaccess file?

    Third:
    If the answer to the second part of the second question was no, you might try disabling rewrites just for the Download Shortcode plugin by dropping the following into your theme’s functions.php file:

    add_filter( 'fds_rewrite_urls', '__return_false' );

    Righto, I’ve done the permalinks refresh. No change there.

    What do you mean when you say write my .htaccess file?
    I’ve searched for it in my FTP. It appears, but opaque compared to other files.
    I’m guessing this means it’s hidden? Anyway, after downloading it to my desktop it doesn’t appear, so i’m not sure how i’d check if it was written or not!?

    I put that snippet into my functions.php file and it doesn’t seem to do anything.
    I’m still getting that white screen on download.

    Really stuck on this one, sorry. Wish i was better at this!

    My functions.php looks like this…

    require_once locate_template(‘/lib/utils.php’); // Utility functions
    require_once locate_template(‘/lib/init.php’); // Initial theme setup and constants
    require_once locate_template(‘/lib/admin.php’); // Back-end functions
    require_once locate_template(‘/lib/envato/index.php’); // Auto update
    require_once locate_template(‘/lib/config.php’); // Configuration and constants
    require_once locate_template(‘/lib/cleanup.php’); // Cleanup
    require_once locate_template(‘/lib/widgets.php’); // Sidebars and widgets
    require_once locate_template(‘/lib/template-tags.php’); // Template tags
    require_once locate_template(‘/lib/actions.php’); // Actions
    require_once locate_template(‘/lib/scripts.php’); // Scripts and stylesheets
    require_once locate_template(‘/lib/post-types.php’); // Custom post types
    require_once locate_template(‘/lib/shortcode.php’); // shortcodes
    require_once locate_template(‘/lib/metaboxes.php’); // Custom metaboxes
    require_once locate_template(‘/lib/custom.php’); // Custom functions
    add_filter( ‘fds_rewrite_urls’, ‘__return_false’ );

    I’m guessing it’s okay to just drop that snippet in at the end like that?

    Plugin Author Drew Jaynes

    @drewapicture

    Docs Czar

    What do you mean when you say write my .htaccess file?

    When you save your permalink settings, WordPress writes some information to your .htaccess file. If it saves properly, you just get the standard ‘Permalink structure updated.’ message at the top.

    If it doesn’t save, you get a red warning at the top.

    I was asking if it saved to see if maybe WordPress was having difficulty writing to the .htaccess file.

    I put that snippet into my functions.php file and it doesn’t seem to do anything.
    I’m still getting that white screen on download.

    With that snippet in your theme’s functions.php file, can you copy the link URL the download shortcode generates on the front-end of your site and paste it here?

    I’m guessing it’s okay to just drop that snippet in at the end like that?

    Yes, that should be fine.

    ^ That. Was awesome.
    Thank you!

    Ok, where can I find this download shortcode, URL link and do you mean to post it into the functions.php?

    I think i’m missing something… Does Download Shortcode bring up a front end user menu? Because, at the moment all that seems to have happened is, i’ve downloaded the plugin, and it has no areas for user interaction. – will I have to write this – [download label=”Download here”] and [/download] into every post?

    Sorry about this Drew, thanks for being so persevering!

    Plugin Author Drew Jaynes

    @drewapicture

    Docs Czar

    Sorry about this Drew, thanks for being so persevering!

    Worry not, hopefully we can figure this out together.

    Ok, where can I find this download shortcode, URL link and do you mean to post it into the functions.php?

    When you add a download shortcode to a post or page from the WordPress dashboard, it looks something like this:

    [download label="Download here"]http://eisandnose.com/audio/Coma Cat - Round Table Knights Remix.mp3"[/download]

    But when you view that link from the front-end of the site, e.g. viewing your post or page, it just looks like a link with the label of ‘Download here’, correct?

    I’m asking you to copy the URL that ‘Download here’ links to on the front-end and paste it back here to analyze.

    Ooop! Sorry! Gotcha!

    http://eisandnose.com/2010/10/comba-romba/

    ignore ‘Download’ … That leads to another open tab.

    ‘Download Here’ is the one to focus on.

    Plugin Author Drew Jaynes

    @drewapicture

    Docs Czar

    I’ve said this before but I’ll say it again. Have you tried renaming the file so there are no spaces in the filename?

    Try renaming this:
    Coma Cat - Round Table Knights Remix.mp3
    to this:
    ComaCat-Round_Table_Knights_Remix.mp3

    Upload the new file through WordPress and create a new download shortcode. Update the post and send me the link.

    Plugin Author Drew Jaynes

    @drewapicture

    Docs Czar

    Andy,

    Did you upload the file through WordPress or manually to a directory called /audio/ in your site’s home folder?

    If you’ve been uploading to some directory called /audio/ in your site’s home folder that’s probably why it’s not working.

    You can still manually upload files if you want, but you need to move your /audio/ folder to be inside of /wp-content/uploads/

    Plugin Author Drew Jaynes

    @drewapicture

    Docs Czar

    So for instance,

    Your original link of:

    http://eisandnose.com/audio/ComaCat-Round_Table_Knights_Remix.mp3

    Would become:

    http://eisandnose.com/wp-content/uploads/audio/ComaCat-Round_Table_Knights_Remix.mp3

    Then, your download shortcode would change from:

    [download label="Download here"]http://eisandnose.com/audio/Coma_Cat-Round_Table_Knights_Remix.mp3[/download]

    to this:

    [download label="Download here"]http://eisandnose.com/wp-content/uploads/audio/Coma_Cat-Round_Table_Knights_Remix.mp3[/download]

    If that works, you can remove that line from your theme’s functions.php file.

    I’ve uploaded all my MP3s into the Audio file of my FTP. Thus the http://eisandnose.com/audio

    I’ve had to manually upload the files because they are bigger than what the uploader in wordpress permits.

    Is there any way we could edit the download shortcode to permit ‘audio’ instead?

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘[Resolved] No effect / no result’ is closed to new replies.