![]() |
Display on this date?
hey guys need some help:
i dont know if this piece of code is what im looking for or if there is something else out there that will work better? Code:
{if $smarty.now|date_format:"%m" > 10} i want to display a x-mas image in December and a valentine image in February, ect ect i tried to put this code in but it didnt work Code:
{if $smarty.now|date_format:"%m" = 12} please help |
Re: Display on this date?
A single = is an assignment, you need to use a double == or use eq. There may be something else wrong, but try the == first.
Steve |
Re: Display on this date?
Quote:
yip it works thanks |
All times are GMT -8. The time now is 11:53 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.