Advertise Here

Author Topic: [Code] Count Down Timer to Any Date  (Read 7175 times)

0 Members and 1 Guest are viewing this topic.

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Count Down Timer to Any Date
« Reply #15 on: February 02, 2009, 08:06:06 am »
...

In fact there IS a way. Paste the entire code into your post and surround it with [html]script here[/html] tags.

Thanks to Sibyl for figuring this one out.
I did this and it didn't work, have you actually tried it?

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Count Down Timer to Any Date
« Reply #16 on: February 02, 2009, 09:20:47 am »
...

In fact there IS a way. Paste the entire code into your post and surround it with [html]script here[/html] tags.

Thanks to Sibyl for figuring this one out.
I did this and it didn't work, have you actually tried it?


he did..   I did as well to see if it would work, and it does.

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Count Down Timer to Any Date
« Reply #17 on: February 02, 2009, 10:07:52 am »
...

he did..   I did as well to see if it would work, and it does.
It is probably just me then, because I can't get it to work in posts ;D. Oh well.

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Count Down Timer to Any Date
« Reply #18 on: February 02, 2009, 10:10:11 am »
...

he did..   I did as well to see if it would work, and it does.
It is probably just me then, because I can't get it to work in posts ;D. Oh well.

When you put it in a post using the html bbcode tags you have to put in some text along with it or it will tell you the message is empty and will not post it.   Doesnt do that with all scripts/embed codes/etc but with some it will.    If you click Preview you won't see it.   After you click on "Post" you will.   

Offline Jade

  • SMF For Free Full Member
  • *
  • Posts: 145
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Count Down Timer to Any Date
« Reply #19 on: February 02, 2009, 08:22:34 pm »
...

he did..   I did as well to see if it would work, and it does.
It is probably just me then, because I can't get it to work in posts ;D. Oh well.

When you put it in a post using the html bbcode tags you have to put in some text along with it or it will tell you the message is empty and will not post it.   Doesnt do that with all scripts/embed codes/etc but with some it will.    If you click Preview you won't see it.   After you click on "Post" you will.  

Sibyl, I bet I know why it didn't work when Lawrence tried it.

And you do too...you're the one who said it...but not in the your post quoted above. There's another reason...


Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Count Down Timer to Any Date
« Reply #20 on: February 02, 2009, 08:26:14 pm »
do you mind enlightening us so that Lawerence does not have to guess?    Jade we are here to help ya know.. not to play guessing games  ;)

Offline Jade

  • SMF For Free Full Member
  • *
  • Posts: 145
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Count Down Timer to Any Date
« Reply #21 on: February 02, 2009, 08:27:12 pm »
do you mind enlightening us so that Lawerence does not have to guess?    Jade we are here to help ya know.. not to play guessing games  ;)

I bet Lawrence tried it here on this board, not on his own.

You said in a post earlier in this thread that it only works for admins.


Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Count Down Timer to Any Date
« Reply #22 on: February 02, 2009, 08:36:53 pm »
Nice code lawrence.  Keep it up! :)
Check out Revolution X's Brand new Code Index!

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Count Down Timer to Any Date
« Reply #23 on: February 03, 2009, 05:34:44 am »
...

I bet Lawrence tried it here on this board, not on his own.

You said in a post earlier in this thread that it only works for admins.

I do actually know it won't work here.

I have posted here: http://lawrencecode.smfforfree.com/index.php/topic,5.0.html
With:
Code: [Select]
Testing this code:
[html]<script language="JavaScript">

//Code by Lawrence.

TargetDate = "03/01/2009 12:00 PM";
BackColor = "red";
ForeColor = "black";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds until March.";
FinishMessage = "March is here.";
</script>
<script language="JavaScript" src="http://lawrencecodes.googlepages.com/count.js"></script>[/html]

I really don't know why it won't work.

Nice code lawrence.  Keep it up! :)
Thank-you, and will do ;).

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Count Down Timer to Any Date
« Reply #24 on: February 03, 2009, 04:52:51 pm »

I really don't know why it won't work.


It won't work if it is in the Header and in a post at the same time.   If it is only in a post it will.  (tested it)     I dunno why.. my scripting knowledge is next to none.   But, eh, at least you now know its not a setting on your forum and that you can do it in a post  ;)   (so long as you don't have it in your header or footer too)

« Last Edit: February 03, 2009, 06:39:12 pm by simply sibyl »

Offline Jade

  • SMF For Free Full Member
  • *
  • Posts: 145
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Count Down Timer to Any Date
« Reply #25 on: February 03, 2009, 06:00:37 pm »
I really don't know why it won't work.

Well, we're all using the same smf software, so it's gotta be a simple problem that you can fix.

1) As Sibyl said, you can't have it in your header or footer AND in a post- it's either header, footer OR post

2) As Sibyl clarified, You need to be admin on the board you're posting it to

3) As Sibyl pointed out, You need the html tags

4) You need to make sure all the variables in the script are full, of course with no missing characters, extra spaces, etc.

I used exactly this in my post, I suggest you copy it even though you're not getting divorced in 33 days, 12 hours, 58 minutes and 56 seconds like I am.

Code: [Select]
[html]<script language="JavaScript">

//Code created by Lawrence.

TargetDate = "03/09/2009 09:00 AM";
BackColor = "yellow";
ForeColor = "FONT COLOUR";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds until The Divorce Trial.";
FinishMessage = "FINISHED MESSAGE";
</script>
<script language="JavaScript" src="http://lawrencecodes.googlepages.com/count.js"></script>[/html]
« Last Edit: February 03, 2009, 06:27:48 pm by Jade »

Offline - Lawrence -

  • SMF For Free Hero
  • *
  • Posts: 549
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Count Down Timer to Any Date
« Reply #26 on: February 04, 2009, 11:07:19 am »

I really don't know why it won't work.


It won't work if it is in the Header and in a post at the same time.   If it is only in a post it will.  (tested it)     I dunno why.. my scripting knowledge is next to none.   But, eh, at least you now know its not a setting on your forum and that you can do it in a post  ;)   (so long as you don't have it in your header or footer too)


Ah yes, I see that now, I should have remembered that, because I tried it on my website and it didn't work twice, but did once ;).

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
3680 Views
Last post April 14, 2007, 11:00:52 pm
by Nutz
1 Replies
2422 Views
Last post December 23, 2008, 08:54:16 am
by outlaw16151
9 Replies
4595 Views
Last post February 04, 2009, 04:19:08 pm
by Jade
5 Replies
2376 Views
Last post August 02, 2008, 08:58:32 am
by EyeSpyDesigns
7 Replies
6424 Views
Last post February 02, 2010, 05:23:53 pm
by InsertName