TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 123
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 81
  • Total: 81

Xmas Countdown with Snow Block

Started by akulion, December 12, 2006, 10:17:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akulion

By the way for the Big Xmas block, just download the file linked to under the block on the demo page

upload the files to your forum root

then put this in a PHP block:

include "12x.php";


thats it :D
aku

xblubx


DipWit


RvG

Aku... thanks a lot for this block but Xmas is finished already. Do you have something for New year? :)

akulion

well this block can be configured for new year very easily

do this:

open up the PHP file in the package

Then find:


<tr><td bgcolor="#99CCFF"><center><font size="1" face="Verdana">Christmas Countdown</font></center></td></tr>


change the christmas to new year

find:

<param name="grph" value="christmas25.jpg">


change over for a new year image of ur choice

find:

var futuredate=new cdtime("countdowncontainer", "December 25, 2006 00:00:00")

change the date to December 21, 2006 23:59:59
so that should be 1 sec b4 new year or u can set it 1 min after if u want

and thenfinally find:

function formatresults(){
if (this.timesup==false){//if target date/time not yet met
var displaystring=arguments[0]+" days "+arguments[1]+" hours <br>"+arguments[2]+" minutes "+arguments[3]+" seconds<br> left until Christmas"
}

and change the left until Christmas to left until new year

and thats all really


gmlong

countdown not showing only "Future date is here!"  any ideas?

Hairy

Quote from: gmlong on October 28, 2007, 09:01:16 PM
countdown not showing only "Future date is here!"  any ideas?

Have you changed the following code to be this year?


var futuredate=new cdtime("countdowncontainer", "December 25, 2006 00:00:00")

hawaii

hi

dont mean to sound thick but im new to tp but were do i upload the files to?

themes and layouts? or packages?

ive never done anything like this before and ive already broke my baord with "tinkering"

incase your wondering a friend set up my tp for me so i havent a clue.

Zetan

Quote from: Gobo on December 17, 2006, 02:41:27 PM
By the way for the Big Xmas block, just download the file linked to under the block on the demo page

upload the files to your forum root

then put this in a PHP block:

include "12x.php";


thats it :D
aku

Forum Root.. the public_html folder.

matstone

Thanks, this works nice.  :coolsmiley:

This website is proudly hosted on Crocweb Cloud Website Hosting.