Real Estate Forums

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

Reply
 
Thread Tools Display Modes
Old 10-11-2007, 08:44 AM
jessiesc jessiesc is offline
Advanced Webmaster
 
Join Date: May 2006
Posts: 1,976
jessiesc is on a distinguished road
Default Snippets, snippets who's got the snippets :)

I'm looking for a snippet to display listings within a given price range.

I thought I saw a post somewhere for this already.

Does this exists? If so, how can i get it.

In addition, is there a list somewhere of available snippets?

Thanks in advance.
Reply With Quote
Old 10-11-2007, 09:32 AM
kyle422's Avatar
kyle422 kyle422 is online now
Real Estate Webmaster
 
Join Date: Oct 2004
Location: Florida
Posts: 2,109
kyle422 is on a distinguished road
Default Re: Snippets, snippets who's got the snippets :)

Jessie,
This is what mine looks like:
Code:
<?

$_REQUEST['snippet_include'] = true;
$_REQUEST['price_min'] = "400000";
$_REQUEST['price_max'] = "600000";

$_REQUEST['city'][] = "330";
$_REQUEST['city'][] = "331";

include $_SERVER['DOCUMENT_ROOT'] . "/idx/search.php";
?>
Reply With Quote
Old 10-11-2007, 09:54 AM
jessiesc jessiesc is offline
Advanced Webmaster
 
Join Date: May 2006
Posts: 1,976
jessiesc is on a distinguished road
Default Re: Snippets, snippets who's got the snippets :)

Thanks Kyle, appreciate it

How do you know what your city code is?

Not working though

Last edited by jessiesc : 10-11-2007 at 10:01 AM.
Reply With Quote
Old 10-11-2007, 10:50 AM
Aaron Aaron is offline
Real Estate Webmasters Staff
 
Join Date: Jun 2005
Location: Nanaimo
Posts: 6,723
Aaron is on a distinguished road
Send a message via MSN to Aaron
Default Re: Snippets, snippets who's got the snippets :)

Hi Jessie,

IDX snippets are different depending on which feed or IDX code that your website is using. I'll have a programmer set up a sample snippet for you to use to make more.

Thank you,
__________________
Aaron
Programming
Real Estate Webmasters
Reply With Quote
Old 10-11-2007, 12:03 PM
jessiesc jessiesc is offline
Advanced Webmaster
 
Join Date: May 2006
Posts: 1,976
jessiesc is on a distinguished road
Default Re: Snippets, snippets who's got the snippets :)

Aaron,

You continue to be THE MAN

Thanks
Reply With Quote
Old 10-11-2007, 01:42 PM
kyle422's Avatar
kyle422 kyle422 is online now
Real Estate Webmaster
 
Join Date: Oct 2004
Location: Florida
Posts: 2,109
kyle422 is on a distinguished road
Default Re: Snippets, snippets who's got the snippets :)

Sorry for interfering Aaron. I thought it might be worth a try.
Reply With Quote
Old 10-11-2007, 02:14 PM
Aaron Aaron is offline
Real Estate Webmasters Staff
 
Join Date: Jun 2005
Location: Nanaimo
Posts: 6,723
Aaron is on a distinguished road
Send a message via MSN to Aaron
Default Re: Snippets, snippets who's got the snippets :)

No Problem - I can always use the help

Jessie: Steven will create an example snippet for you.
__________________
Aaron
Programming
Real Estate Webmasters
Reply With Quote
Old 10-11-2007, 02:41 PM
REW Steven's Avatar
REW Steven REW Steven is offline
Real Estate Webmasters Staff
 
Join Date: Aug 2006
Location: Nanaimo, BC
Posts: 591
REW Steven is on a distinguished road
Default Re: Snippets, snippets who's got the snippets :)

Hello Jessie

You are well on your way to making snippets.

The first part of this snippet is good.

Code:
<?php 
$_REQUEST['snippet_include'] = true;

$_REQUEST['price_min'] = "400000";
$_REQUEST['price_max'] = "600000";
To add Areas use

Code:
$_REQUEST['city'][] = "Alford";
$_REQUEST['city'][] = "Altha";
And at the end of the snippet use

Code:
include $_SERVER['DOCUMENT_ROOT'] . "/idx/search.php";
?>
If you would like to only search for some of the property types

Code:
$_REQUEST['proptype'][] = "DSF";
$_REQUEST['proptype'][] = "MOB";
Your property type codes are

ASF = ASF/Attached Individual Unit
CND = Condominium
DSF = Detached Single Family
FRM = Farm
MOB = Mobile/Manufactured
MUL = Dup/Tri/Quad Multi Unit

To limit by bedrooms or bathrooms
Code:
$_REQUEST['bedrooms'] = "2";
$_REQUEST['bathrooms'] = "2";
Let me know if you need any more help.
__________________
Systems and Support Manager
Email FAQ
Site Live Form
Ordering new work
Reply With Quote
Old 10-11-2007, 09:37 PM
jessiesc jessiesc is offline
Advanced Webmaster
 
Join Date: May 2006
Posts: 1,976
jessiesc is on a distinguished road
Default Re: Snippets, snippets who's got the snippets :)

Thanks Steven,

Works like a charm. You now THE NEW MAN!!!
Reply With Quote
Old 10-11-2007, 09:43 PM
webmaster's Avatar
webmaster webmaster is online now
Administrator
 
Join Date: Apr 2004
Posts: 13,472
webmaster will become famous soon enough
Default Re: Snippets, snippets who's got the snippets :)

Just a quick note Jessie, I recently (Within the last few months) added a forum to the customer support section for "REW IDX" - this would have been more appropriate in that forum, so I have moved it.

Not complaining, just pointing it out for the future
__________________
Webmasters who spend their energies upholding the spirit of the basic principles [Of Google] will provide a much better user experience and subsequently enjoy better ranking than those who spend their time looking for loopholes they can exploit. Google.com
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

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

For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 04:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.