+ Reply to Thread
Results 1 to 3 of 3

Thread: How do I change the default sorting (date added) to a different one?

Hybrid View

  1. #1
    Junior Member
    Join Date
    Sep 2020
    Location
    Nizhny Novgorod, Russia
    Posts
    28

    How do I change the default sorting (date added) to a different one?

    Added sorting by the alexa field (Alexa Rank).

    However, sorting is done by default by the date it was added.

    Alexa.jpg

    Sorting is in the listing.
    Last edited by Eugeniy; October 6, 2020 at 02:37 PM.

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    Go to includes > controllers > listing_type.inc.php

    find:
    PHP Code:
    Only registered members can view the code
    and:
    PHP Code:
    Only registered members can view the code
    replace $_SESSION['search_sort_by'] and $_SESSION['browse_sort_by'] with your field key respectively

  3. #3
    Junior Member
    Join Date
    Sep 2020
    Location
    Nizhny Novgorod, Russia
    Posts
    28
    Thank you very much. I study the script. Nice system!

+ Reply to Thread