PDA

View Full Version : Countdown till newyear (editable for each time you want)


flup
14 Dec 2002, 13:00
Will be displayed on top of index.php just like Vote My Site.

Hack Version: 1.0

Dean C
14 Dec 2002, 13:12
I can't see it... can you set up a test account please :)

- miSt

flup
14 Dec 2002, 13:29
Ok.

flup
14 Dec 2002, 13:30
Latest version: 1.01

Edit some text out.

flup
14 Dec 2002, 13:33
This will be shown:
http://sat-gsm.dyndns.org/forum/test.php

Graphics
14 Dec 2002, 13:37
Good work flup! :p

flup
14 Dec 2002, 13:40
Thx, hope some1 whant's to use is :)

LOD-squa
14 Dec 2002, 17:55
Nice, I might install it. To set it for the date my site will open.

MasterDuDe
14 Dec 2002, 18:04
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

flup
14 Dec 2002, 18:07
Ffies denken.............

Chris M
14 Dec 2002, 22:43
Cool:)

Satan

flup
14 Dec 2002, 22:51
Thx

DonLKSAB
03 Jul 2003, 08:18
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

flup
03 Jul 2003, 09:06
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
03 Jul 2003, 10:22
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

flup
03 Jul 2003, 11:22
get rid of the <?php and ?> tags.
Ur working IN a php file remember;)

DonLKSAB
03 Jul 2003, 11:25
Well i tryed that before.
Then it prints out the code in the table.

/DonLKSAb

flup
03 Jul 2003, 12:05
Hmm dunnow sorry