PDA

View Full Version : $refine $refine_url $site


jedi_diah
11-18-2003, 12:59 PM
There seems to be a lack of information on the descriptions of $refine, $refine_url, and $site. I have found that if I wish to limit the search to only one spidered site then I can use the $site variable. The $site variable corresponds to the site_id field in the site table. By putting two hidden fields in the search form called site and refine, then setting site equal to the site_id number and refine equal to "1", I can search a specific site.

<input type="hidden" name="site" value="5">
<input type="hidden" name="refine" value="1">

If anyone has further information on any of these comments and questions please respond to this thread.:D

Charter
11-18-2003, 02:42 PM
Hi. The $site variable indicates what site, the $refine variable indicates whether to limit results to a certain site, and if refining results, the $refine_url variable is set to refine=1&site=$site&path=$path and used in the links for pagination.