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.

Date Format

More
04 Feb 2011 02:14 #207 by Ruben Ryapolov
Replied by Ruben Ryapolov on topic Re: Date Format
Ok. Do you have a PM system on your forum? I need to give you the login somehow.

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

More
04 Feb 2011 06:57 #209 by Thomas Hunziker
Replied by Thomas Hunziker on topic Re: Date Format
Use my email ;)
bakual@bakual.ch

A PM system is a good idea however. Will look to implement this.

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

More
05 Feb 2011 02:02 #233 by Ruben Ryapolov
Replied by Ruben Ryapolov on topic Re: Date Format
Email Sent.

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

More
05 Feb 2011 07:56 #237 by Thomas Hunziker
Replied by Thomas Hunziker on topic Re: Date Format
And fixed ;)

The problem was indeed that when you moved around the columns, you probably dropped the part which translates the dateformat. So you had the dateformat like this:
Code:
<?php echo $row->sermon_date; ?>
which outputs the date like it is stored in the database.
I changed it to
Code:
<?php echo JHTML::date($row->sermon_date, JText::_($this->params->get('date_format')), 0); ?>
which does the formatting based on the parameter.
It's fixed in the sermons and videos view. Are there other places where it doesn't work?

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

More
06 Feb 2011 23:39 - 06 Feb 2011 23:44 #240 by Ruben Ryapolov
Replied by Ruben Ryapolov on topic Re: Date Format
Thanks so much! :woohoo:

Also, if I didn't want to use the parameters, could I do this?
Code:
<?php echo JHTML::date($row->sermon_date, JText::_(%b %d, %Y), 0); ?>
Last edit: 06 Feb 2011 23:44 by Ruben Ryapolov.

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

More
07 Feb 2011 08:21 #243 by Thomas Hunziker
Replied by Thomas Hunziker on topic Re: Date Format
Nah, without using the parameter you would just put in the format directly:
Code:
<?php echo JHTML::date($row->sermon_date, '%b %d, %Y', 0); ?>
The parameter is saved as a translatable string, like "DATE_FORMAT_LC". JText::_() then translates the string to the format defined in the language file.

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

Time to create page: 0.103 seconds
Powered by Kunena Forum