seppo
10-30-2006, 12:48 PM
I'm trying to change the article plugin so that the article is not expiring, but instead some different content is displayed after 60 days.
I've been experimenting with this code:
if('" . time() . "' > ($article['datecreated']) +(3600*24*60))
{
echo ' some baaa content ';
}
else
{
echo ' different buuu content';
}
Obviously there's something wrong with my code, as I always get the same content, no matter how old the article is.
Any help appreciated.
I've been experimenting with this code:
if('" . time() . "' > ($article['datecreated']) +(3600*24*60))
{
echo ' some baaa content ';
}
else
{
echo ' different buuu content';
}
Obviously there's something wrong with my code, as I always get the same content, no matter how old the article is.
Any help appreciated.