PDA

View Full Version : Content in post to show for only 30 days ?


Munkholm
03-23-2011, 12:26 PM
Hi.

Am trying to make a link display in all posts (postbit_legacy), but only have it displayed 30 days after the post was made.... after that, the link "expires" and should not be displayed.

Have tried various combinations of this, but with no success:


<vb:if condition="$post['postdate'] < (TIMENOW - (86400*30))">
MY LINK
</vb:if>


Any help will be greatly appreciated - Thanks.

--------------- Added 1300892056 at 1300892056 ---------------

Nevermind :p

Figured it out:


<vb:if condition="$post['dateline'] > TIMENOW - 30*86400">


dateline and not postdate....