Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
FAQ Search - Require Minimum Search Length Details »
FAQ Search - Require Minimum Search Length
Mod Version: 1.00, by wolfstream (Banned) wolfstream is offline
Developer Last Online: Sep 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.0 Rating: (0 vote - 0 average) Installs: 2
Released: 06 May 2008 Last Update: Never Downloads: 1
Not Supported Code Changes Re-usable Code Translations  

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

After, add

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Minimum posts to do a search Dean C vBulletin 2.x Full Releases 13 09 Apr 2003 12:38

Comments
  #2  
Old 07 May 2008, 06:17
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
I dont think searching the FAQ's will be that server intensive to warrant a minimum search length, but thanks for sharing either way.
Reply With Quote
  #3  
Old 07 May 2008, 06:53
wolfstream wolfstream is offline
 
Join Date: Jan 2003
Real name: Tom Whiting
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:01.

Layout Options | Width: Wide Color: