MyMPx.org

MyMPx.org (http://mympx.org/forum/)
-   Miscellaneous (http://mympx.org/forum/miscellaneous/)
-   -   Help needed with creating a "Countdown Clock" (http://mympx.org/forum/miscellaneous/40328-help-needed-creating-countdown-clock.html)

admin 30th Jan 2008 12:37 am

Help needed with creating a "Countdown Clock"
 
Hi everyone,

This time I need YOUR help.

I want wanting to run a competition for MyMPxPlayer.org members, but with a slight twist.

The competition is going to get everyone to do a 'Treasure Hunt' and the first to find it, post their answers to enter the draw.

So, to make it fair for everyone, I want to put in a "Countdown Timer" on the page to tell everyone when the next Treasure Hunt question will be so everyone gets a fair chance to find it and answer.

The trick is, I'm after a SERVER-SIDE "Countdown Timer". This is so that the time is not dependent on the user, otherwise the countdown timer will be different depending on what time zone you are in. I want a constant timer that everyone sees.

As I don't know programming or scripting, I was hoping if some members who have programming/scripting experience can help out? Even if it's a Flash file.....?

Any suggestions or help would be greatly appreciated.

nzer_4_lyf 30th Jan 2008 1:10 am

Hi mate,

I found this on the internet which should be good: http://scripts.franciscocharrua.com/...down-clock.php

If that is not any good I can look for some more and even try and get a script from someone.

Moniz123 30th Jan 2008 4:25 am

Hey there, this is a website for stuff that you can put on your MySpace.
I think I am a little confused on what you actually want, but I know for a fact that the countdown will not change when you go to a different time zone.

Here it is:
http://www.pageplugins.com/generators/flash_countdown/

zer0 30th Jan 2008 10:28 pm

Re: Help needed with creating a "Countdown Clock"
 
hello buddy :lol:
i have something about programming
i know asp and vb/jscript
it would be a great feeling for me if i can help :)

admin 31st Jan 2008 12:18 am

Quote:

Originally Posted by nzer_4_lyf";p=&quot (Post 44305)
Hi mate,

I found this on the internet which should be good: http://scripts.franciscocharrua.com/...down-clock.php

If that is not any good I can look for some more and even try and get a script from someone.

Thanks nzer_4_lyf for that.
Unfortunately I have already tried this and it doesn't work :(

If you know of anything else, let me know.

admin 31st Jan 2008 12:24 am

Quote:

Originally Posted by Moniz123";p=&quot (Post 44310)
Hey there, this is a website for stuff that you can put on your MySpace.
I think I am a little confused on what you actually want, but I know for a fact that the countdown will not change when you go to a different time zone.

Here it is:
http://www.pageplugins.com/generators/flash_countdown/

Thanks Moniz123 for that.
Nice countdown, however the timer is dependent on the CLIENT computer's time. For example, if I change the time on my computer's clock, it will also change the time on the countdown.

The situation is, since I am in New Zealand, we are generally a few hours ahead of everyone else in the world. So the problem is if I set the time to countdown to February the 1st for example and it's 10pm now in NZ, my countdown clock will display with 2 hours and counting. However, for someone in America for example who are in a different time zone and are a few hours behind us, their countdown clock will display with 5 hours left and counting instead. That's the problem.

So, I'm looking for a countdown clock where the time is actually based on the SERVER instead. Since the time is based on my Web Server, it will be constant for anyone in the world and based on ONE computer instead of many in different time zones.

Hope that make sense.....(??)

admin 31st Jan 2008 12:26 am

Hi zer0,

Thanks for your help.
MyMPxPlayer.org already is running on php, so if you can do something in php, that would be great :).

Otherwise Java or Java Script I think I can run on the site.

Thanks for your assistance. Hopefully you can come up with something :).

Moniz123 31st Jan 2008 3:51 pm

http://www.elouai.com/countdown-clock.php
It says its server dependant... i hope this works for you :)

zer0 1st Feb 2008 7:14 pm

Re: Help needed with creating a "Countdown Clock"
 
hello :)
i already came out of the code in php.
i'm now trying to dload php server so i can test it from my computer then ill send it to you if it works.
i hope it'll.
cheers 8)

admin 1st Feb 2008 7:49 pm

Thanks zer0,

Hum... I'm not sure how to incorporate it into a post within a forum though.....? I tried to incorporate a php code into a post, but I think due to security, it's been disabled.

Have you tried with Java or Java Script? Do you think that will work?

nzer_4_lyf 1st Feb 2008 8:53 pm

Hey admin,

I am just going to post something on a web forum to try and get the code for you so hopefully it will be perfect for the site.

By the way, those temptation players look great.

Is UXcell going to donate the player?

zer0 2nd Feb 2008 1:01 am

Re: Help needed with creating a "Countdown Clock"
 
ooo :shock: :shock:
i thought it will be embedded into the
site's codes :)
anyway, cant our forum here display frames?

zer0 2nd Feb 2008 1:23 am

Re: Help needed with creating a "Countdown Clock"
 
i just learned its possible :lol:
we're near success 8)

zer0 2nd Feb 2008 2:05 am

Re: Help needed with creating a "Countdown Clock"
 
how about this admin? :D

[web:7cb0f2b1f9]http://www.countdownclockcodes.com/cd/ccc-countdown/show.swf?clickURL=http://www.countdownclockcodes.com/&clickLABEL=MySpace%20Countdowns&flashLABEL=.%20.& skin=http://www.countdownclockcodes.com/cd/ccc-countdown/skins/m26.swf&text=THE%20MYMPXPLAYER%2ECOM%20EVENT&until Color=6724095&textColor=0&datesColor=0&year=2008&m onth=11&day=25&hour=0&minute=0&second=0&x=3&y=112[/web:7cb0f2b1f9]

actually, i set the timer so that it counts down to the next christmas day

credits to:
countdownclockcodes.com

admin 2nd Feb 2008 2:11 am

zer0,

That looks awesome!
However, I did some testing and the time is CLIENT based.
What I did was change the time on my computer clock and you can see the count down time changes. So that tells me for other people in different time zones, the count down time is different.

Thanks for your effort and help on this. It's appreciated.

admin 2nd Feb 2008 2:19 am

Quote:

Originally Posted by nzer_4_lyf";p=&quot (Post 44451)
Hey admin,

I am just going to post something on a web forum to try and get the code for you so hopefully it will be perfect for the site.

By the way, those temptation players look great.

Is UXcell going to donate the player?

Hi nzer_4_lyf,

Thanks for your efforts.

Yes, UXcell is doing to donate that player as a prize which is really good of them.

admin 2nd Feb 2008 2:27 am

I just had a thought.

Can someone create a FLASH animation that countsdown to some specific time? I can then just use that on the page instead. As long as everyone sees the same time, so it's just a matter of making it countdown from 48 hours for example. Not sure how easy that is as I have no knowledge of Flash.

zer0 2nd Feb 2008 2:32 am

Re: Help needed with creating a "Countdown Clock"
 
still client side :( :( sorry

zer0 2nd Feb 2008 3:53 am

Re: Help needed with creating a "Countdown Clock"
 
i got another, mr admin 8)

[web:e01166e776]http://h.1asphost.com/zero132531/countdown/countd.asp[/web:e01166e776]

i uploaded it into a free web server.
it is supposed to be updating every second
but i can see an interval of 2 seconds, maybe its because of my slow internet connection.
and also, the main url of the countdown timer displays a banner/add
maybe because it is just a free hosting site.
it may be the reason for the 2-second delay.

i hope this may help. :lol:

nzer_4_lyf 2nd Feb 2008 8:11 pm

Re: Help needed with creating a "Countdown Clock"
 
I finally got a script that should be good.

The problem is, all of the php code will not post in a message.

Admin, how should I send it to you? :)

nzer_4_lyf 2nd Feb 2008 8:20 pm

Also, I found this website:

http://www.livecountdown.com/countdo...k/default.aspx

It seems like it would be good.

Here is a test one I made:

[flash width=500 height=400:130455f713]http://www.livecountdown.com/countdownclock/countdown.aspx?id=5968[/flash:130455f713]

I can't seem to see that in my browser so I am not sure whats wrong, you can view it by going to: Flash Countdown.

zer0 2nd Feb 2008 8:25 pm

Re: Help needed with creating a "Countdown Clock"
 
Quote:

Originally Posted by nzer_4_lyf";p=&quot (Post 44502)
Also, I found this website:

http://www.livecountdown.com/countdo...k/default.aspx

It seems like it would be good.

i think those countdown clocks are client based :(

nzer_4_lyf 2nd Feb 2008 8:28 pm

Yeah but that flash one in particular, couldn't admin just iframe it?

zer0 2nd Feb 2008 8:30 pm

Re: Help needed with creating a "Countdown Clock"
 
i uploaded the timer i posted above to a different server.
it doesn't have a banner anymore and is a little bit faster
but sometimes, it is still delayed by a second.
i didn't post it here because it may be affected by my previous timer.
after the 30th post, maybe i can post it already so that it's in the 3rd page of this forum topic :)

zer0 2nd Feb 2008 8:31 pm

Quote:

Originally Posted by nzer_4_lyf";p=&quot (Post 44504)
Yeah but that flash one in particular, couldn't admin just iframe it?

i think he does not want to edit the codes of this site :(

zer0 2nd Feb 2008 8:35 pm

Quote:

Originally Posted by nzer_4_lyf";p=&quot (Post 44502)
Also, I found this website:

http://www.livecountdown.com/countdo...k/default.aspx

It seems like it would be good.

Here is a test one I made:

[flash width=500 height=400:773e60d20d]http://www.livecountdown.com/countdownclock/countdown.aspx?id=5968[/flash:773e60d20d]

I can't seem to see that in my browser so I am not sure whats wrong, you can view it by going to: Flash Countdown.

try to adjust your computers' time and see what happens :lol:

nzer_4_lyf 2nd Feb 2008 8:38 pm

Well i just did adjust my computer time and is still had the same time left as before so I am unsure on what you are on about.

http://www.livecountdown.com/countdo...n.aspx?id=5968

zer0 2nd Feb 2008 8:46 pm

Quote:

Originally Posted by nzer_4_lyf";p=&quot (Post 44508)
Well i just did adjust my computer time and is still had the same time left as before so I am unsure on what you are on about.

http://www.livecountdown.com/countdo...n.aspx?id=5968

:shock: ooo sorry
could you change your date instead, try changing the month to april and see what happens to the days left in the countdown

admin 2nd Feb 2008 10:40 pm

Quote:

Originally Posted by nzer_4_lyf";p=&quot (Post 44508)
Well i just did adjust my computer time and is still had the same time left as before so I am unsure on what you are on about.

http://www.livecountdown.com/countdo...n.aspx?id=5968

Thanks for that nzer_4_lyf,

Unfortunately, I tried changing the time on my computer, clicked "apply" and unfortunately the countdown time left changed. This means that the time I see will be different from someone else's time as it's client based.

nzer_4_lyf 3rd Feb 2008 12:02 am

Sorry admin.

The script that zer0 made is probably the best :)

zer0 3rd Feb 2008 1:26 am

Re: Help needed with creating a "Countdown Clock"
 
here is another that i think is better than my previous post:


Time left before Christmas

[web:1be2b647fd]http://zero132531.webng.com/countdown/countd.asp[/web:1be2b647fd]

Moniz123 3rd Feb 2008 5:20 am

http://www.elouai.com/countdown-clock.php
It says its server dependant... i hope this works for you :)
I posted this again because it looks like you didn't respond to it....
The clock is text only... there is no graphical anything about this clock... its just plain text

madgamepro 17th Mar 2008 3:41 pm

Actually, I'd think the simplest way to do it would be to use unix time via php.

So you'd just use the php function to have a predefined variable, and would then compare it to the time that the server is on.

Making it look something like


Bleh, it messed up my code, apparently I can't type it in here.


All times are GMT -7. The time now is 12:03 pm.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2