Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Universal Countdown Script Problem

  1. #1
    Join Date
    Oct 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Universal Countdown Script Problem

    1) Script Title: Universal Countdown Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lcountdown.htm

    3) Describe problem: I have pasted this script exactly like it describes and have not changed anything. It shows up on the page, but the time and countdown numbers just show 'NaN'. How do I correct this so that the time is actually showing up and coming from the server like it's supposed to be?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    From the Demo:
    Requirement: The page running this script must either be PHP, SSI (server side includes), or ASP enabled, as the script needs to rely on one of these technologies to access your server's time.
    Do you have one of these available and did you give your page the appropriate extension?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So just having http://www.mydomain.com/forum as the page would not be able to access the server's time? I also tried the page by adding /index.php and it still doesn't work. My website is run with php, so I'm lost on this one. Any ideas?

    Also, how would I change this script so the days, hours, etc. labels are under the digits on the countdown as opposed to on the right of them?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    As long as the extension of the page at that address is .php and PHP is active for that page, it should be OK. However, that brings up another consideration. The script itself must be configured to use whatever type of server side language you have chosen to use for it. Did you do this?

    Also, if not using debug, the syntax is like so:

    Code:
    var launchdate=new cdLocalTime("cdcontainer", "server-php", 0, "April 23, 2010 15:53:00")
    launchdate.displaycountdown("days", formatresults2)
    With the:

    , "debugmode"

    including the comma removed entirely.

    As for the second part of your question, yes. But, let's get this working first.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Oct 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yes, i have changed the script so that it is configured the way it should be, but it still doesn't work. i have debug mode on for now to make sure the time is correct, but I don't have any time showing like I mentioned before. any other ideas?

  6. #6
    Join Date
    Oct 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i just went to my vBulletin control panel and noticed this:

    Server Type: Linux
    Web Server: Apache (cgi)

    could this be the problem?

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If other PHP is working on the page, no.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Oct 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    how do i fix this then and make it work?

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Is other PHP working on the page?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Oct 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yes, everything is working but this.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •