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

Subcategory.html Question re Graphics

Quote Reply
Subcategory.html Question re Graphics
Okay,

I'm a little perplexed here. Here is a copy of my subcategory.html file. On my main page, if a listing has been modified then it is working fine - a small 'modifed' graphic appears next to the category listing - HOWEVER - It is not diplaying the 'New' graphics (I use 3 levels - all gifs have been renamed new_01 to new_15 etc).

Am I doing the wrong test for 'New'?
--------------------------

<dl>
<dt><a class="link" href="<%URL%>"><%Short_Name%></a> <span class="numlinks">(<%Number_of_Links%> )</span>
<%if isNew%>
<img src="<%image%>/new_<%Days_Old%>.gif">
<%endif%>
<%if Has_Changed_Links eq 'Yes'%>
<img src="<%image%>/updated.gif">
<%endif%>
</dt>
<%if Description%><dd><span class="descript"><%Description%></span></dd><%endif%>
</dl>
----------------------------

Thanks in advance,

Regards,



------------------
Clint
----------------------------------
www.AffiliatesDirectory.com
Proud Supporter of Links SQL
----------------------------------




Quote Reply
Re: Subcategory.html Question re Graphics In reply to
Well..... the "days_old" command returns an INTEGER value, so you need to name your files new_1, new_2, .... new_10, new_11 etc.

Quote Reply
Re: Subcategory.html Question re Graphics In reply to
Oops!

Typo - yes my images are named new_1 etc.

Regards,

------------------
Clint
----------------------------------
www.AffiliatesDirectory.com
Proud Supporter of Links SQL
----------------------------------




Quote Reply
Re: Subcategory.html Question re Graphics In reply to
Ok,

Did you turn this feature on in the Links.pm file for version 1.11, or uncomment the lines of code in (I forget which) HTML_Templates.pm or nph_build.cgi on the previous version?

You have to enable this feature in order to use it, because it does incur a performance penalty on the calculations.