PDA

View Full Version : Allowing code execution if post date is older then date defined


Andy
07-23-2005, 06:44 AM
I would like to modify my postbit_legacy template so that attached images only show if the post date is before July 23rd 2005.

Here is the code that I would like to modify:


<if condition="$show['imageattachment']">
$post[imageattachments]
</if>


Any help greatly appreciated. :)

Adrian Schneider
07-23-2005, 07:18 AM
Try:

<if condition="$show[imageattachment]">
<if condition="$post[dateline] < 1122120000">
$post[imageattachments]
</if>
</if>

Andy
07-23-2005, 10:26 AM
Try:

<if condition="$show[imageattachment]">
<if condition="$post[dateline] < 1122120000">
$post[imageattachments]
</if>
</if>

That worked perfectly.

Thank you very much for your help. :)