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
Feature request: Customise Filter
29 June, 2008
7:16 pm
Jordan
Enthusiast
Forum Posts: 11
Member Since:
26 June, 2008
Offline

Hey Mark,

I now have the plugin working on my site, and now I have a feature request:

Is it possible to make the filter options customizable? For example, my church has only one pastor, so I don't really need the option to allow people to filter sermons by preacher. It'd be really nice if I could turn off the parts of the filter that I don't need, while keeping the filter on for searching.

3 July, 2008
12:47 pm
Jordan
Enthusiast
Forum Posts: 11
Member Since:
26 June, 2008
Offline

Hey Mark,

A quick thought about my suggestion…

It might work if there was a Simple Search and an Advanced Search option. You could even make the Advanced Search the default, but supply a Simple Search template tag for people who want to change it.

Anyway, just thought I'd suggest that in case it helps. By the way, thanks for the new release!

29 September, 2008
10:10 pm
Matt Singley
Member
Forum Posts: 6
Member Since:
8 July, 2008
Offline

I have a church that doesn't use series for their sermons, they have asked me to remove the reference from the page (it currently says "Part of the None Series"). They would like that entire line removed.

Question: where do I find it? I am obviously looking right past it, and I know my way around PHP. Any help would be great, thanks!

Original content: http://www.firstpresportland.o…..page_id=33

30 September, 2008
10:33 am
Mark Barnes
Admin
Forum Posts: 425
Member Since:
14 December, 2005
Offline

Sorry for my silence over recent weeks. Unfortunately, the business of everyday life has meant that I've not been able to focus on the sermonbrowser plugin as I'd have liked. I'm hoping that will change just as soon as I'm able to get some other plugin projects out of the way. There's also the small matter of the new Wordpress 2.7 to contend with! I appreciate all the bug reports and suggestions, and I promise I will work through them all, and there will be future versions of sermonbrowser – just not in the next week or so :-)

To answer Matt's question by the way, you need to edit your template (go to Sermons/Template in Wordpress). You should be able to delete the offending line quite easily, though it won't remove it from the search dropdown. That might possibly come in a future version as others have requested it too.

15 January, 2009
5:12 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

I'm wondering if there's a way to customize which filters are there. For instance, I only want the filter for "series" to be on the page and I want to delete the other ones.

9 June, 2009
7:50 am
thekook
New Member
Forum Posts: 1
Member Since:
9 June, 2009
Offline

Sermon Browser is great!

One little change that would be helpful for styling the filters…

For the One-Click view, could we get a <span> or something around each option so that they can be styles as block etc…

eg. <span><a>Mr Preacher</a> (12)</span>

9 June, 2009
10:11 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

If anyone wants to manually remove certain filters, you can do this in frontend.php

Scroll all the way down until you see:

<div id="mainfilter">
            <form method="post" id="sermon-filter" action="<?php echo sb_display_url(); ?>">
        <div style="clear:both">

                    <table class="sermonbrowser">

Below this will be the different form options. For instance, I removed these lines in order to remove the option to filter by preacher and service:

<tr>
                    <td class="fieldname"><?php _e('Preacher', $sermon_domain) ?></td>
                    <td class="field"><select name="preacher" id="preacher">
                            <option value="0" <?php echo $_REQUEST['preacher'] != 0 ? '' : 'selected="selected"' ?>><?php _e('[All]', $sermon_domain) ?></option>
                            <?php foreach ($preachers as $preacher): ?>
                            <option value="<?php echo $preacher->id ?>" <?php echo $_REQUEST['preacher'] == $preacher->id ? 'selected="selected"' : '' ?>><?php echo stripslashes($preacher->name).' ('.$preacher->count.')' ?></option>
                            <?php endforeach ?>
                        </select>
                    </td>
                    <td class="fieldname rightcolumn"><?php _e('Services', $sermon_domain) ?></td>
                    <td class="field"><select name="service" id="service">
                            <option value="0" <?php echo $_REQUEST['service'] != 0 ? '' : 'selected="selected"' ?>><?php _e('[All]', $sermon_domain) ?></option>
                            <?php foreach ($services as $service): ?>
                            <option value="<?php echo $service->id ?>" <?php echo $_REQUEST['service'] == $service->id ? 'selected="selected"' : '' ?>><?php echo stripslashes($service->name).' ('.$service->count.')' ?></option>
                            <?php endforeach ?>
                        </select>
                    </td>
                </tr>

2 February, 2010
6:33 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

I just upgraded my sermon browser to the newest version and just realized that i had apparently made changes to the frontend.php file (as described above) . I tried to put my old frontend.php file up there, but it would not work. How do I now remove the unwanted filters from my new frontend.php ?

EDIT: Sorry, I dont know how to delete my post…I already figured it out on my own after trying again to look for the code

20 April, 2012
6:17 pm
John Philip
Member
Forum Posts: 3
Member Since:
9 December, 2009
Offline

Mark, thanks for a wonderful plugin.

If you ever see this post, please could you maybe wrap the numbering in a span to make formatting a little easier?

Or even something like this perhaps?

<h3>Filter</h3>
<ul id="mainfilter">
 <li id="preacher" class="filter">
  <h4 class="filter-heading">Preacher</h4>
  <ul>
    <li><a href="#">C H Spurgeon</a><span class="count">1</span></li>
    <li><a href="#">Martyn Lloyd-Jones</a><span class="count">3</span></li>
  </ul>
 </li>
</ul>

This way one has the option of making it a list down the side or making any sort of transformations through css.

Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online:
16 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: 2062

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1071

Posts: 4042

Newest Members: richdorm, Aaron Velasquez, aaronv, dave5884, tomduckering, ccwebb

Moderators: Ben Miller (386)

Administrators: Mark Barnes (425)

Comments are closed.