• Hi there,

    i understand that if you use [wpaudio url="https://url.to/your.mp3" text="Artist - Song" dl="0"] , you can disable the download feature by inputing the following code dl=”0″

    But i am using the following html <a href="https://url.to/your.mp3" class="wpaudio">Artist - Song</a>

    what is the html code to disable the download or how to do it

    thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • I have exactly the same question. ??

    Thread Starter Fabmaclover

    (@fabmaclover)

    here is what i have done:

    go to you the wpaudio pluggin file and edit the “wpaudio.min.js” file.

    In line 31, you should have the code with the download link and name. do a quick search if it is not the right line.

    So what i did is, i erased the html code for the link and changed the name “download” for the the name of my site…

    you can see it in action on my website HERE

    Now if the developer gives us an update of the pluggin it will likely overwrite the wpaudio.min.js file so we may have to do it every update. but so far it is the only fix i have in mind.

    let me know how it works for you

    Fab

    Well I just saw this question, even if erasing the html and changing the name works, you can just edit the wpaudio.min.js file.

    You need to search this line: String(jQuery(elem).hasClass(‘wpaudio-nodl’)?”:’Download‘)+

    It’s just search and delete. Also there is a simplier way by adding a display:none”, but that keeps the link hidden into the code so if someone right clics with firebug they will see the link.

    Regards,

    A.

    Sorry, the complete line is String(jQuery(elem).hasClass('wpaudio-nodl')?'':'<a class="wpaudio-download" href="'+elem.href+'">Download</a>')+

    Hey guys. Thanks for your support.
    I was searching this download disable and finally i found here ??

    I want to ask to member amatoro: How can I delete track-durations to player?
    I only want to play each track without durations.. only the play button and done.

    there is some way to delete trackduration? i searched “wpaudio-slide” but i dont know how erase it… thanks!!

    Hi,

    You just need to go to your wpaudio.min.js and search this .slideDown() and delete it. But please do not erase the text previous to that code or the ;} that is after the code that needs to be deleted.

    I hope it works,

    A.

    Hey there,

    I think what you were trying to do was hide the download address. This stumped me for a while too when trying to put together a template. try this

    <?php echo do_shortcode(“[wpaudio url=’url.to/your.mp3′ text=’Artist – Song’ dl=’0′]”);?>

    Hope that helps someone

    hey raavin!

    this is PHP code, where should i put it?

    thanks ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to disable download using html code and not tags’ is closed to new replies.