Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Andy] Custom Display Based on Links Age

Quote Reply
Re: [Andy] Custom Display Based on Links Age In reply to
It is working partially.

There is only 1 test link in the directory which was added on March 10, 2007. and was modified on April 12, 2007.

Now when I use
Code:
<%do_days_diff($Add_Date)%>
<%if diff <= 4%>
less than 4 days old
<%elsif diff > 4 and diff <= 90%>
between 4 days and 90
<%else%>
older than 90 days
<%endif%>


It displays less than 4 days old, instead of between 4 days and 90 days.

Also if I change the input code to
Code:
<%do_days_diff($Add_Date)%>
<%if diff <= 1%>
less than 1 days old
<%elsif diff > 1 and diff <= 90%>
between 1 day and 90
<%else%>
older than 90 days
<%endif%>

Then it displays less than 1 days old, instead of between 1 day and 90 days.

I tried this on link.html and include_footer.html page, but received same results.

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread Custom Display Based on Links Age VishalT 6536 Apr 11, 2007, 10:44 AM
Thread Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6355 Apr 12, 2007, 1:25 AM
Thread Re: [Andy] Custom Display Based on Links Age
VishalT 6381 Apr 12, 2007, 11:25 AM
Thread Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6345 Apr 13, 2007, 1:10 AM
Thread Re: [Andy] Custom Display Based on Links Age
VishalT 6328 Apr 13, 2007, 1:40 PM
Thread Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6392 Apr 13, 2007, 2:14 PM
Thread Re: [Andy] Custom Display Based on Links Age
VishalT 6363 Apr 13, 2007, 2:50 PM
Thread Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6330 Apr 14, 2007, 1:34 AM
Thread Re: [Andy] Custom Display Based on Links Age
VishalT 6331 Apr 14, 2007, 1:40 AM
Post Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6327 Apr 14, 2007, 1:56 AM
Thread Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6300 Apr 14, 2007, 10:24 AM
Thread Re: [Andy] Custom Display Based on Links Age
VishalT 6315 Apr 14, 2007, 4:40 PM
Post Re: [SWDevil.Com] Custom Display Based on Links Age
VishalT 6262 Apr 19, 2007, 10:09 AM