Could anyone provide with a 'replace this code' with 'this code' type answer for adding a (if no results are found search this site) search results mod for links sql search.cgi
Apr 9, 2001, 7:32 AM
Enthusiast (685 posts)
Apr 9, 2001, 7:32 AM
Post #2 of 2
Views: 1959
i'm looking for this as well. it worked for links2 and i contacted alex about it but could not get it to work.
here is the code for links2, maybe a prgrammer can modify it to work for links sql. it's in seach.cgi:
# Word is too common, don't try and sort it, can cause problems.
if ($numhits == 0) {
$redir = $in{'query'};
$redir =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%x",ord($1))/eg;
print "Location: http://www.mydomain.com/phod.php?search=$redir\n\n";
}
here is the code for links2, maybe a prgrammer can modify it to work for links sql. it's in seach.cgi:
# Word is too common, don't try and sort it, can cause problems.
if ($numhits == 0) {
$redir = $in{'query'};
$redir =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%x",ord($1))/eg;
print "Location: http://www.mydomain.com/phod.php?search=$redir\n\n";
}