7
I modified your code but I didn't try if it works. Try to put this code into the block:
le="color: #000000"><?php $end = "May 6, 2007"; $text = "until the conference!"; $textOnTheDay = "G'07 begins today!!!"; $textAfterwards = "Check out the procedings."; $now = strtotime ("now"); $then = strtotime ("$end"); $difference = $then - $now; $num = $difference/86400; $days = intval($num); $num2 = ($num - $days)*24; $hours = intval($num2); $num3 = ($num2 - $hours)*60; $mins = intval($num3); $num4 = ($num3 - $mins)*60; $secs = intval($num4); if ($days>0 || $hours>0 || $minutes>0 || $seconds>0) { print '<p>'; print "$days days, <br />"; print "$hours hours, <br />"; print "$mins minutes, <br />"; print "$secs seconds, <br />"; print "$text"; print '</p>'; } else if (($days==0) && ($hours<=0 || $minutes<=0 || $seconds<=0)) { print "<p>$textOnTheDay<p>"; } else { print "<p>$textAfterwards</p>"; }