Real Estate Forums

REW IDX REW Customers only - ask questions, get support and report feed issues here.

Reply
 
Thread Tools Display Modes
Old 10-01-2009, 01:37 PM
Florence Florence is offline
Advancing Webmaster
 
Join Date: Sep 2009
Posts: 33
Florence is on a distinguished road
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';

?>
Reply With Quote
Old 10-01-2009, 02:47 PM
Aaron Aaron is offline
Real Estate Webmasters Staff
 
Join Date: Jun 2005
Location: Nanaimo
Posts: 16,649
Aaron is on a distinguished road
Send a message via MSN to Aaron
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.
__________________
Aaron
Programming

Real Estate Webmasters | Client Resources

Last edited by Aaron; 10-01-2009 at 02:49 PM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Properties Snippet on home page MarcinSarasota REW CMS 2 Questions 2 09-21-2009 02:00 PM
#rss-reader# and top nav modification via snippet on LEC2 bnicolas REW LEC 6 04-20-2009 11:02 PM
footer navigation snippet Adam Robinson Sarasota Work Orders 7 01-07-2009 10:55 AM


Real Estate Webmasters on Facebook

For our members

Main Sections

IDX Coverage Areas

You can find us at

Spiders Welcome

All times are GMT -7. The time now is 01:04 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.