Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Problem with search results

Quote Reply
Problem with search results
Hi,

Hopefully somebody can help me with this problem. When I do a search on my site it will report that the search has returned "x" number of links but the links are not listed on the page. They're missing. I've checked out the html for the search results page but I can't make heads or tails of it. Below is the appropriate section from seach_results.html where the links should be listed. Does it read ok? Is anythink missing? If it looks ok whats my next step to fixing this problem.

Thanks, Michael

If you want to see an example of the search.cgi ouutput try this link

http://www.swaylocks.com/links/search.cgi?query=Rusty&mh=25&type=keyword&bool=and

<p>Your search returned <strong><%cat_hits%></strong> categories and <strong><%link_hits%></strong>
Links.</p>
<%if next%>
<p>Pages: <%next%></p>
<%endif%> <%if category_results%>
<h2>Categories:</h2>
<ul>
<%category_results%>
</ul>
<%endif%> <%if link_results%>
<h2>Links</h2>
<%link_results%> <%endif%> <%if next%>
<p>Pages: <%next%></p>
<%endif%>
Quote Reply
Re: Problem with search results In reply to
There is a FAQ in the Resource Center that addresses problems with tags in your template files.

The problem is that you have tags on the same line.

You need to have the following:

Code:
<p>Your search returned <strong>
<%cat_hits%></strong> categories and <strong><%link_hits%></strong>
Links.</p>
<%if next%>
<p>Pages: <%next%></p>
<%endif%>
<%if category_results%>
<h2>Categories:</h2>
<ul>
<%category_results%>
</ul>
<%endif%>

<%if link_results%>
<h2>Links</h2>
<%link_results%>
<%endif%>
<%if next%>
<p>Pages: <%next%></p>
<%endif%>

-OR- Download the Enhanced Template.pm codes in the Resource Center, which allows you to have tags on the same line.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Problem with search results In reply to
Elliot,

Thanks so much. That did it!

Mike
Quote Reply
Re: Problem with search results In reply to
You're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Problem with search results In reply to
Elliot,
I just visited your site and I was wondering if the whole thing is your creation. I'm very impressed and was just curious.
Quote Reply
Re: Problem with search results In reply to
As I have posted about five times in combination of this Forum and the Modification Forum over the past two months:

1) Eighty percent of the site (vlib.anthrotech.com) is LINKS generated with 30 Official Mods, 10 Code Hacks, and about 5 Custom Hacks (never to be released).

2) Ten percent of the site uses other cgi/perl scripts found in popular cgi/perl directories.

3) Five percent of the site uses custom scripts, which I wrote, and I will not release for general consumption.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Problem with search results In reply to
Perhaps you should have gossame post it as a FAQ. (gif:winky guy which I have no clue how to do).

Mike
Quote Reply
Re: Problem with search results In reply to
That is a bit pretenious and self-serving.

No thanks.

Wink

Oh yea...about making the Frown Smile Wink icons...click on the faq link at the top of Forum and Topic pages...very insightful information about using the forum is contained in it!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.




[This message has been edited by AnthroRules (edited May 08, 2000).]