Topic RSS
3:59 pm
7 December, 2011
OfflineFirst off, love this little plugin.
I am using it for a new site I just developed. So far I have four sermons. On the first one the download link works. It didn't at first and I am not sure how I fixed it. The last two I added this week the download link doesn't work. The code seems correct. The link to the page is http://cornerstonebaptist.org/media/
One that works:
One that doesn't:
Dynamics for a Church Alive
I am using version 45 and MediaElement.js – HTML5 Audio and Video plugin.
Can't seem to figure it out.
Edit: I did follow direction on this post http://www.sermonbrowser.com/f…..rowsers-1/ and I have tried these options for shortcodes; all sermons play in ff but only the first two have working download links.[audio mp3="%SERMONURL%"]
[audio src=%SERMONURL%]
[audio src="%SERMONURL%" format="mp3"]
4:02 am
12 December, 2011
OfflineHi Melanie,
I am also using MediaElement.js – HTML5 Audio and Video plugin.
On most of our web site sermon pages I have both the Audio Player for the MP3 and a MS Word document for the bible study notes. I can download the MS Word document by clicking on its icon, but I cannot download the MP3, I can only play it.
Web link for one of our bible studies: http://gcbcrr.org/sermons-2/?s…..mon_id=107
My question is how did you create the download link on your sermons page to download the MP3? Any help and/or direction would be greatly appreciated. I am new to both WordPress and Sermon Browser.
chris
9:59 pm
7 December, 2011
OfflineChris said
Hi Melanie,
I am also using MediaElement.js – HTML5 Audio and Video plugin.
On most of our web site sermon pages I have both the Audio Player for the MP3 and a MS Word document for the bible study notes. I can download the MS Word document by clicking on its icon, but I cannot download the MP3, I can only play it.
Web link for one of our bible studies: http://gcbcrr.org/sermons-2/?s…..mon_id=107
My question is how did you create the download link on your sermons page to download the MP3? Any help and/or direction would be greatly appreciated. I am new to both WordPress and Sermon Browser.
chris
Chris
You need to add some code to the template file. Go to Sermon Browser>Templates. On the Sermon Page section (second section) Find:
<p class="sermon-tags">Tags:[tags]</p>
[embed_loop]
and change to:
<p class="sermon-tags">Tags: [tags]</p>
[files_loop]
[file_with_download]
[/files_loop]
[embed_loop]
As I posted this "sort of works" for me. Still searching for answer to make my links consistently work
Also, I followed this code change on this thread. http://www.sermonbrowser.com/forum/suggestions/html5-player-for-mobile-browsers/
It is around line 698
1:51 am
12 December, 2011
OfflineThanks jonahgirl.
Since my post above I decided to change audio players. After researching other posts as well it appears that the current sermon page template was written to use the WP Audio Player Version 2.0.4.1
So I deactivated the MediaElement.js – HTML5 Audio and Video plugin and activated the WP Audio Player Version 2.0.4.1
This Audio Player's display on the web page can be customized, so I changed it from the default to match the color scheme of our web site. I now have the download link to the right of the audio player icon, and it works fine.
Web link for bible study showing audio player, download link and MS Word document. http://gcbcrr.org/sermons-2/?s…..mon_id=107
I appreciate the information you sent and will refer to it again in the future if needed.
6:22 pm
7 December, 2011
OfflineStill trying to figure this out. My client wants the sermon to play on iPads and iPhones so I am stuck using the html 5 player. I find it strange that the link works in two sermons but not the other two.
The link code is correct in the none downloading files. I even added the css rule to make links underlined and as you can see the dowload links are underlined.
Melanie
9:24 pm
12 December, 2011
OfflineIn one of the other posts "Download Link" post 5 you can read the following respecting the HTML 5 player problems. It seems that Sermon Browser 0.45 has issues in displaying the Download Link, but according to Mark Barnes it should work in SB 0.46 when out of beta and released, see below: (I guess time will tell).
It's a limitation of 0.45, but in 0.46 the download link will work with all audio players, though the syntax will be slightly different. Instead of[file_with_download], you'll use [file mp3download="true"]
0.46 is currently in beta testing.
Chris
10:51 pm
15 April, 2012
OfflineI realize that this discussion is probably stale. I was running into the same problem of missing download links when using the MediaElement player. For what it's worth, I was able to hack them back into existence on my server. Can't guarantee this will work for anyone else, but it works for me for sermon files stored locally as well as on a remote cloud host.
Edit wp-content/plugins/sermon-browser/sb-includes/frontend.php. Search for "function sb_print_url_link". This is the function that gets inserted by the [file_with_download] shortcode. Change the line that reads:
if (substr($url, -4) == ".mp3" && function_exists('ap_insert_player_widgets')) {
to read:
if (substr($url, -4) == ".mp3" ) {
In other words, just remove the check for the "ap_insert_player_widgets" function. It's not defined because I'm using the MediaElement player instead.
I have no idea what side-effects this hack might have, but in the absence of the AP player I can't see what it'll break.
Cheers…
Ron
mrstanwell said
I realize that this discussion is probably stale. I was running into the same problem of missing download links when using the MediaElement player. For what it's worth, I was able to hack them back into existence on my server. Can't guarantee this will work for anyone else, but it works for me for sermon files stored locally as well as on a remote cloud host.
We just put the following in our MP3 Shortcode setting:
[mejsaudio src="%SERMONURL%"]<p><a href="%SERMONURL%">Download audio file</a></p>
The download link always appears.
Maranatha!
Don Johnson
Jer 33.3
7:04 am
15 April, 2012
OfflineDon Johnson said
We just put the following in our MP3 Shortcode setting:
[mejsaudio src="%SERMONURL%"]<p><a href="%SERMONURL%">Download audio file</a></p>
Well. I don't feel nearly as clever now as I did. Hrrrmph. ;-)
And actually, your approach appears better when dealing with remotely stored files (as I am). The SERMONURL contains a "show" query to the SB plugin as opposed to a "download" query which you get with the [file_with_download] shortcode. When I post a "show" query, my browser ends up downloading the file straight from the remote host on which it is stored. When I post a "download" query however (as happens with the "Download" link after my hack), the mp3 file comes down via the server on which my WP site is running. Now, the whole point of storing my audio remotely is to divert the media bandwidth usage off my WP host. Getting the "Download" link back with my hack ensures that the media downloaded using it chews up WP host bandwidth twice: once from the media host to WP host, then again down to my browser. Ugh. That will not do.
A minor downside to using the SERMONURL approach (i.e. "show" query) is that some browsers will simply start playing the media inline rather than actually downloading it (Safari, I'm looking at you…). I'm remedying that for the moment by forcing download using .htaccess on my media host.
Thanks for the tip, Don…
Ron
Most Users Ever Online: 40
Currently Online:
11 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
malpan: 2453
jogen: 2440
VanWatterson: 652
GeraldSebring: 364
LucasWoltman: 362
RandellFeenstra: 362
Member Stats:
Guest Posters: 7
Members: 2062
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 2
Topics: 1071
Posts: 4042
Newest Members: richdorm, Aaron Velasquez, aaronv, dave5884, tomduckering, ccwebb
Moderators: Ben Miller (386)
Administrators: Mark Barnes (425)
Log In
Register
Home



