Hi,
You need to use the $query tag, if actually using it in search_results.html.
Try this global:
my @words = split(/\s+/,$_[0]);
my @links;
foreach (@words){
s/^\s*//sg;
s/[\.,]$//sg;
next if length($_)<4;
push(@links,qq|<a href="$CFG->{db_cgi_url}/search.cgi?query=$_">$_</a>|);
}
return join(" - ",@links);
}
..and call with:
<%global_name($query)%>
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!
You need to use the $query tag, if actually using it in search_results.html.
Try this global:
Code:
sub { my @words = split(/\s+/,$_[0]);
my @links;
foreach (@words){
s/^\s*//sg;
s/[\.,]$//sg;
next if length($_)<4;
push(@links,qq|<a href="$CFG->{db_cgi_url}/search.cgi?query=$_">$_</a>|);
}
return join(" - ",@links);
}
..and call with:
<%global_name($query)%>
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!