Results 1 to 2 of 2

Thread: Snippet Code

  1. #1
    Join Date
    Dec 2005
    Location
    Greenville SC
    Posts
    212

    Default Snippet Code

    Rew,

    How do I add mls areas to any sample snippet? The zip code is too broad, I need to define certain mls areas. Thanks!

    Example:

    <?php
    $_REQUEST['snippet_city'] = "";
    $_REQUEST['idx'] = "all";
    //$_REQUEST['snippet_subdivision'] = "";
    //$_REQUEST['search_subtype'] = "";
    //$_REQUEST['minimum_bedrooms'] = "";
    //$_REQUEST['minimum_bathrooms'] = "";
    //$_REQUEST['minimum_price'] = "";
    //$_REQUEST['office_id'] = "";
    //$_REQUEST['minimum_sqft'] = "";
    //$_REQUEST['minimum_year'] = "2007";
    //$_REQUEST['minimum_acres'] = "";
    //$_REQUEST['search_zip'] = "";
    //$_REQUEST['search_zip'] = "";

    include_once $_SERVER['DOCUMENT_ROOT'].'/idx/inc/php/pages/snippet.php';
    ?>

  2. #2
    Join Date
    Jun 2008
    Posts
    1,006

    Default Re: Snippet Code

    You should be able to do something like:

    PHP Code:
    $_REQUEST['areas'][] = 41;
    $_REQUEST['areas'][] = 54
    in your snippet.
    Andy
    Technical Support
    Real Estate Webmasters | Ordering New Work

Similar Threads

  1. Snippet that searches by Zip Code
    By SCP in forum REW CMS 2 Questions
    Replies: 2
    Last Post: 03-17-2009, 06:11 AM
  2. Zip Code in snippet?
    By Marc Zuazua in forum REW CMS 2 Questions
    Replies: 4
    Last Post: 11-05-2008, 03:41 PM
  3. Tweek Snippet Code For IDX
    By DMG in forum Coding
    Replies: 1
    Last Post: 11-04-2008, 03:57 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