Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [flybuzz] a short message if search string is too short.

Quote Reply
Re: [flybuzz] a short message if search string is too short. In reply to
Hi. My guess would be that you need a plugin to do this.

An easier way, would be to hack SearchLogger, so that it checks;

Code:
if (length($IN->param('query') < 3) {
print $IN->header();
print Links::SiteHTML::display('search', { error => "Sorry, your search query was too short..." } );
exit;
}

I guess it would go around line 100, around;

Code:
$query =~ s/^\s*|\s*$//g;
$query = lc $query;
$query = substr ($query, 0, 24);

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread a short message if search string is too short. flybuzz 1929 Jul 30, 2004, 11:14 PM
Thread Re: [flybuzz] a short message if search string is too short.
Andy 1874 Jul 31, 2004, 12:37 AM
Thread Re: [Andy] a short message if search string is too short.
flybuzz 1870 Jul 31, 2004, 9:05 AM
Post Re: [flybuzz] a short message if search string is too short.
afinlr 1868 Jul 31, 2004, 10:00 AM