Previous Thread
Next Thread
Print Thread
Hop To
Joined: Apr 2006
Posts: 44
T
newbie
newbie
T Offline
Joined: Apr 2006
Posts: 44
Is there any way to change the default date range in the search function, so that the "Newer than" option is more than just 1 week?

We run technical support forums, and with this default a lot of people don't find what they're looking for (as they don't see the "1 week" part) and then end up taking more of our support staff's time asking a question they might be able to find an answer for easily if they had done a more extended search.

We'd sure love to be able to extend this default to something longer, if there's an easy way to do so.

Thanks!

Tracy

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
You can do that with a slight change to the search.tmpl template. Around line 83 is where you'll see the HTML that designates the default of 1 week. This can easily be changed just by changing the HTML to what you want, like 4 weeks, or 2 months, etc.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 206 guests, and 158 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)