Plugin Directory

Changeset 737860


Ignore:
Timestamp:
07/08/2013 05:33:47 PM (13 years ago)
Author:
bhengh
Message:

Updating to 0.45.9 (six bug fixes)

Location:
sermon-browser/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sermon-browser/trunk/readme.txt

    r737797 r737860  
    44Tags: sermons, podcast, mp3, church, bible, audio, widget, embed, video, esv, wpmu, preach, iTunes, preacher, listen
    55Requires at least: 2.9.2
    6 Tested up to: 3.5.1
     6Tested up to: 3.5.2
    77Stable tag: trunk
    88License: GPLv3 or later
     
    19191. Store thousands of sermons, and **search** them by topic, preacher, bible passage or date.
    20202. 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/)).
     213. 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/)).
    22224. Three optional **sidebar widgets** can display sermons on all of your posts or pages.
    23235. **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.
     
    250250== Upgrade Notice ==
    251251
     252= 0.45.9 =
     253Six more bug fixes.
     254
    252255= 0.45.8 =
    253256More bug fixes, collated and patched by [Ben Miller](http://www.sermonbrowser.com/forum/profile/bhengh/).
     
    289292
    290293== 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/)).
    291302
    292303= 0.45.8 (31 May 2013) =
  • sermon-browser/trunk/sb-includes/admin.php

    r723323 r737860  
    795795        if(ini_get('allow_url_fopen')) {
    796796            $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') {
    798800                if ($_POST['import_type'] == 'download') {
    799801                    $filename = substr($url, strrpos ($url, '/')+1);
     
    16341636            p.attr('id', 'passage' + gpid);
    16351637            jQuery('tr:first td:first', p).prepend('[<a href="javascript:removePassage(' + gpid++ + ')">x</a>] ');
     1638            jQuery("select", p).attr('value', '');
    16361639            jQuery("input", p).attr('value', '');
    16371640            jQuery('.passage:last').after(p);
     
    16411644        }
    16421645        function syncBook(s) {
    1643             if (jQuery('#endbook')[0].value != "") return;
    1644             var slc = jQuery('#startbook')[0].value;
     1646            var slc = jQuery(s)[0].value;
    16451647            jQuery('.passage').each(function(i) {
    16461648                if (this == jQuery(s).parents('.passage')[0]) {
  • sermon-browser/trunk/sb-includes/frontend.php

    r723323 r737860  
    4040                $foo = unserialize($sermon->start);
    4141                $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>";
    4343            }
    4444            if ($display_preacher) {
     
    8383        $i++;
    8484        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>';
    8686        if ($book) {
    8787            $foo = unserialize($sermon->start);
     
    776776    global $wpdb;
    777777    $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}");
    779780    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        }
    780789        $file = $code = $tags = array();
    781790        $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");
     
    11101119    foreach ((array) $stuff as $file) {
    11111120        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://')) {
    11131122                if ($stats)
    11141123                    $file=sb_display_url().sb_query_char().'show&amp;url='.rawurlencode($file);
  • sermon-browser/trunk/sermon.php

    r723323 r737860  
    55Description: Upload sermons to your website, where they can be searched, listened to, and downloaded. Easy to use with comprehensive help and tutorials.
    66Author: Mark Barnes
    7 Version: 0.45.8
     7Version: 0.45.9
    88Author URI: http://www.4-14.org.uk/
    99
     
    5454* @package common_functions
    5555*/
    56 define('SB_CURRENT_VERSION', '0.45.8');
     56define('SB_CURRENT_VERSION', '0.45.9');
    5757define('SB_DATABASE_VERSION', '1.7');
    5858sb_define_constants();
Note: See TracChangeset for help on using the changeset viewer.