Previous Thread
Next Thread
Print Thread
Hop To
Joined: Dec 2003
Posts: 117
K
Member
Member
K Offline
Joined: Dec 2003
Posts: 117
My users are currently complaining about the serach function being available only after 60 seconds from the previous search. I've been thinking...

What if we could split the 24h function limits from the actual search? While the search can be a real resource hog, the 24h page is actually fairly fast. Currently I've set limits to the search to 600 results and up to 'one year' (easily bypassed by clearing the timespan boxes by the way...). This is fairly good for the 'search' but since it's an active forum it already hitting the limit of 600 doing the 24h page.

It would be nice to impose no limits (or different limits) on that page. Also, using the browser's 'back' button will result in the 60 second timespan becoming active...

Room for thought...

Joined: Jun 2006
Posts: 956
Old Hand
Old Hand
Joined: Jun 2006
Posts: 956
you can set the time between to searches in your 6.5.x config.
Control Panel
Feature Settings
Search Engine
Minimum time between searches:
Time in seconds.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Joined: Dec 2003
Posts: 117
K
Member
Member
K Offline
Joined: Dec 2003
Posts: 117
I know, but this also affects the 24h post page... which is what I meant.

Joined: Jun 2006
Posts: 182
A
member
member
A Offline
Joined: Jun 2006
Posts: 182
in dosearch.php

search for:
Code
  if (!isset($config['timesearch'])) {
	$config['timesearch'] = 60;
}


add underneath:
Code
if ($Forum == "All_Forums" &&
	$Words == "" &&
	$daterange == 1 &&
	$newertype == "d" &&
	$newerval == 1 &&
	$Limit == 25 &&
	$topic == 1 &&
	$fromsearch == 1) {
	    $config['timesearch'] = 0;
}  



You can do the same based on other search criteria obviously.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (2 invisible), 721 guests, and 156 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)