Contents

Member Sign in

admin

Sermon Views - Styling and Controlling

Controlling the Width and Height

If you are using the SCRIPT method to embed your sermons, you can control the size of the sermon display by pasting the script into a table cell, and setting the table's WIDTH and HEIGHT attributes. The following example limits the width of the sermon display to 500 pixels, and guarantees that it will be at least 1,025 pixels high:

<table width="500px" height="1024px">
   <tr>
       <td>-- Paste Your Sermon Archive SCRIPT Here --</td>
   </tr>
</table>


If you are using the IFRAME method to embed your sermons, you can control the dimensions by setting the iframe's WIDTH and HEIGHT attributes. The following example limits the width of the sermon display to 500 pixels, and guarantees that it will be at least 1,025 pixels high:

<iframe width="500px" height="1024px"
src="https://www.sermonsonline.com/wrapper.htm..." />



Controlling Styling

The visual appearance of the sermons is controlled via a Sermon Style Sheet, which is part of your Sermon Site Settings page. You can learn about style sheets at the W3Schools' CSS Home Page.

By far the most important Sermon Style is "Default Sermon Text". This is the starting-point from which all other styles are defined. The default Sermon Category style, for example, is to enbolden whatever font is specified as the Default Sermon Text.

If you are using the SCRIPT method to embed your sermons, then the sermon view will inherit any CSS styles selected by HTML tags that you have defined elsewhere on the web page. For example, if you have defined styles for anchor text, they will be applied to the anchors generated in the sermon view.

If you are using the IFRAME method, however, then the sermon view will not inherit any CSS styles from the containing page. You can completely override the default styling for sermons by including a selector for the "sermon" class within the default style field. For example, the following value would set all sermon text to 11px by default, and disable underlining for all sermon link text:

#sermons {font-size:11px !important;} #sermons a {text-decoration:none !important;}


Controlling Content

By default, Sermons Online displays the "By Date" view, and shows 26 sermons per page. You can change this behavior by customizing the following URL parmeters.

Each URL parameter is composed of a name/value pair. The parameter is prefixed with an ampersand (&) character. Example:

&this_name=that_value


Sets the parameter named "this_name" to the value, "that_value".

URL parameters can be placed both in the links that target your sermon page, and in Sermons Online HTML script that is embedded in a web page via copying and pasting. Parameters passed via a link to a page take preceedence over embedded parameters.

Embedded Parameters Example:

<script type="text/javascript">document.write("<script type='text/javascript' 
src='https://www.sermonsonline.com/index.php?sermonsite_custid=XXXXX
&PARAMETER_NAME=SOMEVALUE
&sermonsite_href=" + escape(location.href) + "'>
<","/script>");</script><a href="https://www.sermonsonline.com"></a>


Embeds the parameter, "PARAMETER_NAME" with the value "SOMEVALUE" into the Sermons Online HTML script. Note that the parameter is prefixed with an ampersand (&) character.

Link Example:

http://www.your-website.org/your-sermon-page.html?PARAMETER_NAME=SOMEVALUE


Passes the parameter, "PARAMETER_NAME" with the value "SOMEVALUE" to the your-sermon-page.html file. If this parameter is already defined in the Sermons Online script HTML embedded into that page, it will be overridden.

Selecting Which Sermon View To Display

The sermonsite_action parameter defines which view is shown by the Sermons Online HTML script. Valid values are one of the following:

  • sermonsite_action=view_index - view by Date (default)
  • sermonsite_action=view_authors - view by Speaker Name
  • sermonsite_action=view_topics - view by Series Name
  • sermonsite_action=view_scriptures - view by Scripture Reference
  • sermonsite_action=view_titles - view by Sermons Title
  • sermonsite_action=view_feeds - view Content Feed directory

Example:

&sermonsite_action=view_topics


Sets the view to View by Topic

Displaying Just The Most Recent Sermons

A special sermonsite_action parameter can be used to display a short snippet of HTML that contains only the most recent sermon:

  • sermonsite_action=get_current_sermon

This parameter finds the date of the most recently-delivered sermon, then lists just the sermons that were delivered on that date. Unlike the normal view, this parameter returns just a "snippet" of HTML text, suitable for embedding into a paragraph or table cell.

Example:

&sermonsite_action=get_current_sermon


Finds the date of the most recently-delivered sermon, and lists all of the sermons delivered on that date.

Setting the View Page Size

The sermonsite_pagesize parameter sets the number of sermons per page. Valid values are any number from 1-1000. Defaults are 26 for the Date view and 52 for all others.

Example:

&sermonsite_action=view_topic&sermonsite_pagesize=104


Sets the view to View by Topic, and displays 104 sermons per page.

Selecting Specific Sermons To Be Displayed

The sermonsite_selection parameters is used with sermonsite_action to limit the display of a sermon view to a matching key value. Key values are any sort key that would normally appear in the view:

  • Date view: all sermons delivered on a particular date
  • Authors view: all sermons delivered by a particular speaker
  • Topics view: all sermons in a particular series
  • Scriptures view: all sermons related to a particular book of the Bible
  • Titles view: all sermons with a particular title

All spaces in the key value should be replaced with plus ('+') signs.

Example:

&sermonsite_action=view_topic&sermonsite_selection=Grace+and+Peace


Sets view to view by Topic and displays all sermons with the topic, "Grace and Peace". Note the use of the + signs to replace spaces in the topic.

Displaying the Sermon Cover Page for a Specific Sermon

The sermonsite_sermonid parameter is used in conjunction with sermonsite_action=view_sermon to display the cover sheet of a specific sermon.

Valid values are any sermon identifier of an active sermon. Sermon identifiers are automatically assigned by the Sermon Publisher. You can read a sermon's identifier by inspecting any sermon link in any view.

Example:

&sermonsite_action=view_sermon&sermonsite_sermonid=123


Views the sermon cover page of sermon number '123'.

If you need help with any of these steps, just sign in to the Site Manager and open a Support Ticket