utilitees

- Addons for ExpressionEngine 1.7.x

It’s new Documentation

Download Download

Installation:

Unzip the archive and copy the file pi.itsnew.php into the plugins-directory inside your Expression Engine system-directory.

Back to top

Example:

{exp:itsnew date="{entry_date}" days="10"}
<img src="new.gif" />
{/exp:itsnew} 
If the entry is older than 10 days nothing is returned otherwise the image will be displayed.

Back to top


Parameters:

date="{entry_date}" 

This one is mandatory.

days="10" 

Optional. Number of days to compare against entry_date. Defaults to 30.

Back to top

Questions / bug reports

For general comments, brickbats & bouquets please use the form over here.
Name:

Email:

URL:


Remember my personal information
Notify me of follow-up comments?


Page 1 of 1 pages

User Talk

Josh:
2010-04-09 20:06

This is great thanks.  Is there a way where this can show whats been updated in the last n days?



Oliver:
2009-05-08 16:26

My bad. Fixed.



Simon Cox:
2009-05-08 14:58

Hi - just installed your It’s new plug in and I was getting “Undefined variable: str” for line 54. Appears that str is undefined before you define it. I added $str = ‘’; into line 53 and it then worked great. (though I am no PHP progreammer so I don’t know if this is the best way to fix it!)

Cheers
Simon