-
AuthorPosts
-
valtersgrivins Friend
valtersgrivins
- Join date:
- February 2008
- Posts:
- 38
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
August 24, 2012 at 4:02 pm #180207Hello!
I need to correct timestamp in JA News Pro module. Searched forum, but could not find a solution.First problem is that it shows wrong time. After i publish a new article with correct time (i have set my time zone right in joomla global configuration) shown in category blog layout it shows up immediately in JA News as published “3 hours ago”!
Second problem is that i do not need “xx hours ago, or xx years ago” format. I need classic DD.MM.YY.
My test site: http://site-a.atklajumi.lv
valtersgrivins Friendvaltersgrivins
- Join date:
- February 2008
- Posts:
- 38
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
August 26, 2012 at 9:42 am #465366Support members! Can You help please???
valtersgrivins Friendvaltersgrivins
- Join date:
- February 2008
- Posts:
- 38
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
August 26, 2012 at 9:45 am #465367I guess that News module SHOULD use the time, adjusted in global settings of Joomla, didn’t it?
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
August 27, 2012 at 4:02 am #465417<em>@valtersgrivins 335780 wrote:</em><blockquote>Hello!
I need to correct timestamp in JA News Pro module. Searched forum, but could not find a solution.First problem is that it shows wrong time. After i publish a new article with correct time (i have set my time zone right in joomla global configuration) shown in category blog layout it shows up immediately in JA News as published “3 hours ago”!
Second problem is that i do not need “xx hours ago, or xx years ago” format. I need classic DD.MM.YY.
My test site: http://site-a.atklajumi.lv</blockquote>
Hello valtersgrivins,Can you PM me with your site information (your site URL, your site admin account) and your FTP account? So I can diagnose this problem.
BTW, please include this forum thread URL in your PM, so I can follow it.
Best regards.
valtersgrivins Friendvaltersgrivins
- Join date:
- February 2008
- Posts:
- 38
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
September 3, 2012 at 10:13 am #466009Hi, Stork!
I sent You PM yesterday with access data and detailed problem description.
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
September 5, 2012 at 9:28 am #466228Hello valtersgrivins,
I fixed in “/modules/mod_janewspro/helpers/adapter/content.php” file, line 329.
Changed from:
[PHP]$row->created = JHTML::_(‘date’, $row->modified);[/PHP]To:
[PHP]$row->created = JHTML::_(‘date’, $row->created);[/PHP]Then created date of article is now correct. Please check and confirm the same.
Regards.
1 user says Thank You to Stork11 for this useful post
valtersgrivins Friendvaltersgrivins
- Join date:
- February 2008
- Posts:
- 38
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
September 6, 2012 at 7:27 am #466317Thank You very much! It’s OK now. Could You fix also the same problem (modified instead of created date) with JA Bulletin module?
And the question about “3 hours ago” problem is still actual. My site will be real, daily updated news site, so i would like that there is shown correct date and time at headlines in frontpage (it’s OK with Joomla articles in blog/article layout).My prefered layout for headlines block i wish implement in JA Bulletin and JA News is:
ARTICLE TITLE
DD:MM:YYYY, HH:MMSo, may be You can advice also how i can get hours and minutes in JA Bulletin and JA News date?
Thank You!Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
September 7, 2012 at 9:28 am #466459<em>@valtersgrivins 337209 wrote:</em><blockquote>Thank You very much! It’s OK now. Could You fix also the same problem (modified instead of created date) with JA Bulletin module?
And the question about “3 hours ago” problem is still actual. My site will be real, daily updated news site, so i would like that there is shown correct date and time at headlines in frontpage (it’s OK with Joomla articles in blog/article layout).My prefered layout for headlines block i wish implement in JA Bulletin and JA News is:
ARTICLE TITLE
DD:MM:YYYY, HH:MMSo, may be You can advice also how i can get hours and minutes in JA Bulletin and JA News date?
Thank You!</blockquote>
Hello valtersgrivins,– For JA Bulletin problem, I fixed in ‘/modules/mod_jabulletin/helper.php’, line 425.
Changed from:
[PHP]
$item->date = $item->modified == null||$item->modified==””||$item->modified==”0000-00-00 00:00:00″ ? $item->created : $item->modified;
[/PHP]
To:
[PHP]
$item->date = $item->created;
[/PHP]– For changing date style to ‘DD:MM:YYYY, HH:MM’,
+ With JA Bulletin, I changed in ‘/templates/ja_teline_iv/html/mod_jabulletin/default.php’ at line 50, from:
[PHP]
<span class=”createdate”><?php echo JText::_(‘Post’).’: ‘; echo JHTML::_(‘date’, $item->date, JText::_(‘DATE_FORMAT_LC4’)); ?></span>
[/PHP]
to:
[PHP]
<span class=”createdate”><?php echo JText::_(‘Post’).’: ‘; echo JHTML::_(‘date’, $item->date, ‘d:m:Y, H:i’); ?></span>
[/PHP]+ With JA News Pro, I changed in ‘/modules/mod_janewspro/helpers/adapter/content.php’ at line 329, from:
[PHP]
$row->created = JHTML::_(‘date’, $row->created);
[/PHP]
to:
[PHP]
$row->created = JHTML::_(‘date’, $row->created, ‘d:m:Y, H:i’);
[/PHP]Hope this help.
Regards.
valtersgrivins Friendvaltersgrivins
- Join date:
- February 2008
- Posts:
- 38
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
September 7, 2012 at 1:15 pm #466476Dear, Stork!
I just noticed that You fixed everything i wrote about! Thank You very much! I matched this thread “Solved” and hope that You will post here all changes in code You did to solve my problems. I am sure that this information will be useful for other Teline IV users as well.
Sincerely,
Valters GrivinsOctober 1, 2012 at 12:17 pm #468743Hi,
I have made the changes suggested in “/modules/mod_janewspro/helpers/adapter/content.php” file, line 329, my problem is not solved, when any article using Ja news pro module is refreshed, it shows the current date. I’m experiencing the same problem with Ja News featured.Hope anyone can help.
Thanks in advance.
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
October 3, 2012 at 7:36 am #468941<em>@fred08 340547 wrote:</em><blockquote>Hi,
I have made the changes suggested in “/modules/mod_janewspro/helpers/adapter/content.php” file, line 329, my problem is not solved, when any article using Ja news pro module is refreshed, it shows the current date. I’m experiencing the same problem with Ja News featured.Hope anyone can help.
Thanks in advance.</blockquote>
Hello fred08,Can you PM me with your site information (your site URL, your site admin account) and your FTP account? So I can diagnose this problem.
BTW, please include this forum thread URL in your PM, so I can follow it.
Best regards.
October 3, 2012 at 3:28 pm #469022Please support answer my question. The articles’ date change every second. I need your help please. I’m using Ja News Pro and Ja News Featured for joomla 2.5. All the articles in categories using Ja News Pro and Ja News Featured date changes per second. When an artcile page is refreshed, its date changes. I configured the module to show the created date.
I look forward to hearing from you
Thanks in adavance,
Fredy
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
October 4, 2012 at 2:37 am #469063<em>@fred08 340912 wrote:</em><blockquote>Please support answer my question. The articles’ date change every second. I need your help please. I’m using Ja News Pro and Ja News Featured for joomla 2.5. All the articles in categories using Ja News Pro and Ja News Featured date changes per second. When an artcile page is refreshed, its date changes. I configured the module to show the created date.
I look forward to hearing from you
Thanks in adavance,
Fredy</blockquote>
Hello fred08,You can add Ja News Pro and Ja News Featured modules into cache exclude list in Template Manager of JA Teline IV. You can check this guide http://wiki.joomlart.com/wiki/JA_T3_Framework_2/Guides#System_Settings
Regards.
-
AuthorPosts
This topic contains 14 replies, has 4 voices, and was last updated by artmaster 12 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum