@Sho-Down: Good idea! Thanks for helping out!
I have took a further look at the code and made a few minor tweaks:
<?php
/*
Plugin Name: podPress filter
Plugin URI:
Description: diplays custom code instead of the podPress line with the download button if a visitor is not logged in
Author: ntm
Version: 1.1
Author URI:
*/
add_filter('podpress_downloadlinks', 'customize_podpress_downloadlinks');
function customize_podpress_downloadlinks($podPressDownloadlinks) {
if ( is_user_logged_in() ) {
return $podPressDownloadlinks;
} else {
$siteurl = get_site_url();
return '<div class="podPress_downloadlinks"><span id="podPressPlayerSpace_'.$GLOBALS['podPressPlayer'].'_PlayLink" style="display:none">'.$hideplayerplaynow_divider.__('Play Now', 'podpress').'</span>'.'<a href="'.$siteurl.'/wp-login.php">Log in</a> to download the file. It\'s free and instant to <a href="'.$siteurl.'/wp-login.php?action=register">register</a>!</div>';
}
}
?>
This way it is not necessary modify the site URL manually and the HTML structure is more like the original line.
@Imp3rfections:
This little Add-On plugin works if you want to restrict the access to all of your episodes. Furthermore if use this plugin then don't use the Premium Content function of podPress.