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
Footer shortcode
22 May, 2011
7:33 am
benperrin
Melbourne, Australia
Member
Forum Posts: 4
Member Since:
22 May, 2011
Offline

Hi Mark,

My church has been using sermon browser for a while now and it works great! Our church site is http://doncastercitychurch.com. In our footer we have some links to the most recent sermon. There are 3 things that need to be updated each time we release a sermon: Title name with link to that sermon and preacher, Latest sermon audio player and finally a download sermon link. What I am doing each week is uploading the sermon then going into the footer.php and changing the relevant info. Are there any shortcodes or some sort or code I could insert to make these things automatically update?

I tried doing this when the site first went live but nothing seemed to work. Any help you could provide would be appreciated.

Cheers,
Ben

22 May, 2011
12:35 pm
Mark Barnes
Admin
Forum Posts: 425
Member Since:
14 December, 2005
Offline

You can't make it look exactly like you have it now, without coding something custom. But you can do something. If that's a widget area, you could add the Sermons widget. Restrict the number of sermons to 1, and click the relevant boxes.
If it's not a widget area, you'll need to edit your theme, and add the code

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

This is what we do at our own church.

22 May, 2011
1:26 pm
benperrin
Melbourne, Australia
Member
Forum Posts: 4
Member Since:
22 May, 2011
Offline

Great thanks Mark!! I remember trying that code when I was first trying to get it all working and for some reason (probably syntax error) I could not get it to work. Now to just stylise it all to my liking. Many thanks, keep up the great work!

Cheers,
Ben

23 May, 2011
6:54 am
benperrin
Melbourne, Australia
Member
Forum Posts: 4
Member Since:
22 May, 2011
Offline

So I can get the first part of what I want to work happening fine. That is if I use the array 'display_preacher' I get 'sermon title' by 'preacher'. The only error here is that there is no space between 'sermon title' and by. There is also a full-stop at the end that I would prefer to be removed but that is not as important.

The other thing I need is a direct dynamic path to the latest mp3. At the moment to get the audio player in the footer I am using

<?php if (function_exists("insert_audio_player")) {insert_audio_player("{audio:http://doncastercitychurch.com………ka.mp3|width=100%]");} ?>

. This means every week I need to update the url path. EDIT: This site keeps trying to change the code I am inserting. Hopefully what is there makes sense.

Is there a way that I could insert a dynamic link to the mp3 path so that it would update automatically? This code would also be useful for a download link with normal anchor tags. I noticed that using the 'display_player' array could do something similar but it uses some 1pixel audio player and it wouldn't help me for the download code anyway.

Which also makes me wonder if there are any more arrays that can be used other than what is in the faq. I tried looking through the php files but couldn't find much lol.

Anyway thanks Mark again for all your help. I am using a test page at the moment which is at http://testing.doncastercitychurch.com if you want to see what I mean. I appreciate your help and thank you again for this plugin that many people in our church have commented about with enthusiasm. God bless you.

Cheers,
Ben

Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online:
10 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.