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

Thread: Show all "My Listings" - No matter the type

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    17

    Show all "My Listings" - No matter the type

    Hi guys,

    I currently have the following ad types, Autos, Auto Parts, Accessories, Want Ads.

    I would like to give users a page where they can see all of their own ads, no matter what type they are. Currently the system gives me the ability to see "My Auto Listings, My Auto Parts, My Accessories, and My Want Ads"... I don't want to do this , I simply want a single page where the user can see "My Listings" and it will show them all ads.

    How can I do this?

    Screen Shot 2013-03-21 at 1.33.35 PM.jpg

  2. #2
    Hello Mike,

    You should create new page in Admin Panel >> Pages.

    Key - my_listings (if my_listings already exist you may write any other key but this key you will use in php code below).
    *Show in Menu - Account Menu
    *Page type - system
    *Page controller - my_listings

    And click Add.

    Then go to ftp://includes>>controllers>>my_listings.inc.php

    find code:

    PHP Code:
    Only registered members can view the code
    and replace to:
    PHP Code:
    Only registered members can view the code
    save and close. Then go to ftp://includes>>classes>>rlListings.class.php
    find method: getMyListings

    and find line:

    PHP Code:
    Only registered members can view the code
    and replace to:
    PHP Code:
    Only registered members can view the code
    save and check your new page

    Notice: Please create backups for files that you will change.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Hi Viktor, thanks for your tutor I have successfully create a page that show all listings from all types. However, the listing in "my_listings" page is missing some tool. Please look at screenshot of "my_listings" page:

    mylistings.jpg
    Its only have "Edit a Listing" option

    While the regular listing page has all option as in:
    regulartype.jpg

    Would you please guide me how to add the missing option to "my_listings" page.
    Thank you

  4. #4
    Hello Wei Hong,

    I have fixed error on your site. It was syntax error instead 'listing_type' in file ftp://templates>>your_template>>tpl>>blocks>>my_listing. tpl was written 'listings_type' only 1 symbol
    Viktor,
    Flynax technical department,
    Best wishes.

  5. #5
    Quote Originally Posted by Viktor View Post
    Hello Wei Hong,

    I have fixed error on your site. It was syntax error instead 'listing_type' in file ftp://templates>>your_template>>tpl>>blocks>>my_listing. tpl was written 'listings_type' only 1 symbol
    Fantastic work as usual Viktor, I checked and it works like a charm.
    Thank you for your hardwork

  6. #6
    Junior Member
    Join Date
    Nov 2014
    Posts
    10
    Hello Viktor,

    What is the proper way to make these edits in flynax 4.5?

    In flynax 4.5 instead of
    $sql .= "AND `T4`.`Type` = '{$type}' GROUP BY `T1`.`ID` ";

    there is
    $sql .= "AND `T4`.`Type` = '{$type}' ";

    I've tried however to replace it with the code you mentioned, but it does not work. All listings are not displayed on that single page.

  7. #7
    Hello nonibanacu,

    Do you want to show all listings in 1 My listings page?
    I think it is not good way if you have many listings with different listing types. Better to show each type listings in their page.
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    Junior Member
    Join Date
    Nov 2014
    Posts
    10
    Yes, i want to show all listings in one "My listings" page.

    Most of the users have at most a couple of listings.
    Dealers may have more, but not exceeding 20-30. So it's acceptable.

    ------
    Also, i've noticed that there is no way to see other members listings, only other dealers listings. Is this correct?

  9. #9
    Me, too. I want to have a page for all listings.

  10. #10
    Hello All,

    I will try to show instruction.

    at first deactivate all my listings pages and stay only 1. Then go to ftp://includes>>classes>>rlListings.class.php
    find method: getMyListings

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

+ Reply to Thread