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
<%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
<%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
-------------------------------------------------------
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
-------------------------------------------------------