Display ALL active listings under category list

Discussion in 'Technical Support' started by marketingsolutions, Mar 9, 2009.

Thread Status:
Not open for further replies.
  1. seymourjames All Hands On Deck

    If you want the listings to appear under main categories and one level of subcategory but not under the top browselistings page itself then you do this instead in category.php . You don't need to touch other files at all.

    replace $showlistings='N'; with

    if(isset($_GET['cat']) || isset($_GET['id']))
    {
    $showlistings='Y';
    }
    else
    {
    $showlistings='N';
    }



    and then the code Eric gave for category.php

    $options['section']=$sec;

    Change to:

    if(isset($sec)) {
    $options['section']=$sec;
    }
  2. Fatih67 Customer

    ı tried this.

    but not worked.

    all listings are shown every category.. same problem..
  3. Lhotch curmudgeon

    Did you expect it to? Your sig says you are using 4.0.3 yet this thread is in the 4.1.X support forum. There are seperate support forums for 4.0 and 4.1 for a reason and that reason is that there are a lot of code difference between the 2 major releases.
  4. damiun Customer

    this isnt working for me either, it shows this error:

    And "$options['section']=$sec;" isnt in the category file anymore
  5. seymourjames All Hands On Deck

    Go here : this is where I tied it together and updated with the release of 4.1.6. You do not use $sec in the template file. It is now $categoryid for version 4.1.6 .

    http://www.68classifieds.com/forums/templatecodes/8409-enhancing-browse-pages-listings.html

    If you are running version 4.1.X but below 4.1.6 then it will work if you follow the instructions. And "$options['section']=$sec;" is in the code at line 95.

    When you say it does not work it helps often to say what you actually did.
Thread Status:
Not open for further replies.

Share This Page