Hi all

I use this module on my website and i want to hide the link, protect it from download.

I manage to hide from the view but not from "html source".

Best regards.
ArchGallileu

www.gasparsantos.eu
www.quartetodouro.eu
www.coproducao.eu

Comments

Anonymous’s picture

Is it possible to do something like

http://drupal.org/node/1046744#comment-4086032

on jplayer to hide the url?

Best Regards
ArchGalileu

damiandab’s picture

i have the same problem , I don't know how to protect the file from download, I can just click on the player on the audio title and then right click and download.

@ArchGalileu

how did you manage the url from the view? are your files protected from "right click and save file"?

best,
damian

Anonymous’s picture

Hi damiandab

I did't manage, in my case it's not so important

If arrange to do it say me please.

Best regards
ArchGalileu

www.gasparsantos.eu
www.quartetodouro.eu
www.cameratanovnorte.eu

ldweeks’s picture

Title: Hide from source the "media" url » Hide the link to the audio file
Version: 6.x-2.6 » 7.x-2.x-dev
Issue tags: +Needs backport to D6
StatusFileSize
new13.14 KB

I hope you don't mind me taking the liberty to change the version number and the issue name. I have created a patch against 7.x-2.x head to provide an option to hide the link to the file. On the display formatter for the field, you can now select "None" under the "Link Text" option.

ldweeks’s picture

Status: Active » Needs review
krabbe’s picture

I applied patch from #4 against 2.x-dev from Jan-1st-2013. I can change "Link text" to "none", but the link is still showing up.

It would be nice to have this feature working.

Status: Needs review » Needs work

The last submitted patch, soundmanager2-1082344-3.patch, failed testing.

krabbe’s picture

Status: Needs work » Needs review

I have to correct my last post. Switching from UI 360 to inline player made the link go away and switching back didn't bring it back.
Thank you, Idweeks!

zirafa’s picture

Title: Hide the link to the audio file » Add field formatter option to hide link text for SM2 player
StatusFileSize
new57.11 KB
new4.98 KB

Changing the title to better reflect the task at hand. Hiding the link text is a separate issue from right-click + download.

The patch in #4 creates an empty <a> element. This is bad for web semantics and screenreaders. A better approach is to just hide the element with CSS.

Attached is a patch which adds an additional field formatter option for Link Text called "" which when selected, hides the element with CSS.

zirafa’s picture

Additionally patch in #9 fixes a bug where URL_OPTIONS were not being set for some of the audio URLs.

zirafa’s picture

Updated the patch from #9 to use text-indent:-9999px to hide the text instead of display:none (which broke inline-player and page-player).

omd’s picture

It would be nice to have the option to alter or omit the link text on all players. I'd prefer to have the option to handle and style my download/title links separately from the player. Its just gives you more options for page layout. All the player really needs to do is have a play button. Title info and download links can all be added as needed to layouts using views.

Anonymous’s picture

I will try this patch and see how it goes :-)

Best regards
ArchGalileu

jerry’s picture

Issue summary: View changes

Patch in #11 is working fine for me.