Is there an easy way to remove the word "download" from above the mp3/wave link on the generated node?

Comments

tamerzg’s picture

Status: Active » Closed (works as designed)

Yes its a matter of permission settings.
Disable this permissions for user roles you don't want to access download link: 'download own audio files' , 'download all audio files'

eggthing’s picture

Thanks!

But I'd like to keep the downloaded audio file and even preferably replace it with a button that says "download". But for now removing the word "download" would be helpful.

tamerzg’s picture

Easy way is trying to remove it with css, maybe text-intend:-9999px.
Otherwise you can overwrite theme_audiofield_formatter_audiofield_embedded() in your own theme, just copy that function from AudioField module "audiofield_formatter.inc" file and replace the lines
<b>Download:</b> with whatever you need there.

eggthing’s picture

Thanks! I will try that.

Any idea how to replace the downloadable link with a button?

Or better yet, to have a button in $links in the same way the audio module has a "Download audio file"?

tamerzg’s picture

Since this is a link we can't replace it with form button. But you can theme the div element surrounding the link to look like button. Maybe this tutorial can help you: http://woork.blogspot.com/2008/06/beautiful-css-buttons-with-icon-set.html

eggthing’s picture

Thanks!