Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Category Help

Quote Reply
Category Help
Here's my situation. If you look at http://www.weathertalk.net/, you'll see that within the catergories that they are being displayed twice. I'm just wanting to display what is showing up 2nd that has the NEW graphics on the side. I've looked at my home.html file which has the <%category%> tag, and when removing that tag will remove everything. I looked at the subcategory.html where I placed the code to get the 3 New Level Graphics to work and nothing stands out.

Here's the subcategory.html code:

<dl>
<dt><strong><a class="link" href="<%URL%>"><%Short_Name%></a></strong> <small><class="numlinks">(<%Number_of_Links%>)</small>
<font face=arial SIZE=2>
<dl>
<dt><a href="<%URL%>"><B><%Short_Name%></B></a> <small>(<%Number_of_Links%> )</small>
<%if Has_New_Links eq 'Yes'%><%if Days_Old < 15%> <imgsrc=new_<%Days_Old%>.gif><%endif%><%endif%>
<%if Has_Changed_Links eq 'Yes'%><small><sup>update</sup></small><%endif%>
</dt>
<%if Description%><dd><%Description%></dd><%endif%>
</dl>
</font>
<%if Has_Changed_Links eq 'Yes'%><small><sup class="new">update</sup></small><%endif%>
</dt>
<%if Description%><dd><span class="descript"><%Description%></span></dd><%endif%>
</dl>

And the code from the home.html that deals with displaying the categories:

<CENTER><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%">
<TR>
<TD VALIGN=top WIDTH="10%">
<P><FONT SIZE="-2" FACE="Verdana,Sans-Serif"> <%category%> </FONT></P> </TD>
</TR>
</TABLE>

Any help would be appericated.. Also just to cover my ass, I've checked the FAQ's and done and read all results from the forum regarding (subcategory.html, category, categories, 3 new level graphics) and can't find anything regarding this type of situation.

Thanks,

Sean

Quote Reply
Re: Category Help In reply to
Look at the following codes:

Code:

<dt><strong>
<a class="link" href="<%URL%>"><%Short_Name%></a></strong>
<small><class="numlinks">(<%Number_of_Links%>)</small>
<font face=arial SIZE=2>
<dl>
<dt><a href="<%URL%>"><B><%Short_Name%></B></a> <small>(<%Number_of_Links%> )</small>
<%if Has_New_Links eq 'Yes'%>
<%if Days_Old < 15%>
<imgsrc=new_<%Days_Old%>.gif>
<%endif%>
<%endif%>


Do you see the problem? Look at the bolded red codes. Hint: <%Short_Name%> X 2 = Printed Category Twice.

Regards,

Eliot Lee

Quote Reply
Re: Category Help In reply to
I've got it fixed.. Thanks Anthro. I just played the codes long enough and got it to work.. Thanks for the help..

THREAD CLOSED!

Quote Reply
Re: Category Help In reply to
You're welcome...I believe your problem was not closing conditional statements in the correct location in the file.

Regards,

Eliot Lee