+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: How can I make default sort by:number of ads at Real Estate Accounts page?

  1. #1
    Senior Member
    Join Date
    Nov 2016
    Posts
    109

    How can I make default sort by:number of ads at Real Estate Accounts page?

    When we open first time real estate accounts page, How can we call accounts default sort by: number of ads (descenting) ?
    Screenshot_6.jpg

  2. #2

  3. #3
    Senior Member
    Join Date
    Nov 2016
    Posts
    109
    Thank u Bahram

    I changed code like your link. accounts sort is "number of ads" now but title looking still "Date" How can fix to title?

    Screenshot_7.jpg

  4. #4
    Please go to templates/temlplate_folder/tpl/blocks/grid_navbar_account.tpl
    Find:
    Code:
    Only registered members can view the code.
    Change to:
    Code:
    Only registered members can view the code.
    Save and check.

  5. #5
    Hello Halit,

    Open file: ftp://includes>>controllers>>account_type.inc.php
    find line:

    PHP Code:
    Only registered members can view the code
    and change to:

    PHP Code:
    Only registered members can view the code
    Save and check again.
    Viktor,
    Flynax technical department,
    Best wishes.

  6. #6
    Quote Originally Posted by Viktor View Post
    Hello Halit,

    Open file: ftp://includes>>controllers>>account_type.inc.php
    find line:

    PHP Code:
    Only registered members can view the code
    and change to:

    PHP Code:
    Only registered members can view the code
    Save and check again.
    Hello Viktor,

    I am sorry. but there is no listings_count sorting field at account_type.inc.php.
    It is only date and category as sorting fields, because the page is, all listings for a specific account.
    So this change is not applicable.

  7. #7
    Hello Bahram,

    Yes you are right I forgot to add 1 line more

    open file: ftp://includes>>controllers>>account_type.inc.php
    find line:
    Code:
    Only registered members can view the code.
    and replace to:

    Code:
    Only registered members can view the code.
    also add new phrase with key: listings_count
    Then check again.
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    Viktor,

    It causes more problem and generates mysql error.
    There is no need to change any code in account_type.inc.php.
    You are trying to change sorting of a user listings page like: https://classifieds.demoflynax.com/dealer/
    Last edited by Bahram Soltanirad; October 18, 2017 at 10:06 AM.

  9. #9
    Hello Bahram,

    Would you pleas send ftp access to my PM I will check and solve it asap.
    Viktor,
    Flynax technical department,
    Best wishes.

  10. #10
    Dear Viktor,

    I am checking codes with local and flynax demo version.
    I have not installed any website yet. I am bachelor of math/comp and my favorite name is 'Amir' and i already have many discussions with Mike and John about different subjects.
    Best wishes.

+ Reply to Thread