Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Unknown Tag : Description_name

Quote Reply
Unknown Tag : Description_name
After i installed the scroptm I build those pages and check it, but only a "Unknown Tag : Description_name" there. Do any know what goes wrong?

My problem site http://search.website.com.hk/Computer_and_Internet/
Quote Reply
Re: Unknown Tag : Description_name In reply to
I think, you are using templates.
Edit link.html and check the description area of a link.

There schould be:
<%if Description%>
<%Description%>
<%endif%>

Maybe you are using <%description_field%>!

JF
Quote Reply
Re: Unknown Tag : Description_name In reply to
Sorry typing error!
Maybe you are using <%Description_name%>
instead of <%Description%>

JF
Quote Reply
Re: Unknown Tag : Description_name In reply to
nope, the tag is correct,
it's "Description" instead of "Description_name"

so what happen to my script?
Quote Reply
Re: Unknown Tag : Description_name In reply to
What he was trying to tell you is, you are using <%description_name%> in the template and it should be <%description%> or <%Description%>. Fix the template and the problem should go away. There is no such variable as <%description_name%>.
Quote Reply
Re: Unknown Tag : Description_name In reply to
I've been having the same problem with the "Unknown Tag" error. This seems to be caused by the fact that the Perl API is not installed on my web host's server. The only work-around I've been able to find is to use the "site_html.pl" file for building the pages (instead of using templates).

One of the drawbacks to this is that the Mailer.pm module doesn't work either - which means users are receiving confirmation emails filled with "Unknown Tag" comments after I validate their listing.

I'm currently modifying the script to reincorporate the v1.x email subroutines as a short-term work-around.

The solution, though, is getting the API installed on your host's server.



------------------
Richard Luck
Pilot-Search.com
Quote Reply
Re: Unknown Tag : Description_name In reply to
link.html
----------
<ul><li><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>

<%if Description%>
<span class="descript">- <%Description%></span>
<%endif%>

<%if isNew%>
<b><sup class="new">新站</sup></b>
<%endif%>

<%if isPopular%>
<b><sup class="pop">熱站</sup></b>
<%endif%>
<br>
<small class="date">
<font size=2>
(加入日期: <%Date%> 人氣: <%Hits%> 排名: <%Rating%> 票數: <%Votes%> ) <a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">投票</a></small>

</ul>

It seems that the tags is correct.

I am using Unix Hosting. Is Unix Host needs Perl API?
Quote Reply
Re: Unknown Tag : Description_name In reply to
Yup, you're right, it looks right to me also. Make sure that sub site_html_link in site_html_templates.pl contains the %rec line in the following:

Code:
return &load_template ('link.html', {
detailed_url => "$db_detailed_url/$rec{'ID'}$build_extension",
%rec,
%globals
});

I hope this helps.
Quote Reply
Re: Unknown Tag : Description_name In reply to
I didn't amend any line of those scripts...

I %rec variable is there....
Quote Reply
Re: Unknown Tag : Description_name In reply to
Well, I just revisited the link you provided in the first message and no Unknown tag error is coming up now, so you must have figured it out.