Gossamer Forum
Home : Products : Links 2.0 : Discussions :

What does this mean Unkown Tag: link_hits?

Quote Reply
What does this mean Unkown Tag: link_hits?
Like the topic says what does this error meanUnkown Tag: link_hits
Quote Reply
Re: What does this mean Unkown Tag: link_hits? In reply to
Basically, the error means that you have used <%link_hits%> in a template file but the site_html_templates.pl routine that loads that template file is not passing link_hits to it, so it cannot be used in the template file.

Since $link_hits is returned by search.cgi, I would check site_html_templates.pl, sub site_html_search_results to be sure this is included:

Code:
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
});

I hope this helps.
Quote Reply
Re: What does this mean Unkown Tag: link_hits? In reply to
Yea I it's all in there. The error seems to only happen if you do a search that has more then 2 keywords. Example if I was to search for "Cheat codes for half-life" I get the error, but if I type "half-life cheats" everything works fine.
Quote Reply
Re: What does this mean Unkown Tag: link_hits? In reply to
Have you installed or made any mods to the search parts of the scripts (search.cgi, search_results.html, the search subroutines in site_html_templates.pl)?

[This message has been edited by Bobsie (edited June 30, 1999).]