Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • islandview Friend
    #145405

    Hi there – Any ideas how I can change the way the SideNews module works so it will display by ‘Modified’ date instead of created? This would be so much more useful for me….

    In an ideal world I’d want both – so it would show the latest article whether by modify or creation date – That way brand new articles would show and modified ones would show…

    But I’d settle for just ‘modified’ instead of ‘created’…

    Any ideas what I need to change to get it working?

    Thanks!

    Saguaros Moderator
    #321222

    Hello acbonner!

    Now, You open file: “modulesmod_jasidenewstmpldefault.php” and find a section code at line 11:

    [PHP]$item->date = strtotime ( $item->modified ) ? $item->created : $item->modified;[/PHP]

    you replace them by this code:
    [PHP]$item->date = !strtotime ( $item->modified ) ? $item->created : $item->modified;[/PHP]

    good luck.

    islandview Friend
    #321224

    Thanks for speedy reply. Did you try this tweak yourself? Doesn’t seem to make any difference on mine at all…. I did a full browser refresh and set to no cache too – nothing :confused:

    Saguaros Moderator
    #321226

    It work done on my site.
    May be you do not turn off cache in the configuration of ja sidenews.
    You try to check again.

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

This topic contains 4 replies, has 2 voices, and was last updated by  Saguaros 15 years ago.

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