Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • infodsign Friend
    #206385

    Hi there!!

    I need my latest news in Home 10 to display order only by created or published date, and still doing it by the more visited.

    I’ve seen other Threads are solved but I can get to do it

    Can you help me??

    Thanks!!

    Pankaj Sharma Moderator
    #570811

    Hello @infodsign
    Can you PM me your working site admin details ,
    so i can check it and help u fix this issue .

    Pankaj Sharma Moderator
    #735873

    Hello @infodsign
    Can you PM me your working site admin details ,
    so i can check it and help u fix this issue .

    Pankaj Sharma Moderator
    #570849

    Hi
    Do the below work

    Edit file “/html/mod_articles_latest/focus.php” in template “ja_magz”.

    Find this code :

    //sort those latest article by hits
    $compare = create_function('$a, $b', ' if ($a->hits == $b->hits) { return 0; } return ($a->hits < $b->hits) ? 1 : -1; ');

    replace it with this :

    //sort those latest article by hits

    $compare = create_function('$a, $b', ' if ($a->created == $b->created) { return 0; } return ($a->created < $b->created) ? 1 : -1; ');

    Save and check .
    Let me know if it helps .

    Pankaj Sharma Moderator
    #735911

    Hi
    Do the below work

    Edit file “/html/mod_articles_latest/focus.php” in template “ja_magz”.

    Find this code :

    //sort those latest article by hits
    $compare = create_function('$a, $b', ' if ($a->hits == $b->hits) { return 0; } return ($a->hits < $b->hits) ? 1 : -1; ');

    replace it with this :

    //sort those latest article by hits

    $compare = create_function('$a, $b', ' if ($a->created == $b->created) { return 0; } return ($a->created < $b->created) ? 1 : -1; ');

    Save and check .
    Let me know if it helps .

    infodsign Friend
    #570991

    Hi pankajsharma…

    I’ve made the change and it’s working great!!

    Thanks a lot!!!

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

This topic contains 6 replies, has 2 voices, and was last updated by  Pankaj Sharma 9 years, 6 months ago.

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