SermonSpeaker Annoyance

Posted by: Joel Larkin

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:

 echo $tag; ?>" href="/
); ?>" 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 "&nbsp;&nbsp;<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.

 

Comments (4)Add Comment
0
Thanks and update
written by Andrew O'Dell, April 21, 2009
Joel! Thanks so much for this tip! Overall, I followed the directions and got the desired result, however I did get a little bogged down in the section for SermonSpeaker.html.php and wanted to offer this update:

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">
0
oops!!!
written by Andrew O'Dell, April 21, 2009
I just realized part of the confusion! In my above post (and your original instructions) the ASCII codes for parenthesis are being converted back into parenthesis when this page is rendered. But folks will need to be on the lookout for £40; and £40; (where pound will be a #). Hope this helps!
A
Joel Larkin
Clarification - Edit Lines
written by Joel Larkin, May 20, 2009
I've updated this post to reflect the right TO lines.
0
glasses
written by glasses, June 06, 2010
Many people will always eyeglasses tend to wear glasses for long time. Until the spectacle is broke they can not be used to replace one. According to a recent large-scale survey found that consumers using the resin lens, there are 29.2% of them replace a pair of glasses three years time or more.

Write comment

busy