Thread: limit results?
View Single Post
Old 11-25-2003, 02:50 PM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Quote:
Originally posted by Charter
... When set to X, there will be at most X results from each of Y sites displayed, and if limit to a certain site is clicked, X results for that site will be displayed.
Hi. Actually it works like above.

However, if you want to have at most X results from each of Y sites displayed on a 'main' search, and then want all results for a given site displayed on a 'limit to' search, just do the following.

In search_function.php find:
PHP Code:
if(NUMBER_OF_RESULTS_PER_SITE != -1) { 
and replace with:
PHP Code:
if((!$refine) && (NUMBER_OF_RESULTS_PER_SITE != -1)) { 
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote