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
Two things I'm curious about...
10 November, 2011
12:22 am
hisfirewithin
Hanford, CA.
New Member
Forum Posts: 2
Member Since:
9 November, 2011
Offline

First, where are the shortcodes defined, and how can I modify them?

Secondly, how can I add JUST a download link with no player, and put it where I want to put it without entering the unique file path every week?

10 November, 2011
3:57 am
xrstokes
Australia
Enthusiast
Forum Posts: 19
Member Since:
30 September, 2011
Offline

I found my shortcode here. http://www.sermonbrowser.com/c…..omisation/
I put them in a blog as well as a sermon page. Check out http://www.cocwarragul.org.au/…..rgiveness/ to see what i mean.
I just put the following in the blog/page where I want the sermon.

"]sermon id=5["

Without the quotation marks and where 5 is the number corresponding to the sermon you want displayed there.

To show a download link you could use something like this in the mp3 shortcode.

<a title="Right Click – Save As" href="%SERMONURL%" target="_blank">Download Sermon</a>

If you don't wan't people to have to right click and go to save as. Then include mp3 files in the .htaccess file under a mime type of binary only. That should mean that no mp3's can be streamed and will always ask client to download. Just Google for force download mp3 file. Should find what i'm on about.

Of course you could also edit the Frontend.php file similar to in this tutorial. http://www.sermonbrowser.com/f…..s-1/#p3619
Not exactly sure what to change though without a lot of fidgeting.

Grant.

I Love People. I Love Jesus. But most of all. I Love telling People about Jesus.
10 November, 2011
4:12 am
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 387
Member Since:
18 June, 2009
Offline

For your first question:
I'm assuming that by "shortcodes" you are referring to the tags that you use in the Sermon Browser templates? If so…

The template tags are defined in "sermon-browser/sb-includes/dictionary.php". In this file, you'll find two functions:
sb_search_results_dictionary() contains the template tags that you can use in the "Search Results Page" template.
sb_sermon_page_dictionary() contains the template tags that you can use in the "Sermon Page" template.
Note that there are some template tags that appear in both functions.

You can change the definition of any of these tags or add your own tags.

Important note: The code in dictionary.php is only processed when you save a new template. As a result, after you make any changes to dictionary.php, you need to go into the Sermon Browser template page and hit the "Save" button, even if you didn't make any changes to the template code. This will load your new definitions from dictionary.php.

Ben Miller
Pathways Church, Appleton, WI, USA
10 November, 2011
6:55 pm
hisfirewithin
Hanford, CA.
New Member
Forum Posts: 2
Member Since:
9 November, 2011
Offline

You both were a real help to me. I was able to use the dictionary.php file to find the lines in frontend.php I needed to edit to make this happen without using the default icons. A combination of both of your answers made this possible. I will edit this post and upload the code when I get our new site live(right now it's on MAMP), but this is a HUGE breakthrough for me and I do appreciate you taking the time!

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: 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.