Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Next Page Shows Same Sermons
13 August, 2012
4:20 am
Justin Grice
Member
Forum Posts: 9
Member Since:
13 August, 2012
Offline

At http://www.coolspringschurch.c…..e-services whenever I click the next page button, it shows the same sermons.

 

I am just using the plain sermons shortcode. Any ideas?

13 August, 2012
2:25 pm
jlsalter
New Member
Forum Posts: 2
Member Since:
13 August, 2012
Offline

I'm having exactly the same issue. I've noticed the default URL destination from the 'Next Page' link is the http://www.lifechurch.eu/media…..ts/?page=2, this redirects to the http://www.lifechurch.eu/media…..dcasts//2/ Could this be the problem?

Using the generic query term 'page' might be causing an conflict with existing wordpress functionality.

I image that everybody would have this issue if this was the case though so it's doubtful.

All my filtering still works.

13 August, 2012
2:42 pm
jlsalter
New Member
Forum Posts: 2
Member Since:
13 August, 2012
Offline
Just found a solution, turns out I was right.
Change the following lines of code in your plugin files on your server if you're comfortable doing so. It's a bit of a hack but it'll sort it out for now.
 
\sermon-browser\sb-includes\frontend.php (6 hits)
 Line 638: $current = isset($_REQUEST['pagenum']) ? (int) $_REQUEST['pagenum'] : 1;
 Line 640: $url = sb_build_url(array('pagenum' => ++$current));
 Line 649: $current = isset($_REQUEST['pagenum']) ? (int) $_REQUEST['pagenum'] : 1;
 Line 651: $url = sb_build_url(array('pagenum' => --$current));
\sermon-browser\sermon.php (2 hits)
 Line 516: if (isset($_REQUEST['pagenum']))
 Line 517: $page = $_REQUEST['pagenum'];
 
Be careful on the next sermon-browser update though, this might change. But I imagine they'll address the problem if it gets more common.
Have fun with it!
18 August, 2012
8:46 pm
gracer6
Oakland, MD
New Member
Forum Posts: 2
Member Since:
30 May, 2011
Offline

I just tried jlsalter's suggestions and that took care of my problem with not being able to page through the sermons. Thanks for the suggestion.

13 September, 2012
1:58 pm
ctman94
Howell, MI, USA
Enthusiast
Forum Posts: 23
Member Since:
13 September, 2012
Offline

jlsalter said

Just found a solution, turns out I was right.
Change the following lines of code in your plugin files on your server if you're comfortable doing so. It's a bit of a hack but it'll sort it out for now.
 
\sermon-browser\sb-includes\frontend.php (6 hits)
 Line 638: $current = isset($_REQUEST['pagenum']) ? (int) $_REQUEST['pagenum'] : 1;
 Line 640: $url = sb_build_url(array('pagenum' => ++$current));
 Line 649: $current = isset($_REQUEST['pagenum']) ? (int) $_REQUEST['pagenum'] : 1;
 Line 651: $url = sb_build_url(array('pagenum' => --$current));
\sermon-browser\sermon.php (2 hits)
 Line 516: if (isset($_REQUEST['pagenum']))
 Line 517: $page = $_REQUEST['pagenum'];
 
Be careful on the next sermon-browser update though, this might change. But I imagine they'll address the problem if it gets more common.
Have fun with it!

We had to update Sermon Browser with the above code on at least 15 different sites. The fix works fine! We are currently at WP 3.4.2. The problem started sometime after August 6, 2012. We were at WP 3.4.1 at that time.

19 September, 2012
4:16 am
David O. Donovan
New Member
Forum Posts: 2
Member Since:
11 September, 2012
Offline

Thanks for posting this fix – even a numbie like was able to make it work: http://www.grace-pca.com/worsh…..rmonaudio/

25 September, 2012
5:31 am
Jerry Jordan
Member
Forum Posts: 4
Member Since:
25 September, 2012
Offline

Awesome.  I just noticed this problem with my church's site and this worked great!

28 October, 2012
9:32 pm
mrstanwell
Member
Forum Posts: 6
Member Since:
15 April, 2012
Offline

jlsalter said

Just found a solution, turns out I was right. Change the following lines of code in your plugin files on your server if you're comfortable doing so. It's a bit of a hack but it'll sort it out for now.

And judging by timestamps, you worked that out pretty quickly.

 

Thanks for the code sleuthing.  I'd just noticed the paging problem on our site today, and on a hunch thought I'd check the forums before rummaging around on my own.  Glad I did!

2 November, 2012
3:16 pm
jbensimpson
Tennessee, USA
Enthusiast
Forum Posts: 22
Member Since:
12 January, 2011
Offline

I did it, and it works great!!!

 

I'm a novice.  So, it took me a while to figure out exactly where and how to make the changes.  So, to clarify for the novices like myself:

  1. Go to your dashboard
  2. On the left-hand side, click on "Plugins"
  3. Under plugins, click on "Editor"
  4. In the right hand side of the editor in the "Select plugin to edit" drop-down menu, choose "Sermon Browser"
  5. Under the "Plugin Files" list on the right hand side, click on "sermon-browser\sb-includes\frontend.php"
  6. Make the changes to this file suggested by jlsalter above, which is basically just adding "num" to the end of "page" (note that you'll find the code you need to change about half way down the page under the heading "Prints link to next page")
  7. After you make the four changes to that file, make sure to click on "Update file" at the bottom of the page.
  8. Again, in the right hand side of the editor in the "Select plugin to edit" drop-down menu, choose "Sermon Browser"
  9. Now under the "Plugin Files" list on the right hand side, click on "sermon-browser\sermon.php"
  10. Make the changes to this file suggested by jlsalter above, which again is basically just adding "num" to the end of "page" (note that you'll find the code you need to change about half way down the page under the heading "Create the shortcode handler")
  11. After you make the two changes to that file, make sure to click on "Update file" at the bottom of the page.
  12. You're now set!
16 November, 2012
5:05 am
Tom Tenney
Fulton, MO
New Member
Forum Posts: 1
Member Since:
14 November, 2012
Offline
10

Yeah! It worked here too.  It must be a conflict with some wpthemes. I've had a few other conflicts between my particular theme and SermonBrowser, but this forum has fixed them all!

20 November, 2012
10:09 pm
stephen.howard11
Member
Forum Posts: 4
Member Since:
20 November, 2012
Offline
11

Just realized that we had the same problem. I followed the instructions above and fixed it. I think it did happen when we updated WordPress most recently.

3 December, 2012
9:38 pm
Mindy
Guru
Forum Posts: 69
Member Since:
18 December, 2008
Offline
12

Is there a less "hacky" way to do this? This sounds like a bug that needs to be fixed within the plugin itself, unless I am misunderstanding?

 

I just don't want to mess with the files and then have it overwritten when an upgrade is made or mess something up.

 

Thanks so much for this great plugin!!

4 December, 2012
3:13 am
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 1611
Member Since:
18 June, 2009
Offline
13

Mindy, yes, it is a bug in the plugin. (Although it is something that used to work correctly, but became a bug with a WordPress update.)

The bug will most likely be fixed in the next version of Sermon Browser that Mark is working on, since that version will have all new code.  I'm not expecting a new version between now and then just to fix this bug.

If you need it fixed now, the "hack" in this thread fixes the problem very effectively.  When you are editing the files, the way to prevent accidents is to make a copy of the file you need to change before you make any edits.  Then, after you make the change, if something goes wrong, you have the previous file so you can put things back the way they were.

If you have any questions about how to make this fix, just let us know.

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

8 December, 2012
2:53 am
Mindy
Guru
Forum Posts: 69
Member Since:
18 December, 2008
Offline
14

Thanks, Ben. I'll give it a go!

14 January, 2013
12:46 am
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 1611
Member Since:
18 June, 2009
Offline
15

This is for anyone who is a little nervous about editing the files yourself.

If you know that you've never made any changes to the sermon.php and frontend.php files before, I've made an already-edited version of these files that you can grab and drop in with an FTP program.  Here is how its done.

Remember that these files are based on Sermon Browser v. 0.45.4.  Only use these files if you are using that version (currently the latest version of Sermon Browser).

 

1. Go to this page:

http://www.benandleanna.com/fo…..-page-fix/

There you'll find links to two files.  Download them to your computer by right-clicking on each link and saving the file somewhere convenient on your computer.

 

2. Rename each of the two files to get rid of the .txt extension at the end.  When you are done, the files will be named sermon.php and frontend.php.

 

3. FTP in to your website using your favorite FTP program.  My favorite is FileZilla.  Go to the wp-content/plugins/sermon-browser/ folder.  Copy your existing sermon.php file somewhere on your computer for backup (a different folder than the one you saved the "fixed" files above.)

 

4. Next go into the wp-content/plugins/sermon-browser/sb-includes/ folder.  Grab the frontend.php file and copy it to the backup folder in your computer from the last step.

 

5. Now, on your computer, switch to the folder from step 1 with the fixed files in it.  Send the fixed frontend.php file to your webserver in the wp-content/plugins/sermon-browser/sb-includes folder, replacing the existing frontend.php file.

 

6. Finally, on the webserver, switch to the wp-content/plugins/sermon-browser/ folder, and send the fixed sermon.php file to your webserver, replacing the existing sermon.php file.

 

That's it.  If you have any trouble, you can get your old files back by getting back into your webserver with FTP and copying the files back in from your backup folder.

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

11 February, 2013
10:18 pm
monetnaz
Member
Forum Posts: 3
Member Since:
21 August, 2012
Offline
16

I tried the frontend.php and sermons.php fixes and this worked for a while till they came out with Wordpress 3.5.1. Now, I'm back to the same problem. Changing the permalink structure in wordpress has no effect. I did try Ben Miller's pre-made php files but that did not work either. Any ideas?

11 February, 2013
10:25 pm
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 1611
Member Since:
18 June, 2009
Offline
17

monetnaz,

Looking at your site, you have a different problem.  None of your links are working.  If you try to go to an individual sermon page:

/sermons/?sermon_id=59

it redirects you back to the main sermons page:

/sermons/

You are losing your query string.  I don't think this is a WordPress 3.5.1 thing, because I'm running 3.5.1 successfully.  Do you have any idea why this would be occurring?  It could be another plugin that is interfering.

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

12 February, 2013
9:47 am
Tsuua Kekale
Enthusiast
Forum Posts: 27
Member Since:
26 January, 2013
Offline
18

Which functions are the sermon.php's changes from?

My file has been edited so much I couldn't find the right lines with just those clues..

12 February, 2013
3:10 pm
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 1611
Member Since:
18 June, 2009
Offline
19

Tsuua,

Using the line numbers from jlsalter's post at the top of the topic:

 

frontend.php:

Lines 638 & 640 are in function sb_print_next_page_link( )
Lines 649 & 651 are in function sb_print_prev_page_link( )

 

sermon.php:

Lines 516 & 517 are in function sb_shortcode( )

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

17 February, 2013
9:43 pm
monetnaz
Member
Forum Posts: 3
Member Since:
21 August, 2012
Offline
20

Thank you Ben, I checked the website and I did have a 404 redirect plugin transforming querys to the /sermons page. Appreciate you modding this site and responding to requests.

Forum Timezone: Europe/London

Most Users Ever Online: 125

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Rich Brown: 357

Matt Schlueter: 91

Mindy: 69

Don Johnson: 62

anointed: 57

0be1: 55

Member Stats:

Guest Posters: 7

Members: 2670

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1632

Posts: 7213

Newest Members: mfisher, SandyM, Russell Anderson, JoyRadio, revcjconner, btaylor324

Moderators: Ben Miller (1611)

Administrators: Mark Barnes (435)