![]() |
FAQ Search
This is a very simple modification, which will enforce the search length when searching the FAQ. Not sure whether it was 'forgotten' about, or simply not added intentionally.
I don't expect huge accolades here, it's a quick and easy fix. No templates, a simple file mod. If someone knows of a better way to do this, by all means I'm up for it! In faq.php, find Code:
if ($vbulletin->GPC['q'] == '') Code:
$slen=$vbulletin->options['minsearchlength']; This takes advantage of the globally set search length (for search.php). Again, nothing major by any means, it's quick and simple. I just thought I'd pass it along for those that were interested in using it. I ran across the need for this myself because on random forums, I would get an SQL error when trying a faq search with just one letter (a,b,c,etc), which shouldn't be allowed anyways. Hopefully someone finds this useful, and, again, if you can come up with a better way to do it, by all means, post it in here for all of us to benefit from! |
I dont think searching the FAQ's will be that server intensive to warrant a minimum search length, but thanks for sharing either way.
|
Like I said, I had (sort of) an ulterior motive for creating this.
I've noticed a bug in at least a few forums (still trying to pinpoint what causes it) where a search of a single character in the FAQ causes a mysql error. Figured this would be at least a quick hack to get it fixed. I'm sure it's not that "intense" at all, but still, a quick and dirty way to force individuals to use the min. search length. |
All times are GMT. The time now is 08:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|