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
Sermon description in results page
15 June, 2011
7:45 pm
philr
New Member
Forum Posts: 1
Member Since:
15 June, 2011
Offline

I'm trying to customise the results page such that the sermon description (or at least a short excerpt) is displayed, rather than just the title, preacher and date.

I've tried the obvious [sermon_description] in the results page, and that didn't work – it just displays "[sermon_description]"
I've tried and failed to follow the logic in php… I can can see that the description is in $sermon->description in line, err, 522 of sermon.php, but can't work out where the array's pulled apart for conversion to html.

So, am I trying the impossible? Or missing something really simple?

15 June, 2011
10:23 pm
awaugh
Bowling Green, Kentucky, USA
Enthusiast
Forum Posts: 18
Member Since:
28 May, 2011
Offline

The short codes I know that are available to provide sermon information in the results.

[first_passage] – The main bible passage for this sermon
[sermon_title] – The title of the sermon
[preacher_link] – The name of the preacher (hyperlinked to his search results)
[series_link] – The name of the series (hyperlinked to search results)
[service_link] – The name of the service (hyperlinked to search results)
[date] – The date of the sermon

I have tried [tag_cloud] but have not been able to back it work.

Hope this helps,
Alec

Grace and Peace, Alec http://www.oumbc.org Old Union Bowling Green, Kentucky, USA
13 February, 2012
5:24 pm
david kopper
New Member
Forum Posts: 1
Member Since:
13 February, 2012
Offline

I know this is a old post, but I just started using the plugin today and wondered the same thing.  Somewhere Mark Barnes said it would be trivial, and it seems he is correct.

It appears you were on the right track adding[sermon_description] in the template.  But,  you also need to add one line in dictionary.php to the first function, function sb_search_results_dictionary.  Add to the array

         '[sermon_description]' => '<?php echo stripslashes($sermon->description) ?>',

Now you will probably need to go in and save the results page template again – to make sure dictionary.php is read. Not sure, but that's what I did. It seems to work.

It adds the description where you place the [sermon_decription] tag in the results page description.

Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online:
13 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)

Comments are closed.