• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Modern AAC Countdown

mike070

New Member
Joined
Mar 25, 2010
Messages
215
Reaction score
2
I am wondering how do i implement an countdown in modern AAC?

YES i have googled it.. but nothing specific has popped up ;p

thx
 
PHP:
<?php

$target = mktime(0, 0, 0, 2, 10, 2007) ;

$today = time () ;

$difference =($target-$today) ;

$days =(int) ($difference/86400) ;

print "Our event will occur in $days days";

?>
 
Last edited:
PHP:
<?php
//Change this to what ever date and time you want the countdown to fir to.
$target = mktime(12, 59, 30, 9, 10, 2011) ;

//Don't touch these//
$today = time () ;
$difference =($target-$today) ;
$days = floor($difference/60/60/24);
$hours = floor(($difference - $days*60*60*24)/60/60);
$minutes = floor(($difference - $days*60*60*24 - $hours*60*60)/60);

//Change this one so it fits your needs
$timeleft = "It's ".$days." days, ".$hours." hours and ".$minutes." minutes left until somwthing happens!";

?>

And then after this script, you just put an "echo $timeleft;" anywhere you like.

Enjoy it :)
 
I've got one question though, where exactly do i implement that script? Is it an injection or do I have to modify an existing page?
Please be as specific as u can possibly be =P
 
Back
Top