- Posts: 24
- 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.
Alignment
- Haig Darakjian
- Topic Author
- Offline
- Junior Member
Less
More
25 Feb 2011 01:33 #293
by Haig Darakjian
Replied by Haig Darakjian on topic Re: Alignment
Thanks!
Please Log in or Create an account to join the conversation.
- Haig Darakjian
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 0
25 Feb 2011 02:10 #294
by Haig Darakjian
Replied by Haig Darakjian on topic Re: Alignment
Is there a way to link to the "All Sermons" list without going through the menu?
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
25 Feb 2011 16:24 #296
by Thomas Hunziker
Replied by Thomas Hunziker on topic Re: Alignment
You could use the "Latest Sermons" module, it has an option to show such a link. Or you simply link somewhere to "
www.yoursite.com/index.php?option=com_se...speaker&view=sermons
" on your page. But you don't have a nice SEF URL then.
Please Log in or Create an account to join the conversation.
- Haig Darakjian
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 0
26 Feb 2011 05:43 #298
by Haig Darakjian
Replied by Haig Darakjian on topic Re: Alignment
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
26 Feb 2011 08:11 - 26 Feb 2011 08:40 #299
by Thomas Hunziker
Replied by Thomas Hunziker on topic Re: Alignment
Seems you found a bug
Just to verify it:
Can you check the timezone setting for Joomla and for the logged in user?
I think the problem is the time difference between those timezones. Joomla will calculate the difference and if the difference is in the right direction, it goes back to the previous month
-- edit start --
I figured out the real problem.
Between J1.5 and J1.6 the Date function for Joomla changed, and apparently I understood something wrong.
There is a third parameter which tells Joomla which timezone to use, true means it takes the timezone for the user, false the one for the system. But both are compared against 'UTC' and one can also provide a defined timezone, like 'UTC'.
Apparently if we don't want Joomla to make calculation, we should do just this, giving 'UTC' as the timezone.
Can you test if it works when you change the line #43 in the file /components/com_sermonspeaker/views/archive/view.html.php
to
If this doesn't work, try the following:
-- edit end --
It could probably also be fixed by editing the file /components/com_sermonspeaker/views/archive/view.html.php. Change the following lines (around #35):
to
Basically we would add a day (the 15th) to the date, so it should not go back to the previous month anymore.
Just to verify it:
Can you check the timezone setting for Joomla and for the logged in user?
I think the problem is the time difference between those timezones. Joomla will calculate the difference and if the difference is in the right direction, it goes back to the previous month
-- edit start --
I figured out the real problem.
Between J1.5 and J1.6 the Date function for Joomla changed, and apparently I understood something wrong.
There is a third parameter which tells Joomla which timezone to use, true means it takes the timezone for the user, false the one for the system. But both are compared against 'UTC' and one can also provide a defined timezone, like 'UTC'.
Apparently if we don't want Joomla to make calculation, we should do just this, giving 'UTC' as the timezone.
Can you test if it works when you change the line #43 in the file /components/com_sermonspeaker/views/archive/view.html.php
Code:
$title = JText::_('COM_SERMONSPEAKER_ARCHIVE_TITLE').' '.JHTML::date($date, date_format, false).$cat;
Code:
$title = JText::_('COM_SERMONSPEAKER_ARCHIVE_TITLE').' '.JHTML::date($date, $date_format, 'UTC').$cat;
-- edit end --
It could probably also be fixed by editing the file /components/com_sermonspeaker/views/archive/view.html.php. Change the following lines (around #35):
Code:
// Create title
if ($state->get('date.month')){
$date = $state->get('date.year').'-'.$state->get('date.month');
$date_format = 'F, Y';
} else {
$date = $state->get('date.year').'-01';
$date_format = 'Y';
}
$title = JText::_('COM_SERMONSPEAKER_ARCHIVE_TITLE').' '.JHTML::date($date, $date_format, false).$cat;
Code:
// Create title
if ($state->get('date.month')){
$date = $state->get('date.year').'-'.$state->get('date.month').'-15';
$date_format = 'F, Y';
} else {
$date = $state->get('date.year').'-01-15';
$date_format = 'Y';
}
$title = JText::_('COM_SERMONSPEAKER_ARCHIVE_TITLE').' '.JHTML::date($date, $date_format, false).$cat;
Last edit: 26 Feb 2011 08:40 by .
Please Log in or Create an account to join the conversation.
- Haig Darakjian
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 0
26 Feb 2011 20:54 #300
by Haig Darakjian
Replied by Haig Darakjian on topic Re: Alignment
Very nice. The first solution worked. Thanks a lot!
Please Log in or Create an account to join the conversation.
Time to create page: 0.106 seconds