+ Reply to Thread
Results 1 to 2 of 2

Thread: Help With New Construction Snippet

  1. #1
    Join Date
    Sep 2009
    Posts
    64

    Default Help With New Construction Snippet

    Hi there - Just trying to create a new construction snippet so I can have a page that pulls only new construction. Can you check out my code below? Note...I do not want to use minimum/maximum year because I don't want to have to edit each year.

    Please advise.
    - Florence

    <?php

    /* Snippet Settings */
    $_REQUEST['snippet_title'] = 'Search Results';
    $_REQUEST['snippet_price_table'] = true;

    /* Search City */
    $_REQUEST['search_city'][] = 'New Bern';
    //$_REQUEST['search_city'][] = 'Oriental';

    /* Search Area */
    //$_REQUEST['search_area'][] = 'area';

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

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

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

    /* Search by Type */
    //$_REQUEST['search_type'][] = 'type';

    /* Search by New Construction */
    $_REQUEST['search_new_construction'] = 'Y';
    Or
    $_REQUEST['search_new_construction'] = 'N';

    /* Property Type */
    $_REQUEST['idx'] = 'residential'; // Residential
    //$_REQUEST['idx'] = 'land-and-lots'; // Land & Lots
    //$_REQUEST['idx'] = 'commercial-sales'; // Commercial Sales
    //$_REQUEST['idx'] = 'commercial-lease'; // Commercial Lease
    //$_REQUEST['idx'] = 'boat-slips'; // Boat Slips
    //$_REQUEST['idx'] = 'rentals'; // Rentals

    /* Price Range */
    $_REQUEST['minimum_price'] = 0;
    $_REQUEST['maximum_price'] = 5000000;

    /* 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;

    /* Search Remarks */
    //$_REQUEST['search_remarks'] = 'remarks';

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

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

    /* Page Limit */
    $_REQUEST['page_limit'] = 12;

    /** 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
    24,278

    Default Re: Help With New Construction Snippet

    Hello,

    I do not see a field that indicates "New Construction" in the NRRAR data feed. So it seems this will not be possible. The year built field will be your best bet. Could even do something like.

    $_REQUEST['minimum_year'] = date("Y");

    So date("Y"); will always be the current year. Might work for you - except in the beginning of the year.
    Last edited by Aaron; 10-01-2009 at 01:49 PM.
    Aaron
    Real Estate Webmasters ( Programming )
    Client Resources | Tutorials | Suggested Enhancements

+ 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, 01:00 PM
  2. Replies: 6
    Last Post: 04-20-2009, 10:02 PM
  3. footer navigation snippet
    By Adam Robinson Sarasota in forum Work Orders
    Replies: 7
    Last Post: 01-07-2009, 09:55 AM

Posting Permissions

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