Bible Verse of the day
|Sermon Speaker 3.x sh404sef plugin|
|Thursday, 25 June 2009 18:25|
The Sermon Speaker component is a popular addition to any church site that runs on the Joomla! platform. Unfortunately, it does not come with a default plugin for SEF urls. Instead, it makes use of the standard Joomla! system. That is, until now.
4Christ Ministry has created a plugin designed for the sh404sef component that creates pretty SEF URLs for your site. Our plugin also offers the ability to translate the URLs into 7 different languages by default! Of course, you can always add more, or change the text of the URLs to better fit your use of Sermon Speaker by modifying the language file.
This plugin can be downloaded here, free of charge, which is inline with our ministry philosophy of witness through giving. It can also be downloaded at the Sermon Speaker site, located here.
To download this plugin, simply click the link below.
This plugin has gone through extensive testing, but still contains a few bugs that do not want to go away. There are workarounds for these bugs discussed below, but you should be aware that the current state of this plugin is Beta2. Please test this plugin before you place it on a live site.
Installation is very easy. Follow these instructions to get your SEF URLs for Sermon Speaker!
1Download the zip file to your computer.
2Unzip the file you downloaded
3Read the included README.txt file for further instructions.
4Make sure your sh404sef component is set to use the default hander for the sermon speaker component.
Depending on how you set your configuration of Sermon Speaker, you may run into a few problems.
Absolute vs. Relative Paths
Firstly, when attaching photos to your speakers, please try to use absolute, or full URLs instead of relative. By this, we mean link the photo like:
The first example is what you want to do with your speaker images. In fact, just about everything in your component should utilize absolute paths. There are various reasons for this, but suffice it to say that sh404sef does not play well with relative paths.
RSS Feed Icon Link Issue
We have had some fairly interesting problems trying to deal with the podcast and feed variables in the standard Joomla! URL. Because of this and the fact that many users have already submitted their feed URLs to iTunes and other similar sites, we have decided it was best to take out the SEF capabilities of the podcast URLs.
Not to fear, we have left in the sef code to do create SEF translations, but we have commented them out. If you want to use this feature of the plugin, simply read the com_sermonspeaker.php file located in the sef_ext directory for instructions on how to activate this feature.
Please note however, if you choose to activate this feature, you may run into some issues with functionality. To correct these issues, follow the steps below. YOU SHOULD ONLY FOLLOW THE BELOW STEPS IF YOU WANT TO HAVE SEF URLS FOR PODCASTING YOUR SERMONS!!! You have been warned! ;)
Open your mod_sermoncast.php file and look for the following code on or about line 74:
echo '<br /><a href="'.$feedFile.'">'.$lang->fullfeed.'</a> <a href="'.$feedFile.'&type=rss"><img src="'.JURI::root().'modules/mod_sermoncast/feed_rss.gif" border="0" /></a></ br>';
And change this code to the following:
echo '<br /><a href="'.$feedFile.'">'.$lang->fullfeed.'</a> <a href="'.$feedFile.'"><img src="'.JURI::root().'modules/mod_sermoncast/feed_rss.gif" border="0" /></a></ br>';
Note that you are simply removing the &type=rss text from the code.
Save your changes and your RSS image link will work properly. In fact, it will point to the same exact place as the text link, but it does this with or without our sef plugin.
Player Popup Link Issues
Again, if you have your Sermon Speaker configuration set to take advantage of the new player popup feature, you may have to make another slight adjustment to the code for sermon speaker.
Open the file sermonspeaker.html.php located in the component/com_sermonspeaker/ folder and look at or near lines 523 and 573 for the following code (it's the same for both lines):
echo "<td><input style=\"font-size:12px;color:#000066;font-family:verdana;\" type=\"button\" name=\"".$lang->popup_player."\" value=\"".$lang->popup_player."\" onClick=\"popup = window.open('".JRoute::_("index2.php?option=$option&task=popup_player&id=$id&Itemid=$Itemid")."', 'PopupPage', 'height=".$pp_h.",width=".$pp_w.",scrollbars=yes,resizable=yes'); return false\"></td>";
and change it to this (both lines 523 and 573):
echo "<td><input style=\"font-size:12px;color:#000066;font-family:verdana;\" type=\"button\" name=\"".$lang->popup_player."\" value=\"".$lang->popup_player."\" onClick=\"popup = window.open(".JRoute::_(\"".JURI::root()."index2.php?option=$option&task=popup_player&id=$id&Itemid=$Itemid")."', 'PopupPage', 'height=".$pp_h.",width=".$pp_w.",scrollbars=yes,resizable=yes'); return false\"></td>";
The reason for this change is because Sermon Speaker takes advantage of the index2.php file, which loads objects without the template in the background. If you do not perform this step, the popup player will work, but you will get a popup page loaded with your site's template in the background.
Possible Language Translation Issues
Since we do not speak multiple languages fluently, we must rely on others to make sure our translations are accurate. This plugin comes with 7 translations available by default. These include French, German, Italian, Hungarian, Dutch, Spanish and of course, English. Should you find a problem with one of our translations, please let us know by leaving a comment here or at the main site for Sermon Speaker.
All questions should be directed to the appropriate location in our forums. If you are logged into your 4Christ Ministry account, you can post your questions directly inside this article and our automated system will take care of the rest!
It has been our extreme pleasure to offer you this plugin for your sites. We look forward to our ability to continue to support the Joomla! community!
|Last Updated on Tuesday, 07 July 2009 17:18|