PDA

View Full Version : Show something in between dates


alehawk
11-10-2008, 09:52 AM
Hi!
I would like to display something in the navigation bar but only for certain dates. I can do that in php but I dont know how to make it using vbulletin.

something like this
if(actual date is between 12/8 and 6/1)
echo "hello";

can be tomething like that can be done by editing templates?

tnx!

Guest190829
11-10-2008, 02:00 PM
You'd have to use a hook to do the PHP processing, than you could use a show variable within the template. Something like:


if($valid_date)
{
$show['valid_date_message'] = true;
}


then just use a conditional with the template

<if condition="$show[valid_date_message]">

</if>