SermonSpeaker Annoyance
Posted by: Joel Larkin
on Jan 15, 2009
I've been using SermonSpeaker 3.0/3.1 to organize & display sermons for customer websites. It was annoying me for awhile the default view that was presented (see below). It gives a Play Icon and the text (Play) as two seperate links requiring you to click on the links in order to get to a download link. I made some simple modifications to offer a download link right next to the play icon in order to simplify things.
In SermonSpeaker.PHP
Edit Line 238, 277,279,281,283,285 which are $query lines to include sermon_path after sermon_title. (remember each line contains a different sort)
Example: $query = "SELECT sermon_title, sermon_path ,sermon_number, sermon_scripture, sermon_date, sermon_time, notes, k.name, k.pic, j.id, j.addfile, j.addfileDesc FROM jos_sermon_sermons j, jos_sermon_speakers k WHERE j.speaker_id = k.id AND j.published='1' ORDER BY j.sermon_date desc, (j.sermon_number+0) desc LIMIT $limitstart,$limitend";
In SermonSpeaker.html.php
Edit Line 225
FROM:
); ?>" style="text-decoration:none">play; ?>)TO:
To:
echo $tag; ?>" href="/<?php echo JRoute::_(HTML_speaker::makelink($row->sermon_path)); ?>" style="text-decoration:none"><img src="/<?php echo JURI::root(). "components/com_sermonspeaker/images/download.gif">" ;?></a>
Edit Line 219
echo $tag; ?>" href="/sermon_path)); ?>" style="text-decoration:none">
Remove the (
To:
echo " <a href="/".JRoute::_( "index.php?option=$option&task=singlesermon&id=$row->id&Itemid=$Itemid" ).""><img title="".$lang->playtoplay."" src="/".JURI::root()."components/com_sermonspeaker/images/play.gif" width="16" height="16" border="0"></a> <a TITLE="";
So now it appears like so.

written by Andrew O'Dell, April 21, 2009
A
written by glasses, June 06, 2010

1. remove ( from line 231
2. in line 237, replace this:
echo $tag; ?>" rel="nofollow" href="/" style="text-decoration:none">)
with this:
echo $tag; ?>" rel="nofollow" href="/" style="text-decoration:none">