- Posts: 92
- Thank you received: 0
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
18 Feb 2013 21:53 #3090
by antt7
how to add picture to Latest sermon was created by antt7
Hi,
how to add picture of speaker or sermon to Latest sermon module?
What is file to configure?
Thanks a lot.
how to add picture of speaker or sermon to Latest sermon module?
What is file to configure?
Thanks a lot.
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
19 Feb 2013 08:12 #3091
by Thomas Hunziker
Replied by Thomas Hunziker on topic how to add picture to Latest sermon
The file for the module output is in /modules/mod_latestsermons/tmpl/. Dependending on the layout the file is default.php or blog.php.
The available pictures are:
Instead of directly editing the files, you could also create a layout override in your template. You would put the file to /templates/your_template/html/mod_latestsermons/default.php (or whatever name). This way your changes would not get overwritten if the module gets updated.
The available pictures are:
- Sermon: $row->picture
- Speaker: $row->pic
Instead of directly editing the files, you could also create a layout override in your template. You would put the file to /templates/your_template/html/mod_latestsermons/default.php (or whatever name). This way your changes would not get overwritten if the module gets updated.
Please Log in or Create an account to join the conversation.
19 Feb 2013 08:47 #3092
by antt7
Replied by antt7 on topic how to add picture to Latest sermon
thanks for your answer.
I use blog view, but i do not know how to add picture (
Could you write some code.
Thanks
I use blog view, but i do not know how to add picture (
Could you write some code.
Thanks
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
19 Feb 2013 09:04 #3093
by Thomas Hunziker
Replied by Thomas Hunziker on topic how to add picture to Latest sermon
It depends where you like the picture to show. The important section is between the "foreach", this is where the code is for the individual sermons. You have to add something like this there:
Basically it's HTML code and PHP will insert the filepath.
If you want to make it a bit more complex you can add a check around it to see if a picture is set, and only show the picture if one is available. This is done with an "if" clause:
Code:
<img src="<?php echo $row->picture; ?>">
If you want to make it a bit more complex you can add a check around it to see if a picture is set, and only show the picture if one is available. This is done with an "if" clause:
Code:
<?php if ($row->picture) : ?>
<img src="<?php echo $row->picture; ?>">
<?php endif; ?>
The following user(s) said Thank You: antt7
Please Log in or Create an account to join the conversation.
19 Feb 2013 09:08 - 19 Feb 2013 09:24 #3094
by antt7
Replied by antt7 on topic how to add picture to Latest sermon
Last edit: 19 Feb 2013 09:24 by antt7.
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
19 Feb 2013 10:02 - 19 Feb 2013 10:02 #3095
by Thomas Hunziker
Replied by Thomas Hunziker on topic how to add picture to Latest sermon
Of course it's possible to add this option. If you (or someone else) provides it, I will be happy to include it.antt7 wrote: Is it possible to add this option in new version of LatestSermons module?
I already helped you with the needed code. The rest is really HTML.you help me write some lines of code?
Last edit: 19 Feb 2013 10:02 by Thomas Hunziker.
Please Log in or Create an account to join the conversation.
Time to create page: 0.119 seconds