Topic RSS
9:29 pm
12 January, 2012
OfflineHi
I am new to the Sermon Browser plugin. I have read the FAQ and watched the tutorials. I am picking this up where someone else left off so I am trying to get up to speed with this plugin. I understand the basics. What I am not understand at this point is why the "next page" link at the bottom of the search form and the sermon listings and search form, all of them come up with "page not found" I know why it happens, not how to fix it. I understand HTML, CSS and shortcodes. I am not sure what controls the link process and that is where the page not found comes from. As for the search form not working where do I connect the search to the sermons? The sermons and all of that was already setup so I am working with exisiting content. I have checked to see if the content was done properly, from I can tell it has been entered/uploaded properly. If you enter anything in the search form it comes back with page not found if you click next page for the listed sermons it comes back page not found. I feel like a tool at this point and need some help in guiding into the right direction to get this plugin functional, at this point it is not.
Here is the URL of the sermons page: http://www.calvarynuevo.org/sermons/
This is the shortcode on the page:
From all that I have read and watched I have to admit it is still not clear to me if pages need to be created for the search results to show?Or is this dynamically generated..still not sure.
We have a very large library of mp3 sermons we would like to incorporate with this plugin but until the search works properly the point is mute.
Any advice, help would be greatly appreciated. Thank you
Donna;
Good afternoon… The links are built dynamically on the page frontend.php, and you can find the pages by going to the plugins link on the right side WP menu, then scroll down to the sermonbrowser plugin and click edit below the plugin title. All of the pages for the plugin will be lined up on the left side of the screen. Here is the code that builds those links:
//Prints link to next page
function sb_print_next_page_link($limit = 0) {
global $sermon_domain, $record_count;
if ($limit == 0)
$limit = sb_get_option('sermons_per_page');
$current = isset($_REQUEST['page']) ? (int) $_REQUEST['page'] : 1;
if ($current < ceil($record_count / $limit)) {
$url = sb_build_url(array('page' => ++$current));
echo '<a href="'.$url.'">'.__('Next page', $sermon_domain).' »</a>';
}
}
//Prints link to previous page
function sb_print_prev_page_link($limit = 0) {
global $sermon_domain;
if ($limit == 0) $limit = sb_get_option('sermons_per_page');
$current = isset($_REQUEST['page']) ? (int) $_REQUEST['page'] : 1;
if ($current > 1) {
$url = sb_build_url(array('page' => –$current));
echo '<a href="'.$url.'">« '.__('Previous page', $sermon_domain).'</a>';
}
}
The person who worked on the code before you, did they by chance do and customization or link adding in the templating section of the plugin by chance? When I look at the code by viewing the page source, it matches what is on my site, and my next and previous links work. Also, if there is another plugin loaded with a same name for a css class, that could possibly cause a conflict. Have you tried turning off all other plugins for a moment and see if the problem goes away.
Just some thoughts and hopefully I was able to contribute something to get you on the right path :o)
Blessings…
Shawn
responsibility of every person who belongs to the company of Jesus." - Elton Trueblood
Most Users Ever Online: 40
Currently Online:
15 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
malpan: 2453
jogen: 2440
VanWatterson: 652
GeraldSebring: 364
LucasWoltman: 362
RandellFeenstra: 362
Member Stats:
Guest Posters: 7
Members: 2066
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 2
Topics: 1071
Posts: 4045
Newest Members: Nixon Designs, zolaperry, tanec69, lbakyl, richdorm, Aaron Velasquez
Moderators: Ben Miller (387)
Administrators: Mark Barnes (425)
Log In
Register
Home



