Real Estate Forums

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

Reply
 
Thread Tools Display Modes
Old 09-30-2009, 09:03 AM
Florence Florence is offline
Advancing Webmaster
 
Join Date: Sep 2009
Posts: 33
Florence is on a distinguished road
Default Need Help Creating Area Snippet

Hello - I am trying to create an Area snippet for our site:
http://dev149.rewtemplates.com/

It needs to pull all listings in Area 11-Brices Creek Area of New Bern.

Here's my code below. Can you please advise? I'll also need to do this for other areas of New Bern but if you can help with this one first - that would be great.

thanks - Florence

<?php

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

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

/* Area */
$_REQUEST['search_area'][] = '11';

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

/* 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 09-30-2009, 10:49 AM
Aaron Aaron is offline
Real Estate Webmasters Staff
 
Join Date: Jun 2005
Location: Nanaimo
Posts: 16,771
Aaron is on a distinguished road
Send a message via MSN to Aaron
Default Re: Need Help Creating Area Snippet

The data doesn't seem to have the numbers in the Area Field.

So use the names like this:

$_REQUEST['search_area'][] = 'BRICES CREEK AREA';

I've updated the snippet on this page: http://dev149.rewtemplates.com/bricescreek.php

( You can also just put "BRICES CREEK" as the area name and it will do a wildcard search for BRICES CREEK. )

Thank you,
__________________
Aaron
Programming

Real Estate Webmasters | Client Resources
Reply With Quote
Old 10-01-2009, 10:30 AM
Florence Florence is offline
Advancing Webmaster
 
Join Date: Sep 2009
Posts: 33
Florence is on a distinguished road
Default Re: Need Help Creating Area Snippet

Hi Aaron - Thanks so much for helping me with the Brices Creek Area snippet. It works now. Yeah!

Another quick question....in our MLS, "Waterfront" is something you can search for under "Coded Features". When creating a snippet I tried first putting it as an "Area" thinking that since you said the system can do a wild card search that it might come up. I also tried it under "Property Type" because I was thinking since you can search on "boat slip" perhaps you could also search on "Waterfront". Neither way worked.

How can I search for things like Waterfront Properties or Golf Course Lot/Properties etc...

Here's my code for Waterfront where I tried it as an area. Please advise.

<?php

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

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

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

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

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

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

/* 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'] = '';

/* 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, 12:16 PM
Aaron Aaron is offline
Real Estate Webmasters Staff
 
Join Date: Jun 2005
Location: Nanaimo
Posts: 16,771
Aaron is on a distinguished road
Send a message via MSN to Aaron
Default Re: Need Help Creating Area Snippet

Hello,

You'll likely need a small work order for us to add the code to allow you to search in the coded features ... shouldn't take more than 15-30 mins programming time to add that in and create an example for you.

Thank you,
__________________
Aaron
Programming

Real Estate Webmasters | Client Resources
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
Creating A Snippet For A Search Field I Don't Have Mark Z REW IDX 3 03-08-2009 06:54 PM
Creating snippet to pull MLS # TheRealOBX REW IDX 1 12-20-2008 11:06 PM


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 05:13 AM.


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