Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • valtersgrivins Friend
    #180207

    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

    valtersgrivins Friend
    #465366

    Support members! Can You help please???

    valtersgrivins Friend
    #465367

    I guess that News module SHOULD use the time, adjusted in global settings of Joomla, didn’t it?

    Stork11 Friend
    #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 Friend
    #466009

    Hi, Stork!

    I sent You PM yesterday with access data and detailed problem description.

    Stork11 Friend
    #466228

    Hello 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.

    valtersgrivins Friend
    #466317

    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:MM

    So, may be You can advice also how i can get hours and minutes in JA Bulletin and JA News date?
    Thank You!

    Stork11 Friend
    #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:MM

    So, 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 Friend
    #466476

    Dear, 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 Grivins

    fred08 Friend
    #468743

    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.

    Stork11 Friend
    #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.

    fred08 Friend
    #469022

    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

    Stork11 Friend
    #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.

    artmaster Friend
    #470764

    😀 superb!

Viewing 14 posts - 1 through 14 (of 14 total)

This topic contains 14 replies, has 4 voices, and was last updated by  artmaster 12 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum