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.

how to add picture to Latest sermon

More
18 Feb 2013 21:53 #3090 by antt7
Hi,
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.

More
19 Feb 2013 08:12 #3091 by Thomas Hunziker
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:
  • 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.

More
19 Feb 2013 08:47 #3092 by antt7
thanks for your answer.
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.

More
19 Feb 2013 09:04 #3093 by Thomas Hunziker
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:
Code:
<img src="<?php echo $row->picture; ?>">
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:
<?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.

More
19 Feb 2013 09:08 - 19 Feb 2013 09:24 #3094 by antt7
Tnahks a lot.
Is it possible to add this option in new version of LatestSermons module?

I'll like to do like in picture
Could you help me write some lines of code?


Attachments:
Last edit: 19 Feb 2013 09:24 by antt7.

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

More
19 Feb 2013 10:02 - 19 Feb 2013 10:02 #3095 by Thomas Hunziker

antt7 wrote: Is it possible to add this option in new version of LatestSermons module?

Of course it's possible to add this option. If you (or someone else) provides it, I will be happy to include it.

you help me write some lines of code?

I already helped you with the needed code. The rest is really HTML.
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.194 seconds
Powered by Kunena Forum