Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Searching problems!!!

Quote Reply
Searching problems!!!
Hello,

I've two big problems:
1- when I do a search and search.cgi found one or more categories but no links the script displays
"founded 1 categories and links" instead of the correct "founded 1 categories and 0 links". Why? Can you help me?

2-if I put the tag <%term%> in search results template, when I use more than one keyword it displays "key1%20key2". How can I remove "%20"?

Thanks

Pippo

PS: excuse my bad english but I'm italian.
Quote Reply
Re: Searching problems!!! In reply to
1) There are some code hacks located in the LINKS Modification Forum that clears this up. You will also need to download the codes for the Enhanced Template.pm file located in the Resource Center.

2) Use <%query%>

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Searching problems!!! In reply to
Hi,

I have a problem with <%query%> Frown
I get the unknown tag: query
I have searched the forum high and low for a resolution.

I haven't changed anything in the sub below.

I can see from the code that it reads in the $term and encodes it to create <%query%>

Should I have query=> $query,
in this sub or do I need it in the globals.

I know that there are lots of messages in the forums on unknown tags .. it is either
not declared in the globals or in the relavant sub. I just can't find what I am missing out on.

Excellent script - and by far the best supported one as well. We will be moving to the commercial version soon. If the shareware version is this good, got knows what LinksSQL is like!!! Smile

Anyway . if anyone can throw some light on this I'd really appreciate it.


Maeve

sub site_html_search_results {
# --------------------------------------------------------
# This routine displays the search results.
#
my $term = &urlencode ($in{'query'});
&html_print_headers;
print &load_template ('search_results.html', {
term => $term,
link_results => $link_results,
category_results => $category_results,
next => $next,
cat_hits => $cat_hits,
link_hits => $link_hits,
%in,
%globals
});
}
Quote Reply
Re: Searching problems!!! In reply to
Hi,

I have a problem with <%query%> Frown
I get the unknown tag: query
I have searched the forum high and low for a resolution.

I haven't changed anything in the sub below.

I can see from the code that it reads in the $term and encodes it to create <%query%>

Should I have query=> $query,
in this sub or do I need it in the globals.

I know that there are lots of messages in the forums on unknown tags .. it is either
not declared in the globals or in the relavant sub. I just can't find what I am missing out on.

Excellent script - and by far the best supported one as well. We will be moving to the commercial version soon. If the shareware version is this good, got knows what LinksSQL is like!!! Smile

Anyway . if anyone can throw some light on this I'd really appreciate it.


Maeve

sub site_html_search_results {
# --------------------------------------------------------
# This routine displays the search results.
#
my $term = &urlencode ($in{'query'});
&html_print_headers;
print &load_template ('search_results.html', {
term => $term,
link_results => $link_results,
category_results => $category_results,
next => $next,
cat_hits => $cat_hits,
link_hits => $link_hits,
%in,
%globals
});
}
Quote Reply
Re: Searching problems!!! In reply to
 
Quote:
Should I have query=> $query,
in this sub or do I need it in the globals.

Nope...You do not need to define this tag in the %globals nor the sub site_html_search_results routine.

Are you sure that you did not make any changes to the search.cgi script? Like changing "query" to something else?

Regards,



------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums