Forum

This forum is now read-only. Support is provided at https://wordpress.org/support/plugin/sermon-browser/

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
File_with_download not showing the download link?
14 March, 2013
1:11 pm
Tsuua Kekale
Enthusiast
Members
Forum Posts: 27
Member Since:
26 January, 2013
sp_UserOfflineSmall Offline

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.

14 March, 2013
2:25 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

Moderators
Forum Posts: 1628
Member Since:
18 June, 2009
sp_UserOfflineSmall Offline

Yes, this issue has come up in the forum before.  See this topic for some past discussion:

http://www.sermonbrowser.com/f.....me-choose/

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:

http://pastebin.com/VvTFEbgX

Change the line to this one:

http://pastebin.com/bUsPApPY

 

Let me know if you have any questions about any of these options.

Ben Miller, Pathways Church, Appleton, Wisconsin, USA
Read the new FAQ, last updated 11/21/2013
Announcing version 0.45.12

20 March, 2013
5:21 pm
ddhservices
Saanichton, BC, CA
Enthusiast
Members
Forum Posts: 47
Member Since:
19 February, 2013
sp_UserOfflineSmall Offline

Thxs for this Ben. I just applied your point number 2 above - it works like a charm!

John Vickers, Church of Our Lord, Victoria, BC, CA
Customized Sermon Browser vs. 0.45.12 on WordPress 4.1

Forum Timezone: Europe/London

Most Users Ever Online: 381

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Rich Brown: 358

Matt Schlueter: 93

Mindy: 72

Don Johnson: 65

anointed: 57

0be1: 55

Member Stats:

Guest Posters: 7

Members: 3188

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1713

Posts: 7499

Newest Members:

marktest, deatles50, ValeriaGoodriz, dapedPup, oapedPup, Margarettoimb

Moderators: Ben Miller: 1628

Administrators: Mark Barnes: 435