Add query to searchresults.php file code???

Discussion in 'Templates, HTML, CSS, and Design Help' started by MrGForce, Feb 26, 2011.

  1. MrGForce Customer

    Would anyone know how to add a search query to the searchresults.php file WITHOUT having to add that in the address bar url ... ie: searchresults.php?owner=###

    Don't know if it would be added to the seachresults.php file or the showlistings.tpl file or can't it be added directly to any of the files.

    Any help would be greatly appreciated.

    Thanks.

    Rich


    .
  2. John Snyder Staff

    I'm not sure if this is what your looking for, but you can always override the $_GET array at the top some place in searchresults.php to preset a specific parameter.

    PHP:
    $_GET['owner'] = 12// force the owner to owner 12 for every search.
  3. MrGForce Customer

    Hey John;

    I've tried adding that code to multiple places in the searchresults.php file and it doesn't effect the results. Still get ALL the listings. The file mentions ... $settings=$Core->getSearchSettings();

    I've even put the code right after this statement.

    Don't know where this occurs and would it be where I add the other code. I've search all the site files for this text and can't find it other than the mention of it in the searchresults.php page.

    .

Share This Page