Support for SermonSpeaker 4.x is canceled as it is for Joomla 2.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 5.x and Joomla 3.x, which is better anyway.
The fix is to upgrade to SermonSpeaker 5.x and Joomla 3.x, which is better anyway.
how to add picture to Latest sermon
- Thomas Hunziker
- Offline
- Administrator
Less
More
09 Jul 2015 07:39 #5399
by Thomas Hunziker
Replied by Thomas Hunziker on topic how to add picture to Latest sermon
Please update the component (and all associated modules and plugins) to the latest version.
Please Log in or Create an account to join the conversation.
10 Jul 2015 03:47 #5400
by Tim
Replied by Tim on topic how to add picture to Latest sermon
Hi Thomas,
I've now updated to the latest version, and installed your module however it is still not showing.
captivate-media.com.au/axischurch/
It's on the homepage halfway down.
I've now updated to the latest version, and installed your module however it is still not showing.
captivate-media.com.au/axischurch/
It's on the homepage halfway down.
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
10 Jul 2015 18:03 #5402
by Thomas Hunziker
Replied by Thomas Hunziker on topic how to add picture to Latest sermon
What layout are you using there? It looks like a custom one. If so, you need to adjust it to check for the series picture as well.
Please Log in or Create an account to join the conversation.
11 Jul 2015 14:28 #5404
by Tim
Replied by Tim on topic how to add picture to Latest sermon
Yeah it is a custom template, but I did try the default and the blog template and neither were displaying any images.
I'm using this in my template:
<img src="<?php echo $row->picture; ?>"
I'm using this in my template:
<img src="<?php echo $row->picture; ?>"
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
11 Jul 2015 21:22 #5405
by Thomas Hunziker
Replied by Thomas Hunziker on topic how to add picture to Latest sermon
The layouts shipped with SermonSpeaker will onyl show a picture as part of the player, nowhere else. That's why
Your code will only show the picture from the sermon, the series and speaker picture are stored in another property.
SermonSpeaker has a helper function which will try to guess the most matching picture for a sermon. The priority of this can be specified in the SermonSpeaker options -> Editing tab. The parameter is named "Picture Priority" and it will also use the "Default Picture" you can specify there.
To use that helper function, make sure you have the helper included in your layout. Either using
or
This is usually best placed somewhere on top of the file, but for sure before you first use the helper.
The actual helper method is then used like this:
Your code will only show the picture from the sermon, the series and speaker picture are stored in another property.
SermonSpeaker has a helper function which will try to guess the most matching picture for a sermon. The priority of this can be specified in the SermonSpeaker options -> Editing tab. The parameter is named "Picture Priority" and it will also use the "Default Picture" you can specify there.
To use that helper function, make sure you have the helper included in your layout. Either using
Code:
JLoader::discover('SermonspeakerHelper', JPATH_COMPONENT . '/helpers');
Code:
require_once JPATH_SITE . '/components/com_sermonspeaker/helpers/sermonspeaker.php';
The actual helper method is then used like this:
Code:
<img src="<?php echo SermonspeakerHelperSermonspeaker::insertPicture($row); ?>">
Please Log in or Create an account to join the conversation.
13 Jul 2015 09:09 #5406
by Tim
Replied by Tim on topic how to add picture to Latest sermon
Please Log in or Create an account to join the conversation.
Time to create page: 0.117 seconds