Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • dalmatino Developer
    #175764

    I am using JAteline IV, Joomla 2.5. When is in backend “Show Create Date” turned on, on frontend janewspro module shows modified date. Is there any way that it shows created date? (i use default theme)


    1. modified_date
    khoand Friend
    #447244

    It’s weird, because my localhost ja_teline_iv works normally. Could you give me username+password of your backend and ftp? I will check it.

    dalmatino Developer
    #447314

    Sorry, but it is not weird becouse even when I created site with Joomlart Demo Builder it has the same problem. Exstensions>Module Manager>JA News – Default Layout – then I have turn On “Show Create day” and went to any article that shows date on frontpage, just opened and saved and it shows Modified date, not created date. Its big problem to me, becouse i have set order of articles by created date, and i need to have show created date. Thanks

    khoand Friend
    #447371

    You’re right. It’s a bug. You replace the code from /modules/mod_janewspro/helpers/adapter/content.php

    if(($enabletimestamp) && ($showdate)) $row->created = $helper->generatTimeStamp($row->modified);
    else $row->created = JHTML::_('date', $row->modified);

    with

    if(($enabletimestamp) && ($showdate)) $row->created = $helper->generatTimeStamp($row->created);
    else $row->created = JHTML::_('date', $row->created);

    You remember clear cache of server and browser.

    dalmatino Developer
    #447421

    Great, it works fine now. Thanks a lot.

    artmaster Friend
    #448419

    My original code (CONTENT.PHP) is different. Using Joomla 2.5 and JA News Pro Module versione 2.5.1

    Original Code:

    if ($enabletimestamp)
    $row->created = $helper->generatTimeStamp($row->modified);
    else
    $row->created = JHTML::_('date', $row->modified);

    MODIFIED CODE

    if(($enabletimestamp) && ($showdate)) $row->created = $helper->generatTimeStamp($row->created);
    else $row->created = JHTML::_('date', $row->created);

    No way for me, empty cache browser /server etc.

    Any Ideas?

    Sherlock Friend
    #448480

    Hi luca,

    Thank you for contacting us !
    You might have made a mistake with your replaced code, You should try as following
    Opeo the file of modulesmod_janewsprohelpersadaptercontent.php looking for this code
    [PHP] if ($enabletimestamp)
    $row->created = $helper->generatTimeStamp($row->modified);
    else
    $row->created = JHTML::_(‘date’, $row->modified);
    [/PHP]
    and change it to
    [PHP] if ($enabletimestamp)
    $row->created = $helper->generatTimeStamp($row->created);
    else
    $row->created = JHTML::_(‘date’, $row->created);[/PHP]

    I hope this should help !

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

This topic contains 7 replies, has 4 voices, and was last updated by  Sherlock 12 years, 7 months ago.

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