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
Problem with recent sermons url link on the front page
12 May, 2013
5:20 am
dimsal
Member
Members
Forum Posts: 9
Member Since:
12 May, 2013
sp_UserOfflineSmall Offline

Hi

As per your FAQ instructions: How do I get recent sermons to display in my sidebar or elsewhere in my theme?

I placed the following code into my template to display latest sermons on the front page,

< ?php if (function_exists('sb_display_sermons')) sb_display_sermons(array('display_preacher' => 1, 'display_passage' => 1, 'display_date' => 1, 'display_player' => 0, 'preacher' => 0, 'service' => 0, 'series' => 0, 'limit' => 5, 'url_only' => 0)) ? >

All my sermons are posted under http://mysite.com/sermons/, so a working single sermon page url is  http://mysite.com/sermons/?sermon_id=1

 

Now, for some reason, sermon URL on the front page returns only /?sermon_id=1 part without /sermons/ before it like this: http://mysite.com/?sermon_id=1 and if I try to click this link all it does is just reloads the front page, it doesn't go the individual sermon page. How do I fix this?

 

Thank you,

Dmitry

12 May, 2013
8:55 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

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

Dmitry, could you post a link to your actual site, so I can take a look?

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

13 May, 2013
3:20 am
dimsal
Member
Members
Forum Posts: 9
Member Since:
12 May, 2013
sp_UserOfflineSmall Offline

Hi Ben,

Sure, here's a link: http://dev.rsdasa.com

The recent sermons (or lectures in my case (I renamed them to better suite the site I'm working on)) are in the lower left corner of the page under title Recent Lectures.

Thank you,

D.

13 May, 2013
6:28 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

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

Dmitry,

Thanks for bringing this bug to my attention.  Here is the bug fix to get the "sb_display_sermons" function working again.

In frontend.php, replace the sb_display_sermons function.  The old, 0.45.6 function looks like this:

http://pastebin.com/hQQsMkb8

Replace that code with this function:

http://pastebin.com/ZSKdJ4iB

 

There is one more function that needs to be changed in frontend.php, which I will detail in the next post.

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

13 May, 2013
6:33 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

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

Also in frontend.php, the function sb_print_sermon_link needs to be replaced.

OLD function:

http://pastebin.com/3niNy5BK

NEW function:

http://pastebin.com/VzMMKQes

 

If you have any questions about this fix, please let me know.  I'm going to try to get this fix into a new version, but I don't know exactly when that new version will be released.  (Hopefully in about a week.)

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

14 May, 2013
1:48 am
dimsal
Member
Members
Forum Posts: 9
Member Since:
12 May, 2013
sp_UserOfflineSmall Offline

Hi Ben,

Thank you so much for a quick fix, it works.

Regards,

D.

18 June, 2013
8:00 pm
Ben Meredith
Morrisville, NC, USA
Enthusiast
Members
Forum Posts: 22
Member Since:
18 June, 2013
sp_UserOfflineSmall Offline

Just FYI: in frontend.php on line 45 if you add a space before the word "by" it outputs correctly. For me it was not putting a space between the verse reference and the word "by."

Not sure if anyone else is having that problem, but theres a fix.

I'm perfectly willing in the context of this forum to be referred to as "Lesser Ben" in favor of Ben Miller.

I made a tutorial for prettying up your sermonbrowser iTunes feed.

Web Geek for Trinity Park Church.

26 June, 2013
6:04 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

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

Thanks, Ben Meredith.  I've added this change to line 45 to the next version of Sermon Browser.

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

26 June, 2013
6:20 pm
Ben Meredith
Morrisville, NC, USA
Enthusiast
Members
Forum Posts: 22
Member Since:
18 June, 2013
sp_UserOfflineSmall Offline

For what it's worth, I've changed my signature to reflect the hierarchy of Bens.

:-)

I'm perfectly willing in the context of this forum to be referred to as "Lesser Ben" in favor of Ben Miller.

I made a tutorial for prettying up your sermonbrowser iTunes feed.

Web Geek for Trinity Park Church.

26 June, 2013
6:42 pm
Ben Miller
Appleton, WI, USA
Moderator
Members

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

Does that make me "Big Ben"?

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

Forum Timezone: Europe/London

Most Users Ever Online: 381

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