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

No permission to create posts
sp_Feed Topic RSS sp_TopicIcon
Sermon Browser version 2
22 March, 2014
1:10 am
tgcreate
Enthusiast
Members
Forum Posts: 18
Member Since:
8 January, 2014
sp_UserOfflineSmall Offline

I'm trying this out locally, and although I know it's not recommended, I think I'm going to run with this on a live site. It just has such better functionality than the current version, and the use of tableless layout is a huge plus as well. I was basically planning on completely rewriting the template HTML otherwise.

The only functionality that doesn't seem to be working for me at the moment is that none of the actual sermons show up on the series page, just the series title, description and theme image. I was expecting that it would at least provide links to the individual pages for sermons in the series, but I guess that's just something that's still incomplete. Not sure what I'll do about that at this point.

Anyway, really liking this so far and hoping that the project gets completed.

22 March, 2014
1:23 am
tgcreate
Enthusiast
Members
Forum Posts: 18
Member Since:
8 January, 2014
sp_UserOfflineSmall Offline

Ah, I gather that if I can add them manually in the back end, because the Series pages are editable.

There's probably a shortcode that will punch them in automatically. Will try to figure that out.

Nice work! I'm getting excited about this plugin.

Edit: Not much luck so far with shortcodes. I also realized that I'm not getting a proper display of sermon filters either. Which leaves the files not very searchable....

29 March, 2014
2:14 pm
JKing
New Member
Members
Forum Posts: 1
Member Since:
29 March, 2014
sp_UserOfflineSmall Offline

Firstly, good work, thanks for putting in your time on these plugins.

 

I've been having a play with both versions and had a read through most of this thread. I'm currently developing a church website and will use SB2 in some form.

Can anyone give details of time scale and the amount of work still to do before a reasonably complete version becomes available. (I appreciate that might not be easy and you've probably got a lot of other balls to juggle.) Are any details available on the 'themes'(?) and customising the front-end appearance? Essentially, I'm wondering whether I should try and work with what's already been done and add to and modify the code to our requirements. Or start from scratch with a template that calls SB2's custom type data.

 

A few suggestion for features/improvements you might want consider adding:

Don't know if this is limited by Wordpress or part of your code. When adding an external URL attachment, it takes the code from the filename, for dropbox files I get stuff like "Why%20we%20need%20to%20Pray%2…". It could convert HTML codes (%20 to space etc). It also would be handy if the name could be edited and longer.

For a series, the sermons could be ordered, so they follow on correctly. (I'll probably be using a custom field in ours for this.)

Related sermons could be linked. (I'll probably be using a custom field in ours for this.)

The ability not to generate permalinks for certain things. (We'd probably just want to exclude Services for the time being.)

 

Thanks again.

31 March, 2014
4:01 pm
tgcreate
Enthusiast
Members
Forum Posts: 18
Member Since:
8 January, 2014
sp_UserOfflineSmall Offline

JKing said
Are any details available on the 'themes'(?) and customising the front-end appearance?

Honestly, at the current state of SB2 at least, it's very easy to customize the front-end appearance. It basically follows your overall CSS styles, and then you can target more specifically.

 

I would like to see more options, though. I.e. have things display in different order, or exclude things from the archive page that appear on individual sermon pages. (Right now, I'm accomplishing the latter in CSS via display:none, but that's not the optimal way of doing things.) That may already be planned, I don't know.

 

Really, the only two things I miss *right now* that aren't yet working are: (1) filter/search function; and (2) new sermons in series don't automatically get linked to the series page. (I suspect that new sermons by a given preacher are also supposed to get automatically added to his preacher page, but that lack wouldn't be a big deal if the filter function were working.)

1 April, 2014
2:28 am
tonywinton
Key Biscayne, Fla.
Member
Members
Forum Posts: 10
Member Since:
28 February, 2012
sp_UserOfflineSmall Offline

Haven't posted here in a while, but wondering if  there is any guesstimate about version 2.0? We have been delying a site upgrade, in part, because we were waiting for the 2.0 version....and I'm a bit squeamish about putting an alpha version up. 

Any help

Thanks

Tony Winton

Key Biscayne Presbyterian Church

http://www.kbpc.org

20 June, 2014
8:54 pm
Rick Cowan
Member
Members
Forum Posts: 3
Member Since:
4 June, 2014
sp_UserOfflineSmall Offline

I've installed Sermon Browser 2 (fully aware of the warning to "not even think about" using it on a live site ;). I have both versions installed but SB2 is not publicly viewable.

This is not a request for support just a FYI for developers - I used the import feature for 133 sermons. It gave me a Fatal Error. It did successfully import 122 sermons but did not have the media attachments (except for the pdfs) for any of the sermons. I had to go back and attach them manually. I store my MP3's in a folder on my server.

Also, SB2 does not like spaces in MP3 filenames! ;)

Thank you for your hard work!

23 June, 2014
6:11 pm
Rick Cowan
Member
Members
Forum Posts: 3
Member Since:
4 June, 2014
sp_UserOfflineSmall Offline

I've been playing with SB2. In SB1 the search results showed up with a couple of lines per sermon and a player - this allowed for a quick glance at a nice list of sermons and the ability to play them on one page. With SB2 and the implementation of custom post types, I see each sermon listed as it's own post which features (in my theme) a large feature image and other post info. Because each sermon is its own "post", there is no nice, clean list of sermons with players - just a list of sermons as posts (like any other post) with no player until you click the sermon and go to its own sermon page. I see this as a great downside to using custom post types. I understand I'm looking at an Alpha and so I don't now what your plans are for the final version. Thanks again for your hard work!

1 July, 2014
5:05 pm
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

@Rick,

I think because it is a custom post type you can create a function on your functions.php file of your theme that can handle the display list. It maybe a bit more work but that is the beauty of custom post type. I'll try to mess around with my local install to see if I can achieve what you're after.

1 July, 2014
7:29 pm
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

@Rick Cowan

I made a little custom page to display a sermon list that was paired down and here is what I came up with:

<section class="articles-sermons">
<h1>My Sermons</h1>
<?php $count = 1; ?>
<?php query_posts("post_type=mbsb_sermon"); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!-- Begin article -->

<article class="sermons">
<header>
<div class="sermon_counter">
<span class="sermon_count"><?php echo $count; ?></span>
</div>
</header>
<h1 class="main_title"><?php the_title(); ?></h1>
<div class="sermon_smallPreview">
<?php $sermon = new mbsb_sermon($post->ID);
$sermon_description = $sermon->get_description();
echo $sermon_description;
$sb = $sermon->attachments->get_frontend_list();
echo $sb;
?>
</div>

<div class="clear"></div>
<?php $count++; ?>
</article>
<!-- End article-->
<?php endwhile; ?>
<?php endif; ?>
</section>

Note that only the Sermon title, description and media - show up in the list. I put a counter on for fun, but you can make it how you like.
I'm guessing there is probably a way to do the same thing with shortcodes - but I couldn't find it. Also, this will not link to the individual sermon through the title like it should. I'll have to add that later.

Hope this helped,
Drew

22 August, 2014
3:54 pm
nathan_buchanan
Enthusiast
Members
Forum Posts: 14
Member Since:
26 March, 2011
sp_UserOfflineSmall Offline

I am currently testing Wordpress 4 Beta 4 which will be releasing sometime next week by the sounds of it. I am also hopeful that a Sermon Browser 2 will be available as well soon.

18 September, 2014
3:28 pm
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

I have implemented SB2 on my live site even with the draw backs, which are:

- broken frontend filter
- no admin stats
- preacher and series pages not linked to sermons

I just couldn't pass up the improvements to SEO - It doesn't seem like much work is being done on this recently. I am trying to fix the draw backs I mentioned above on my own site. If I can - I'll submit the code to Mark to see if he will use it to get SB2 release ready?

18 September, 2014
8:23 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

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

reformedstudent (or anyone else),

If you are implementing SB2 on your site and have done some work you'd like to see in SB2, just let me know.  I'd love to see it and get it in to SB2.

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

24 September, 2014
3:40 am
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

got a start on the frontend filter.

But I am running into a problem with the query string. mine is to simple and only redirects to other post_type pages.

here is my code (in /js/frontend.php)

//Listen for the menu's to change except the main filter_by dropdown
var ids = ['filter_preacher_dropdown', 'filter_sort_by_dropdown', 'filter_per_page_dropdown',
'filter_series_dropdown', 'filter_tag_dropdown', 'filter_book_dropdown', 'filter_year_dropdown'];

$('#' + ids.join(',#')).change(function() {

var mbsb = ["preacher", "series", "service"];
var filter = this.name;
if ($.inArray( filter, mbsb)!== -1) {
var filter = "mbsb_" + this.name
}
var slug = $("option:selected", this).text().replace(/ /g,"-").slice(0,-4);
var filterByID = $(this).val();

var queryParameters = {}, queryString = location.search.substring(1),
re = /([^&amp;=]+)=([^&amp;]*)/g, m;

// Creates a map with the query string parameters
while (m = re.exec(queryString)) {
queryParameters[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
}

// Add new parameters or update existing ones

queryParameters[filter] = slug;

location.search = $.param(queryParameters); // Causes page to reload

});

26 September, 2014
7:12 pm
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

OK, forget that last bit of code: yuk!

Anyway, I am close to fixing the filter form but I am stuck on the php now.
I was first putting my function in the frontend.php file where most of the other functions for the frontend were (seemed logical), but returned nothing or the whole root page. So I moved the function to the admin.php file in the plugins includes folder. Viola! ajax started working ;) forgive for being a little slow.

Anyway, now I am stuck on what to return from that function. Here is what I have:

/**
* Handles the AJAX call from filter form
*/
function check_ajax() {
$mk = $_POST['meta_key'];
$mv = intval($_POST['meta_value']);
$ppp = intval($_POST['posts_per_page']);
$query = new WP_Query( array( 'meta_key' => $mk, 'meta_value' => $mv, 'post_type' => 'mbsb_sermon', 'posts_per_page' => $ppp ) );
$posts = get_posts(); // returns posts in an array
echo 'Hi! - here are your vars: '.$mk.$mv.$ppp;

die();
}

What should I call after running the new query to display the sermons?

Thanks,

26 September, 2014
9:34 pm
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

OK, forget that last bit of code: yuk!

Anyway, I am close to fixing the filter form but I am stuck on the php now.
I was first putting my function in the frontend.php file where most of the other functions for the frontend were (seemed logical), but returned nothing or the whole root page. So I moved the function to the admin.php file in the plugins includes folder. Viola! ajax started working ;) forgive for being a little slow.

Anyway, now I am stuck on what to return from that function. Here is what I have:

/**
* Handles the AJAX call from filter form
*/
function check_ajax() {
$mk = $_POST['meta_key'];
$mv = intval($_POST['meta_value']);
$ppp = intval($_POST['posts_per_page']);
$query = new WP_Query( array( 'meta_key' => $mk, 'meta_value' => $mv, 'post_type' => 'mbsb_sermon', 'posts_per_page' => $ppp ) );
$posts = get_posts(); // returns posts in an array
echo 'Hi! - here are your vars: '.$mk.$mv.$ppp;

die();
}

What should I call after running the new query to display the sermons?

Thanks,

26 September, 2014
11:04 pm
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

Alright, I am nearly nearly there (I think).

Here is my current function

/**
* Handles the AJAX call from filter form
*/
function check_ajax() {
global $wpdb;
$query = new WP_Query();
//values returned from Ajax
$mk = $_POST['meta_key'];
$mv = intval($_POST['meta_value']);
$ppp = intval($_POST['posts_per_page']);
// filtered sermon query
$sermons = $query->query(array( 'meta_key' => $mk, 'meta_value' => $mv, 'post_type' => 'mbsb_sermon', 'posts_per_page' => $ppp ) );
$posts = get_posts(); // returns posts in an array

if($sermons) {

while( $query->have_posts() ) {
$query->the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" ><h1 class="main_title"><?php the_title(); ?></h1></a>
<div class="entry-content">
<div class="sermon_smallPreview">
<?php
$sermon = new mbsb_sermon($post->ID);
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
$thumb = '';
$width = 184;
$height = 184;
$classtext = '';
$titletext = get_the_title();
$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
$thumb = $thumbnail["thumb"];
$output .= '<div class="et_pt_thumb alignleft" style="padding-right:5px;">'.print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext);
$output .= '<a href="'.the_permalink().'"><span class="overlay"></span></a>';
$output .= '</div> <!-- end .thumb -->';
}
$sermon_description = $sermon->get_description();
?>
<div class="sermon_description"><?php echo $sermon_description; ?></div>
<?php $sb = $sermon->attachments->get_frontend_list(); ?>
<div class="sermon_audio" style="clear:both; padding-bottom:20px;"><?php echo $sb; ?></div>
</div>
</div> <!-- .entry-content -->
</article> <!-- .et_pb_post -->
<?php

}
}

die();
}

This does get the sermons it is supposed to based on the filter parameters. And mostly display's correctly.
display seems to break with the audio
Also if I try to call

$form = mbsb_get_sermon_filters();
echo $form;

it also breaks and I get

Fatal error: Call to undefined function mbsb_get_sermon_filters()

??

29 September, 2014
5:01 pm
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

I am very close (I think) !

I found a way around the sermon filters form breaking by adding to the default_template

function mbsb_default_theme_display_sermons ($content) {
$output = mbsb_get_sermon_filters();
$output .= '<div id="sermonlists">'; // here is the important div so that the filter form does not disappear once the AJAXs is fired could be any name as long as the AJAX is targeting this div.
$query = new WP_query('post_type=mbsb_sermon'); // generic query to start with
while( $query->have_posts() ) {
$query->the_post();

$output .= // code to return sermon goes here

}
$output .= '</div>';
return $output;
}

Now the only problem I am having is the AJAX return of the audio player. I wonder if anyone has Ideas on that?

2 October, 2014
3:59 pm
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

I found a temp work around for the display of the audio player. I don't seem to have access to the do_div() function in the /includes/admin.php file to the protected function - so I just CSS forced visibility of the player which of course, displays an unstyled player. But I was more worried about the AJAX filter working and it does.

One other incomplete fix to the filter is the query for book series. I fixed the query count to group by name instead of id so that the books display properly in the dropdown, but I have not yet wrote the query to retrieve sermons based on book (shouldn't take long). Also incomplete is the sort by - but I have a solution for that I just have to get around to changing the AJAX.

progress is happening. Ben if you have any ideas on the do_div() function please let me know.

4 October, 2014
2:05 am
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

Hey Ben Miller, or any interested...

I have a live setup for the 'fixes' I made:
http://omegaopc.org/sermons-2/

I have a working:

1. Sermon filter *(with a little draw back in styling on filtered pages)
2. added Related Sermons to preacher and series pages *( this was easy cheat because I used amr shortcode any widget plugin)
3. added tracking for sermons *(right now using google analytics but will get working for wordpress admin asap)

Let me know what you think
Drew

6 October, 2014
11:27 pm
reformedstudent
Williamsport, PA
Enthusiast
Members
Forum Posts: 21
Member Since:
25 October, 2010
sp_UserOfflineSmall Offline

Hey all,

I noticed a problem with the sermon filter that I didn't need to address on my local install. Once I updated the live site where I have 300+ sermons I noticed that the filtered sermons do not have pagination. I am trying to fix that within the AJAX call - but so far no luck.

Anyone have an idea?

Thanks,
Drew -

No permission to create posts
Forum Timezone: Europe/London

Most Users Ever Online: 381

Currently Online:
10 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