Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Search Capability has never worked

Quote Reply
Search Capability has never worked
I have been trying to get this problem solved for a while, but the search script has never worked for me with Links installed on a Linux/Apache system. All other features seem to work, but this one never has. Even when calling search.cgi directly with no parameters (which should call up to "more options" page should it not), I get nothing back but a display of the text "Unknown Tag : category_name" - no headers, no page, no nothing.

I am using the templates and all of the other pages and capabilities seem to work fine, but this one does not.

Does anybody have a clue as to what is going on or where I should look???

You can see this problem yourself at the page at: http://www.outdoorwire.com/links/4x4/http://www.outdoorwire.com/links/
Quote Reply
Re: Search Capability has never worked In reply to
Yea...you are using the wrong category tag in your search_results.html template file...

You should be using the following:

Code:
<%category_results%>

NOT

Code:
<%category_name%>

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Search Capability has never worked In reply to
I trust that this would be instance the parameter that is called at the core of the file - where the (links would be displayed)

I believe that I am using <%category_results%> tag there. Perhaps there is another possibility?

For your reference here is the entire HTML from that page as it has been implemented on the server in question -


<html>
<title><%site_title%>: <%category_name%></title>

<%if meta_name%>
<meta name="description" content="<%meta_name%>">
<%endif%>
<%if meta_keywords%>
<meta name="keywords" content="<%meta_keywords%>">
<%endif%>

<link rel=stylesheet href="<%build_root_url%>/links.css" type="text/css" title="<%site_title%> style sheet">
<link rel="stylesheet" href="/ornmain.css">
<!--#include virtual="/common/target.stm" -->
</head>

<!-- MANDATORY HEADER STARTS -->
<!--#include virtual="/new-templates/trailcraft.header"-->
<!-- MANDATORY HEADER ENDS -->
<body class="body">
<span class="pagetitle"><%site_title%>: Search Results</span>
<table border="0" cellspacing="3" cellpadding="4" width="100%" align="center">
<tr align="center">
<td colspan="2">
<!--#include virtual="/common/bannercode.stm" --></td>
</tr>
<tr>
<td class="titlebar" width="*">Search Results</td>
<td class="titlebar" width="175">Short Cuts</td>
</tr>
<tr align="left">
<td valign="top"><small class="jumpmenu">| <a class="menulink" href="<%build_root_url%>">Home</a>
| <a class="menulink" href="<%db_cgi_url%>/add.cgi">Add a Site</a> | <a class="menulink" href="<%build_root_url%>/New">What's
New</a> | <a class="menulink" href="<%build_root_url%>/Cool">What's Cool</a>
| <a class="menulink" href="<%build_root_url%>/Ratings">Top Rated</a> |
<a class="menulink" href="<%db_cgi_url%>/jump.cgi?ID=random">Random Link</a>
| <a class="menulink" href="<%db_cgi_url%>/search.cgi">Search</a> | </small></td>

<td valign="top" width="175"> <font face="arial,helv,helvetica,sans" size="1">
<form action="/nothing" method="POST">
<select name="shortcut" size="1" class="shortcuttext" width="180">
<option value="http://www.outdoorwire.com">Main Page</option>
<option value="/siteinfo/siteindex.htm">Main Site Index</option>
<option value="/siteinfo/articleindex/">Main Article Index</option>
<option value="/links/" selected>Links</option>
</select>
<input type="button" value="Go" name="B1" class="shortcuttext"
onClick="top.location.href=this.form.shortcut.options[this.form.shortcut.selectedIndex].value">
</form>
</font> </td>
</tr>
<!-- Subcategories-->
<%if category%>
<tr>
<td width="100%" valign="top" class="titlebar" align="left" colspan="2"> Search
Results </td>
</tr>
<tr>
<td valign="top" colspan="2">
<p>Your search returned <strong><%cat_hits%></strong> categories and <strong><%link_hits%></strong>
Links.</p>
<%if next%>
<p>Pages: <%next%></p>
<%endif%>



<!-- Links in this category. -->
<%if links%>

<%if category_results%>

<tr>
<td width="100%" valign="top" class="titlebar" align="left" colspan="2"> Categories
</td>
</tr>
<tr>
<td valign="top" colspan="2">
<ul>
<%category_results%>
</ul>
</td>
</tr>
<%endif%>

<%if link_results%>

<tr>
<td width="100%" valign="top" class="titlebar" align="left" colspan="2"> Links
</td>
</tr>
<tr>
<td valign="top" colspan="2">
<%link_results%> <%endif%>
<%if next%>
<p>Pages: <%next%></p>
<%endif%>
</td>

</tr>
<%endif%>


<tr>
<td valign="top" class="titlebar" colspan="2">
<p class="titlebar">Search</p>
</td>
</tr>
<tr>
<td valign="top" class="storybody" colspan="2">
<form action="<%db_cgi_url%>/search.cgi" method="GET">
<div class="margin">
<table border="0" cellspacing="0" cellpadding="0" width="637">
<tr>
<td><strong class="search">Looking for something in particular?</strong></td>
</tr>
<tr>
<td>
<input type="text" size=15 name="query">
<input type=submit value="Search!" name="submit">
</td>
</tr>
<tr>
<td><small class="more"><a href="<%db_cgi_url%>/search.cgi">More
search options</a></small></td>
</tr>
</table>
</div>
</form>
<p><small class="update">Pages Updated On: <%date%> - <%time%><br>
Links Engine 2.0 By: <a href="http://www.gossamer-threads.com/">Gossamer
Threads Inc.</a></small></p>
</td>
</tr>
</table>
<!-- MANDATORY FOOTER STARTS -->
<!--#include virtual="/common/mainfooter.stm" -->
<!-- MANDATORY FOOTER ENDS -->
</body>
</html>
Quote Reply
Re: Search Capability has never worked In reply to
This line is your problem:

Code:
<title><%site_title%>: <%category_name%></title>

You can only use this tag <%category_name%> in the category.html file!

You need to change the above codes to the following:

Code:
<title><%site_title%>: Search Results</title>

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Search Capability has never worked In reply to
Thank your for your assistance, it at least started me down the right path. The page is working now and all I have to do is solve some latent style difficulties.

Best Regards

Dave Gray
Quote Reply
Re: Search Capability has never worked In reply to
Good...glad you got it working.

In terms of style editing...here is a suggestion..delete the .css file and all references.

CSS files sucks!

Regards,

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