Blubrry Podcasting Community Forum
Hey Blubrry => Blubrry PowerPress WordPress Plugin => Topic started by: a--to--b on January 31, 2010, 08:54:35 am
-
with the powerpress setting for "no links option" checked, but shortcode used in a post, the links DO show up. is there any way around this? what would be a sensible short term hack of the plugin?
-
This appears to be a bug. This bug will be fixed in the next release of PowerPress.
To fix your own copy, go to about line 1566 (may be off by a line or two) that has this line:
$return .= powerpress_get_player_links($post->ID, $feed_slug, $EpisodeData );
Comment out this line by placing to forward slashes in the front of the line:
//$return .= powerpress_get_player_links($post->ID, $feed_slug, $EpisodeData );
Add a new line just below the }, and paste the following:
if( !isset($EpisodeData['no_links']) )
{
$return .= powerpress_get_player_links($post->ID, $feed_slug, $EpisodeData );
}
The final code should look like this (excluding the ...):
...
if( !isset($EpisodeData['no_player']) )
{
$return .= apply_filters('powerpress_player', '', powerpress_add_flag_to_redirect_url($EpisodeData['url'], 'p'), array('feed'=>$feed_slug, 'image'=>$image_current, 'type'=>$EpisodeData['type']) );
//$return .= powerpress_get_player_links($post->ID, $feed_slug, $EpisodeData );
}
if( !isset($EpisodeData['no_links']) )
{
$return .= powerpress_get_player_links($post->ID, $feed_slug, $EpisodeData );
}
...