+ Reply to Thread
Results 1 to 4 of 4

Thread: What does the peanut gallery think about this one? #IDX-snippet-content#

  1. #1
    Join Date
    Sep 2009
    Location
    Denver, CO
    Posts
    46

    Default What does the peanut gallery think about this one? #IDX-snippet-content#

    Trying to do a search in said cities, $100-100M, including residential and condos only for the home page. Any ideas what is wrong with the code? It is showing income and land still. The city and price restrictions seem to be working okay though. I would appreciate any thoughts from the gallery

    LEC3

    http://dev162.rewtemplates.com/

    <?php

    // This is a sample IDX snippet. To use, copy this code and make a new snippet and paste the code into
    // it. Then add the snippet to your page by simply typing its name with pound signs (#) around it.
    //
    // Lines starting with // are comments and don't effect the code.
    //
    // Remove the // from the sections you wish to use and put the appropriate values in.


    // Snippet Settings
    $_REQUEST['snippet_title'] = 'Metro Denver Area Listings';
    $_REQUEST['snippet_price_table'] = true;

    // Search City
    $_REQUEST['search_city'][] = 'boulder';

    // Search City
    $_REQUEST['search_city'][] = 'arvada';

    // Search City
    $_REQUEST['search_city'][] = 'aurora';

    // Search City
    $_REQUEST['search_city'][] = 'brighton';

    // Search City
    $_REQUEST['search_city'][] = 'broomfield';

    // Search City
    $_REQUEST['search_city'][] = 'castle rock';

    // Search City
    $_REQUEST['search_city'][] = 'centennial';

    // Search City
    $_REQUEST['search_city'][] = 'conifer';

    // Search City
    $_REQUEST['search_city'][] = 'commerce city';

    // Search City
    $_REQUEST['search_city'][] = 'denver';

    // Search City
    $_REQUEST['search_city'][] = 'englewood';

    // Search City
    $_REQUEST['search_city'][] = 'erie';

    // Search City
    $_REQUEST['search_city'][] = 'evergreen';

    // Search City
    $_REQUEST['search_city'][] = 'firestone';

    // Search City
    $_REQUEST['search_city'][] = 'frederick';

    // Search City
    $_REQUEST['search_city'][] = 'golden';

    // Search City
    $_REQUEST['search_city'][] = 'greenwood village';

    // Search City
    $_REQUEST['search_city'][] = 'highlands ranch';

    // Search City
    $_REQUEST['search_city'][] = 'lafayette';

    // Search City
    $_REQUEST['search_city'][] = 'louisville';

    // Search City
    $_REQUEST['search_city'][] = 'lakewood';

    // Search City
    $_REQUEST['search_city'][] = 'littleton';

    // Search City
    $_REQUEST['search_city'][] = 'lone tree';

    // Search City
    $_REQUEST['search_city'][] = 'longmont';

    // Search City
    $_REQUEST['search_city'][] = 'morrison';

    // Search City
    $_REQUEST['search_city'][] = 'parker';

    // Search City
    $_REQUEST['search_city'][] = 'superior';

    // Search City
    $_REQUEST['search_city'][] = 'thornton';

    // Search City
    $_REQUEST['search_city'][] = 'westminster';

    // Search Subdivision
    //$_REQUEST['search_subdivision'][] = 'subdivision name';

    // Search Zip Code
    //$_REQUEST['search_zip'][] = '90210';

    // Search by MLS Number
    //$_REQUEST['search_mls'][] = '1337';

    // Property Type
    $_REQUEST['idx'] = 'residential';

    // Property Type
    $_REQUEST['idx'] = 'condominium';

    // Price Range
    $_REQUEST['minimum_price'] = 100;
    $_REQUEST['maximum_price'] = 100000000;

    // Bedrooms
    //$_REQUEST['minimum_bedrooms'] = 0;
    //$_REQUEST['maximum_bedrooms'] = 0;

    // Bathrooms
    //$_REQUEST['minimum_bathrooms'] = 0;
    //$_REQUEST['maximum_bathrooms'] = 0;

    // Square Feet
    //$_REQUEST['minimum_sqft'] = 0;
    //$_REQUEST['maximum_sqft'] = 0;

    // Year Built
    //$_REQUEST['minimum_year'] = 0;
    //$_REQUEST['maximum_year'] = 0;

    // Acres
    //$_REQUEST['minimum_acres'] = 0;
    //$_REQUEST['maximum_acres'] = 0;

    // Page Limit
    //$_REQUEST['page_limit'] = 5;

    // Only this agent's listings
    //$_REQUEST['agent_id'] = '';

    // Only this office's listings
    //$_REQUEST['office_id'] = '';

    // DO NOT EDIT BELOW THIS LINE
    $_REQUEST['snippet'] = true;
    include $_SERVER['DOCUMENT_ROOT'] . '/idx/common.inc.php';
    include_once $_SERVER['DOCUMENT_ROOT'] . '/idx/inc/php/pages/search.php';

    ?>

  2. #2
    Aaron is offline Real Estate Webmasters Staff Aaron's Most Recent Blog Entry: Email etiquette Aaron is on a distinguished road
    Join Date
    Jun 2005
    Location
    Nanaimo
    Posts
    23,433

    Default Re: What does the peanut gallery think about this one? #IDX-snippet-content#

    Change this:

    // Property Type
    $_REQUEST['idx'] = 'residential';

    // Property Type
    $_REQUEST['idx'] = 'condominium';

    to this:

    $_REQUEST['search_type'][] = "RES";
    $_REQUEST['search_type'][] = "COND";
    Aaron
    Real Estate Webmasters ( Programming )
    Client Resources | Tutorials | Suggested Enhancements

  3. #3
    Join Date
    Sep 2009
    Location
    Denver, CO
    Posts
    46

    Default Re: What does the peanut gallery think about this one? #IDX-snippet-content#

    Thanks Aaron, I'll give it a try!

  4. #4
    Join Date
    Sep 2009
    Location
    Denver, CO
    Posts
    46

    Default Re: What does the peanut gallery think about this one? #IDX-snippet-content#

    Thanks again Aaron it worked!

+ Reply to Thread

Similar Threads

  1. Properties Snippet on home page
    By MarcinSarasota in forum REW CMS 2 Questions
    Replies: 2
    Last Post: 09-21-2009, 02:00 PM
  2. Enhancing Access to content on LEC2
    By bnicolas in forum REW LEC
    Replies: 2
    Last Post: 08-06-2009, 12:08 AM
  3. Replies: 6
    Last Post: 04-20-2009, 11:02 PM
  4. Google: Changes In Ranking Strategies
    By gonner in forum Google
    Replies: 13
    Last Post: 10-05-2007, 04:11 AM
  5. Content & Copyright Thieves
    By Phoenix in forum Real Estate Chat
    Replies: 24
    Last Post: 06-01-2005, 06:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts