<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: Preventing Audio Downloads</title>
		<link>http://www.themolitor.com/forums/topic/preventing-audio-downloads</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Preventing Audio Downloads</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 16:59:25 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/preventing-audio-downloads" rel="self" type="application/rss+xml" />

		<item>
			<title>vukmaster on "Preventing Audio Downloads"</title>
			<link>http://www.themolitor.com/forums/topic/preventing-audio-downloads#post-8294</link>
			<pubDate>Fri, 30 Mar 2012 14:16:05 +0000</pubDate>
			<dc:creator>vukmaster</dc:creator>
			<guid isPermaLink="false">8294@http://www.themolitor.com/forums/</guid>
			<description><p>sorry my code from 2 posts ago seems to have screwed this page up
</p></description>
		</item>
		<item>
			<title>vukmaster on "Preventing Audio Downloads"</title>
			<link>http://www.themolitor.com/forums/topic/preventing-audio-downloads#post-8293</link>
			<pubDate>Fri, 30 Mar 2012 14:13:52 +0000</pubDate>
			<dc:creator>vukmaster</dc:creator>
			<guid isPermaLink="false">8293@http://www.themolitor.com/forums/</guid>
			<description><p>OK I figured it out.  there are 3 simple mods.  no errors generated.  basically we add a span element that sits on top of each song link element.  this prevents right clicks from accessing the song link.</p>
<p>1) custom css: the new span has to sit on top and cover the song name entirely...<br />
<pre><code>.songs li {position: relative !important; display: block; float: left; overlfow: hidden;}
.dlblock {position: absolute !important; height:100%; width:100%; z-index:2; background:none !important;}</code></pre>
<p>2) php: add a line to index.php, page.php, search.php, single.php, and category.php right before each song link is retrieved so the loop looks like this...<br />
<pre><code>foreach ($attachments as $attachment) {
			echo &#34;&#60;li&#62;&#60;span class=&#039;dlblock&#039;&#62;&#60;/span&#62;&#34;;
			echo wp_get_attachment_link($attachment-&#62;ID);
			echo &#34;&#60;/li&#62;&#34;;
		}</code></pre>
<p>3) javascript: tie the new span's mouse events to the original link's events by adding this into custom.js (preferably under "//SONG STUFF").  note click events work differently and don't need to be tied.<br />
<pre><code>var songBlock = jQuery(&#34;ol.songs li span&#34;);
	songBlock.live(&#039;mouseover&#039;, function(){
		jQuery(this).next(&#039;a&#039;).trigger(&#039;mouseover&#039;);
	});
	songBlock.live(&#039;mouseout&#039;, function(){
		jQuery(this).next(&#039;a&#039;).trigger(&#039;mouseout&#039;);
	});</code></pre>
<p>I think that works.  I tested in google chrome.
</p></description>
		</item>
		<item>
			<title>vukmaster on "Preventing Audio Downloads"</title>
			<link>http://www.themolitor.com/forums/topic/preventing-audio-downloads#post-8280</link>
			<pubDate>Fri, 30 Mar 2012 04:40:56 +0000</pubDate>
			<dc:creator>vukmaster</dc:creator>
			<guid isPermaLink="false">8280@http://www.themolitor.com/forums/</guid>
			<description><p>this is the what i have so far...</p>
<p>custom css:</p>
<p>.songs li {position: relative !important;}<br />
.dlblock {width:100%; position: absolute !important; height:100%; z-index:2; background:none !important;}</p>
<p>modified template</p>
<p>	if ($attachments) {<br />
		echo "&#60;ol class='songs'&#62;";<br />
		foreach ($attachments as $attachment) {<br />
			echo "
<li>&#60;span onMouseOver='this.nextSibling.onMouseOver();' onMouseOut='this.nextSibling.onMouseOut();' onclick='this.nextSibling.onClick();' class='dlblock'&#62;&#60;/span&#62;";<br />
			echo wp_get_attachment_link($attachment-&#62;ID);<br />
			echo "</li>
";<br />
		}<br />
		echo "";<br />
	}</p>
<p>it generates a javascript error every time a song is moused over, moused out of, or clicked, but clicking does make the song play...
</p></description>
		</item>
		<item>
			<title>vukmaster on "Preventing Audio Downloads"</title>
			<link>http://www.themolitor.com/forums/topic/preventing-audio-downloads#post-8278</link>
			<pubDate>Fri, 30 Mar 2012 03:15:21 +0000</pubDate>
			<dc:creator>vukmaster</dc:creator>
			<guid isPermaLink="false">8278@http://www.themolitor.com/forums/</guid>
			<description><p>I'm working on a modification to stop the files from being downloadable.  I've layered a 'span' element on top of each of the song 'a' elements.  by making this new element's click event trigger the song's click event, the song plays without a problem.  but when you right click &#62; save as, you get to save an html doc.  i'm just having an issue triggering the mouseover/mousout events, for some reason they don't work like the click event.  any idea why that is?  i guess it's not critical, but i'd love to have the song titles animate.
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Preventing Audio Downloads"</title>
			<link>http://www.themolitor.com/forums/topic/preventing-audio-downloads#post-5653</link>
			<pubDate>Wed, 11 Jan 2012 13:22:34 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">5653@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>If you're concerned about users downloading audio, the best thing to do is either (1) only provide a sample of the songs or (2) audiomark the songs like in the demo site.</p>
<p>Hope that helps.</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>ThePRFirm on "Preventing Audio Downloads"</title>
			<link>http://www.themolitor.com/forums/topic/preventing-audio-downloads#post-5651</link>
			<pubDate>Wed, 11 Jan 2012 12:57:33 +0000</pubDate>
			<dc:creator>ThePRFirm</dc:creator>
			<guid isPermaLink="false">5651@http://www.themolitor.com/forums/</guid>
			<description><p>Is there any way I can prevent the average user from downloading the MP3 files attached to my posts?
</p></description>
		</item>

	</channel>
</rss>
