View Full Version : Countdown till newyear (editable for each time you want)
Will be displayed on top of index.php just like Vote My Site.
Hack Version: 1.0
Dean C
12-14-2002, 12:12 PM
I can't see it... can you set up a test account please :)
- miSt
Latest version: 1.01
Edit some text out.
This will be shown:
http://sat-gsm.dyndns.org/forum/test.php
Graphics
12-14-2002, 12:37 PM
Good work flup! :p
Thx, hope some1 whant's to use is :)
LOD-squa
12-14-2002, 04:55 PM
Nice, I might install it. To set it for the date my site will open.
MasterDuDe
12-14-2002, 05:04 PM
Originally posted by flup
Will be displayed on top of index.php just like Vote My Site.
Hack Version: 1.0
hey ... jouw ken ik :D
Ffies denken.............
Chris M
12-14-2002, 09:43 PM
Cool:)
Satan
DonLKSAB
07-03-2003, 07:18 AM
I realy like the hack.
But i dont want it on the top of the page.
I want it here in the red square: ( seet attached image )
/DonLSKAB
You might add a template to your forum called: Countdown
Put this script in it:
// Change the viriables down here
$day = 1;
$month = 01;
$year = 2003;
// Don't change anything after this
echo("We have to wait ".(int)((mktime (0,0,0,$month,($day+1),$year)-time(void))/86400)."
days till $day-$month-$year.");
after that goto the template you have made with 'test' in it,
replace test with '$Countdown' and it should work
DonLKSAB
07-03-2003, 09:22 AM
Hmm.
That gave me a hint.
But it dont work.
I have made a template called "Test"
<!-- test -->
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#666666" width="80%" align="center">
<tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%" align="center">
<tr align="center">
<td bgcolor="#333333"><font color="CCCCCC" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>
<?php
// Change the viriables down here
$day = 1;
$month = 8;
$year = 2003;
// Don't change anything after this
echo((int)((mktime (0,0,0,$month,($day+1),$year)-time(void))/86400)."
Dagar kvar till Joy Masters.");
?>
</strong></font> </td>
</tr>
</table>
</table>
<!-- test -->
And then i put a $test in my forumhome template.
And added
eval("\$test = \"".gettemplate("test")."\";");
to my index.php.
It works 50% it shows the table but nothing in it. So the php code dont work. If i put some text before or after the <?php / ?> it displays fine.
The idea that flup has gives the same Table but no text.
/DonLKSAB
get rid of the <?php and ?> tags.
Ur working IN a php file remember;)
DonLKSAB
07-03-2003, 10:25 AM
Well i tryed that before.
Then it prints out the code in the table.
/DonLKSAb
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.