Changeset 737860
- Timestamp:
- 07/08/2013 05:33:47 PM (13 years ago)
- Location:
- sermon-browser/trunk
- Files:
-
- 4 edited
-
readme.txt (modified) (4 diffs)
-
sb-includes/admin.php (modified) (3 diffs)
-
sb-includes/frontend.php (modified) (4 diffs)
-
sermon.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sermon-browser/trunk/readme.txt
r737797 r737860 4 4 Tags: sermons, podcast, mp3, church, bible, audio, widget, embed, video, esv, wpmu, preach, iTunes, preacher, listen 5 5 Requires at least: 2.9.2 6 Tested up to: 3.5. 16 Tested up to: 3.5.2 7 7 Stable tag: trunk 8 8 License: GPLv3 or later … … 19 19 1. Store thousands of sermons, and **search** them by topic, preacher, bible passage or date. 20 20 2. Full **podcasting** capabilities, including custom podcasts for individual users. 21 3. Sermons uploaded in mp3 format can be **played directly** on your website using your choice of WordPress MP3 plugins (including [ 1PixelOut Audio Player](http://wpaudioplayer.com/)).21 3. Sermons uploaded in mp3 format can be **played directly** on your website using your choice of WordPress MP3 plugins (including [MediaElement.js](https://wordpress.org/plugins/media-element-html5-video-and-audio-player/)). 22 22 4. Three optional **sidebar widgets** can display sermons on all of your posts or pages. 23 23 5. **Embed videos** and other flash files from sites such as [YouTube](http://www.youtube.com/) or [Vimeo](http://www.vimeo.com/), using either HTML code provided by those sites, or shortcode providing by a WordPress plugin. … … 250 250 == Upgrade Notice == 251 251 252 = 0.45.9 = 253 Six more bug fixes. 254 252 255 = 0.45.8 = 253 256 More bug fixes, collated and patched by [Ben Miller](http://www.sermonbrowser.com/forum/profile/bhengh/). … … 289 292 290 293 == Changelog == 294 295 = 0.45.9 (8 July 2013) = 296 * **Bug fix:** Auto fill of Bible books on Sermon edit admin screen works better ([link](http://www.sermonbrowser.com/forum/sermon-browser-support/adding-second-bible-passage-bug/)). 297 * **Bug fix:** Fix Bible passage link on function sb_display_sermons ([link](http://www.sermonbrowser.com/forum/sermon-browser-support/relative-vs-absolute-url-on-home-page/)). 298 * **Bug fix:** Fix sermon title link on Recent Sermons widget. 299 * **Bug fix:** Loosen requirements for a valid header from MP3 at external URL ([link](http://www.sermonbrowser.com/forum/sermon-browser-support/patch-for-invalid-url-problem-on-url-import/)). 300 * **Bug fix:** Fix "No Sermons Found" bug when sermon is missing Series info. 301 * **Bug fix:** Widget miniplayer didn't work with MP3 files attached via URL ([link](http://www.sermonbrowser.com/forum/sermon-browser-support/mini-player-not-working-1/)). 291 302 292 303 = 0.45.8 (31 May 2013) = -
sermon-browser/trunk/sb-includes/admin.php
r723323 r737860 795 795 if(ini_get('allow_url_fopen')) { 796 796 $headers = array_change_key_case(get_headers($url, 1),CASE_LOWER); 797 if ($headers[0] == 'HTTP/1.1 200 OK') { 797 $matches = array(); 798 $matched = preg_match('#HTTP/\d+\.\d+ (\d+)#', $headers[0], $matches); 799 if ($matched && $matches[1] == '200') { 798 800 if ($_POST['import_type'] == 'download') { 799 801 $filename = substr($url, strrpos ($url, '/')+1); … … 1634 1636 p.attr('id', 'passage' + gpid); 1635 1637 jQuery('tr:first td:first', p).prepend('[<a href="javascript:removePassage(' + gpid++ + ')">x</a>] '); 1638 jQuery("select", p).attr('value', ''); 1636 1639 jQuery("input", p).attr('value', ''); 1637 1640 jQuery('.passage:last').after(p); … … 1641 1644 } 1642 1645 function syncBook(s) { 1643 if (jQuery('#endbook')[0].value != "") return; 1644 var slc = jQuery('#startbook')[0].value; 1646 var slc = jQuery(s)[0].value; 1645 1647 jQuery('.passage').each(function(i) { 1646 1648 if (this == jQuery(s).parents('.passage')[0]) { -
sermon-browser/trunk/sb-includes/frontend.php
r723323 r737860 40 40 $foo = unserialize($sermon->start); 41 41 $bar = unserialize($sermon->end); 42 echo "<span class=\"sermon-passage\"> (".sb_get_books($foo[0], $bar[0] ).")</span>";42 echo "<span class=\"sermon-passage\"> (".sb_get_books($foo[0], $bar[0], FALSE).")</span>"; 43 43 } 44 44 if ($display_preacher) { … … 83 83 $i++; 84 84 echo "<li><span class=\"sermon-title\">"; 85 echo "<a href=".sb_build_url(array('sermon_id' => $sermon->id), true).">".stripslashes($sermon->title)."</a></span>";85 echo '<a href="'.sb_build_url(array('sermon_id' => $sermon->id), true).'">'.stripslashes($sermon->title).'</a></span>'; 86 86 if ($book) { 87 87 $foo = unserialize($sermon->start); … … 776 776 global $wpdb; 777 777 $id = (int) $id; 778 $sermon = $wpdb->get_row("SELECT m.id, m.title, m.datetime, m.start, m.end, m.description, p.id as pid, p.name as preacher, p.image as image, p.description as preacher_description, s.id as sid, s.name as service, ss.id as ssid, ss.name as series FROM {$wpdb->prefix}sb_sermons as m, {$wpdb->prefix}sb_preachers as p, {$wpdb->prefix}sb_services as s, {$wpdb->prefix}sb_series as ss where m.preacher_id = p.id and m.service_id = s.id and m.series_id = ss.id and m.id = {$id}"); 778 $sermon = $wpdb->get_row("SELECT m.id, m.title, m.datetime, m.start, m.end, m.description, p.id as pid, p.name as preacher, p.image as image, p.description as preacher_description, s.id as sid, s.name as service FROM {$wpdb->prefix}sb_sermons as m, {$wpdb->prefix}sb_preachers as p, {$wpdb->prefix}sb_services as s where m.preacher_id = p.id and m.service_id = s.id and m.id = {$id}"); 779 $series = $wpdb->get_row("SELECT ss.id as ssid, ss.name as series FROM {$wpdb->prefix}sb_sermons as m, {$wpdb->prefix}sb_series as ss WHERE m.series_id = ss.id and m.id = {$id}"); 779 780 if ($sermon) { 781 if ($series) { 782 $sermon->series = $series->series; 783 $sermon->ssid = $series->ssid; 784 } 785 else { 786 $sermon->series = ''; 787 $sermon->ssid = 0; 788 } 780 789 $file = $code = $tags = array(); 781 790 $stuff = $wpdb->get_results("SELECT f.id, f.type, f.name FROM {$wpdb->prefix}sb_stuff as f WHERE sermon_id = $id ORDER BY id desc"); … … 1110 1119 foreach ((array) $stuff as $file) { 1111 1120 if (strtolower(substr($file, strrpos($file, '.') + 1)) == 'mp3') { 1112 if ((substr($ url,0,7) == "http://") or (substr($url,0,8) == 'https://')) {1121 if ((substr($file,0,7) == "http://") or (substr($file,0,8) == 'https://')) { 1113 1122 if ($stats) 1114 1123 $file=sb_display_url().sb_query_char().'show&url='.rawurlencode($file); -
sermon-browser/trunk/sermon.php
r723323 r737860 5 5 Description: Upload sermons to your website, where they can be searched, listened to, and downloaded. Easy to use with comprehensive help and tutorials. 6 6 Author: Mark Barnes 7 Version: 0.45. 87 Version: 0.45.9 8 8 Author URI: http://www.4-14.org.uk/ 9 9 … … 54 54 * @package common_functions 55 55 */ 56 define('SB_CURRENT_VERSION', '0.45. 8');56 define('SB_CURRENT_VERSION', '0.45.9'); 57 57 define('SB_DATABASE_VERSION', '1.7'); 58 58 sb_define_constants();
Note: See TracChangeset
for help on using the changeset viewer.