Logo of SermonSpeaker Extension Claim

Login Form

× Support for SermonSpeaker 3.x is canceled as it is for Joomla 1.5. I will gladly assist you with minor issues but I will not fix any bugs anymore in this releases.
The fix is to upgrade to SermonSpeaker 4.x, which is better anyway.

Make Series Linkable

More
7 years 1 month ago #740 by Seth Hoffman
Hi there,

On our media page ( harborchurch.us/media/sermons.html ) I would love to just display the image icons for the sermon series, rather than also including the speakers and title. Is there a way to just make the image linkable? Or to reduce what is shown on that media landing page?

Thanks in advance for the help!
Seth

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #741 by Thomas Hunziker
In SermonSpeaker 4.x this is possible by adjusting the options. In SermonSpeaker 3.x you'll have to edit the layout file for this view. If you're familiar with HTML, this should be doable :-)

The file is located at

/components/com_sermonspeaker/views/series/tmpl/default.php


The part in question is then this:
<table cellpadding="2" cellspacing="2" width="100%">
	<tr>
		<?php if($this->av) { echo "<th width='10'> </th>"; } ?>
		<th align="left"><?php echo JText::_('COM_SERMONSPEAKER_SERIESTITLE'); ?></th>
		<th align="left"><?php echo JText::_('COM_SERMONSPEAKER_SPEAKER'); ?></th>
	</tr>
	<?php
	$i = 0;
	$base = JURI::root();
    	foreach($this->rows as $row) {
			echo "<tr class=\"row$i\">\n"; 
			$i = 1 - $i;
			if ($this->av) {
				if ($row->avatar != '') { 
					echo "<td><img src='".SermonspeakerHelperSermonspeaker::makelink($row->avatar)."' ></td>";
				} else { 
					echo "<td> </td>"; 
				} 
			}
			?> 
    		<td align="left" nowrap><a title='<?php echo JText::_('COM_SERMONSPEAKER_SERIESLINK_HOOVER'); ?>' href="<?php echo JRoute::_("index.php?view=serie&id=$row->id" ); ?>"><?php echo $row->series_title; ?></a></td>
    		<td align="left">
				<?php echo $row->speakers; ?>
			</td>
			<td><a href="index.php?option=com_sermonspeaker&view=feed&series_id=<?php echo $row->id; ?>"><img src="images/M_images/livemarks.png"></a></td>
			</tr>
    	<?php } ?>
</table>

As you see it's mostly HTML with PHP snippets inside.

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.

Please Log in or Create an account to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum