Show audio file but require registration - suggestions for approach? I am converting my guitar lessons site to drupal. On my previous site, I displayed an audio link, and upon clicking it, one could play the audio if they were registered. If not registered they were taken to a page asking them to register, then redirected to the lesson. The audio was in a protected folder. I am trying to do similarly in drupal. Any tips on how to get started? I am new to drupal...

Here is what I think would be ideal:


For the lesson page, use selection rule (via panels, views, or whatever) to display the embedded audio for the registered user
For guest user, display the embedded audio player but via guest class use javascript so when they press play they are redirected to register page, then have them register with captcha then redirect to lesson page. Or simpler, for guest user, just display a "play" icon that takes them to register page.


Ideas?

Regards
You could create a views block for the anonymous user.

1) add a content path field

2) Under Rewrite results, rewrite the content path field and use it's token. 

Ex: &lt;a href="/user/register?destination=[path]"&gt; &lt;img src="/images/playbutton.jpg"&gt;&lt;/a&gt; 

Note: (the ?destination= tag, will send them to that page after registration).

3) Change the view access from permission to role and select anonymous user.

4) Add a contextual filter of nid(node ID), select provide default value, select content ID from url. 

Then you could use panels, a block, or a view block, then just give it a role of authenticated and put your player there.