Hey,
First off thanks for this great plugin! I'm trying to modify the url to the media files via a plugin to add a tracking prefix (similar to podtrac but a different service.) Rather than hard code it into my copy of the Sermon Manager plugin I figured I'd develop a plugin that hooked into Sermon Manager to allow adding any custom prefix for use with the various tracking providers. Unfortunately the hooks needed to do it are not very precise and require some clunky code that might not be future proof. At the moment there is:
sm_audio_player hook in '/includes/sm-template-functions.php'
and
wpfc-podcast-feed-custom-enclosure in 'views/wpfc-podcast-feed.php'
I was able to adjust the URL in the first one using preg_replace. A bit messy, but it works. But the second one wpfc-podcast-feed-custom-enclosure is coded in such a way where if you want to use the hook you have to completely re-code the enclosure section cause it doesn't send the original output in the filter. Instead of trying to re-code the enclosure section in my plugin I may just submit a pull request with a more refined hook for filtering the media URL.
Just wanted to see if anyone is still managing the project and what your thoughts were.
Thanks!
Hey, First off thanks for this great plugin! I'm trying to modify the url to the media files via a plugin to add a tracking prefix (similar to podtrac but a different service.) Rather than hard code it into my copy of the Sermon Manager plugin I figured I'd develop a plugin that hooked into Sermon Manager to allow adding any custom prefix for use with the various tracking providers. Unfortunately the hooks needed to do it are not very precise and require some clunky code that might not be future proof. At the moment there is: sm_audio_player hook in '/includes/sm-template-functions.php' and wpfc-podcast-feed-custom-enclosure in 'views/wpfc-podcast-feed.php' I was able to adjust the URL in the first one using preg_replace. A bit messy, but it works. But the second one wpfc-podcast-feed-custom-enclosure is coded in such a way where if you want to use the hook you have to completely re-code the enclosure section cause it doesn't send the original output in the filter. Instead of trying to re-code the enclosure section in my plugin I may just submit a pull request with a more refined hook for filtering the media URL.
Just wanted to see if anyone is still managing the project and what your thoughts were. Thanks!