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
I have been doing this testing by adding code in include_footer.html & link.html page.

On my test site & also at http://www.myuksearch.co.uk/.../page.cgi?d=1;p=test I am seeing the output as 13617 what does this number mean?

Input
<%linkage2($ID)%>
Difference in days: <%diff%>

Output
-32

Input
<%do_days_diff($Add_Date)%>
<%diff%>
<%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%>

Output
13617 older than 90 days

How do I remove the negative sign so I can use it in the above code for custom output based on links age.

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread Custom Display Based on Links Age VishalT 6535 Apr 11, 2007, 10:44 AM
Thread Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6354 Apr 12, 2007, 1:25 AM
Thread Re: [Andy] Custom Display Based on Links Age
VishalT 6379 Apr 12, 2007, 11:25 AM
Thread Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6344 Apr 13, 2007, 1:10 AM
Thread Re: [Andy] Custom Display Based on Links Age
VishalT 6327 Apr 13, 2007, 1:40 PM
Thread Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6391 Apr 13, 2007, 2:14 PM
Thread Re: [Andy] Custom Display Based on Links Age
VishalT 6362 Apr 13, 2007, 2:50 PM
Thread Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6329 Apr 14, 2007, 1:34 AM
Thread Re: [Andy] Custom Display Based on Links Age
VishalT 6330 Apr 14, 2007, 1:40 AM
Post Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6326 Apr 14, 2007, 1:56 AM
Thread Re: [SWDevil.Com] Custom Display Based on Links Age
Andy 6299 Apr 14, 2007, 10:24 AM
Thread Re: [Andy] Custom Display Based on Links Age
VishalT 6314 Apr 14, 2007, 4:40 PM
Post Re: [SWDevil.Com] Custom Display Based on Links Age
VishalT 6261 Apr 19, 2007, 10:09 AM