This forum is now read-only. Support is provided at https://wordpress.org/support/plugin/sermon-browser/
26 January, 2013
I just noticed that while my testsite shows the download link with file_with_download shortcode in the template, my actual website does not. I downloaded my test site's sermon.php, dictionary.php and frontend.php files and uploaded those to the actual site, but still the link is not showing.
Has anyone else had similar problems or ideas what might be wrong? Both sites use same theme.
18 June, 2009
Yes, this issue has come up in the forum before. See this topic for some past discussion:
The problem is that the function used by the "file_with_download" tag checks to see if you are using the old WordPress Audio Player plugin. If it sees the plugin, it adds the download link, and if it does not, it leaves the download link off. I have no idea why this check is in there.
There are three workarounds that I see, the first two of which are discussed in the topic I linked above.
1. You can install and activate the old WordPress Audio Player plugin. This is the one by Martin Laine. Even if you don't use it, and you use the MediaElement.js plugin, when Sermon Browser sees that the Audio Player plugin is activated, you'll see the download link. I don't really like this solution because I don't like having extra plugins activated that I'm not using, but it will work.
2. You can add a download link to the MP3 shortcode box on the Sermons, Options screen. For example, if you are using MediaElement.js, your MP3 shortcode box could be:
[mejsaudio mp3="%SERMONURL%" preload="none"]<p><a href="%SERMONURL%">Download MP3 Audio File</a></p>
The advantage with this one is that it is easy to change the way your download link looks anytime you like.
3. Finally, you could change the function code so that it doesn't care what audio player you are using, and it will add the download link anytime you use the file_with_download template tag.
This requires a change to sb-includes/frontend.php. Remember to backup the file before you edit. The function we are looking at is named sb_print_url_link( ), which you'll find somewhere around line 695. In that function, find the line that looks like this:
Change the line to this one:
Let me know if you have any questions about any of these options.
19 February, 2013