I believe I've got the 3 levels of new images figured out now. In http://www.postcards.com/...kSQL/Detailed/6.html , I believe all of the DaysOld parts need to be replaced with Days_Old.
Also, here's the way I set it up to be consistent with Bobsie's date ranges on the 2.0 mod:
<%if Days_Old > '7'%>
<img src="http://run-down.com/images/new_7.gif" border="0" width="34" height="12" alt="New 8-14" align="absmiddle">
<%endif%>
<%endif%>
<%if Days_Old < '8'%>
<%if Days_Old > '2'%>
<img src="http://run-down.com/images/new_3.gif" border="0" width="34" height="12" alt="New 3-7" align="absmiddle">
<%endif%>
<%endif%>
<%if Days_Old < '3'%>
<%if Days_Old > '0'%>
<img src="http://run-down.com/images/new_1.gif" border="0" width="34" height="12" alt="New 0-2" align="absmiddle">
<%endif%>
<%endif%>The only thing I'm not sure about yet is if that will pick up links that are zero days old, i.e. added the same day as it is built. The Days_Old apparently calculates anything over the build_new_cutoff as having a value of '0' which complicates the new comparison...
Another thing I noticed: I'm using page.cgi to make changes on the fly -- boy is that a great feature! -- but I had to rebuild to get it to recognize a change from 7 to 14 in build_new_cutoff in Links.pm. Is this the way it's supposed to be?
I haven't gotten to addressing it yet, but there appears to be an inconsistency between link.html and subcategory.html. link.html only shows new links, whereas subcategory.html shows new and updated "links." Is there some reason for not using the same date calculation for both sections like it was done in the 2.0 mod?
Thanks,
Dan
Also, here's the way I set it up to be consistent with Bobsie's date ranges on the 2.0 mod:
Code:
<%if Days_Old < '15'%> <%if Days_Old > '7'%>
<img src="http://run-down.com/images/new_7.gif" border="0" width="34" height="12" alt="New 8-14" align="absmiddle">
<%endif%>
<%endif%>
<%if Days_Old < '8'%>
<%if Days_Old > '2'%>
<img src="http://run-down.com/images/new_3.gif" border="0" width="34" height="12" alt="New 3-7" align="absmiddle">
<%endif%>
<%endif%>
<%if Days_Old < '3'%>
<%if Days_Old > '0'%>
<img src="http://run-down.com/images/new_1.gif" border="0" width="34" height="12" alt="New 0-2" align="absmiddle">
<%endif%>
<%endif%>
Another thing I noticed: I'm using page.cgi to make changes on the fly -- boy is that a great feature! -- but I had to rebuild to get it to recognize a change from 7 to 14 in build_new_cutoff in Links.pm. Is this the way it's supposed to be?
I haven't gotten to addressing it yet, but there appears to be an inconsistency between link.html and subcategory.html. link.html only shows new links, whereas subcategory.html shows new and updated "links." Is there some reason for not using the same date calculation for both sections like it was done in the 2.0 mod?
Thanks,
Dan