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

Unkown Tag: img_dir

Quote Reply
Unkown Tag: img_dir
Can't find an answer to this in the forums.

When doing a search from a template page I get the error "Unkown Tag: img_dir".

I'm using templates and have the search box in a table on each page thus:

<FORM ACTION="http://www.mrtrippy.com/cgi-bin/links/search.cgi" METHOD="GET">
<TABLE WIDTH="150" BORDER="0" CELLPADDING="2" CELLSPACING="0" BGCOLOR="#330033" ALIGN="CENTER">
<TR>
<TD ALIGN="CENTER" WIDTH="150">
<B>SEARCH</B>
</TD>
</TR>
<TR>
<TD ALIGN="CENTER" WIDTH="150"><INPUT TYPE="TEXT" SIZE="15"
NAME="query"></TD>
</TR>
<TR>
<TD ALIGN="CENTER" WIDTH="150">
<INPUT TYPE="submit" VALUE="Search now!">
</TD>
</TR>
<TR>
<TD ALIGN="CENTER" WIDTH="150"><FONT SIZE="-2">
<A HREF="http://www.mrtrippy.com/cgi-bin/links/search.cgi">More search options</A></FONT>
</TD>
</TR>
</TABLE>
</FORM>

Strange thing is the search works from the search.cgi page but not from any template page.
I've checked all the CHMODs and they are ok. The search function was working about two weeks ago!

Finally I've installed the script for a friend using the same template mods and that works fine.

Anyone got any ideas?


Rob
http://www.mrtrippy.com



Quote Reply
Re: Unkown Tag: img_dir In reply to
Probably because the img_dir tag doesn't exist, but if it does then add this to the globals in site_html_templates.pl....

img_dir => $img_dir

(No comma if it is the last global in the list.)

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Unkown Tag: img_dir In reply to
Thanks for the quick reply. I tried adding the extra global variable but this caused problems in the admin (cgi links tried to download themselves!)

I finally found the problem in the search results page which had the img_tag variable in it. I substituted with a full url and that cured the problem.

thanks

Rob