I tried this module in a block with the example:

<b>Count-Down to whatever...</b>
<span class="countdowntimer">Count Down
 <span style="display:none" name="datetime">2008-02-26T09:30:00</span> 
 <span style="display:none" name="tz_hours">-8</span>
 <span style="display:none" name="dir">down</span>
 <span style="display:none" name="format_txt"><em>(%dow% %moy%%day%)</em><br>%days% days + %hours%:%mins%:%secs%</span>
 <span style="display:none" name="threshold">4</span>
 <span style="display:none" name="complete">Custom Timer Complete Statement</span>
</span>

And all that gets displayed is:
Count-Down to whatever... Count Down

If I do a view source on the page, this is what is there on the page where the count down should be:

<div class="content">
<b>Count-Down to whatever...</b> 
<span class="countdowntimer">Count Down  <span style="display: none" name="datetime"> 2008-02-26T09:30:00 </span>
  <span style="display: none" name="tz_hours">-8</span>
  <span style="display: none" name="dir">down</span> 
  <span style="display: none" name="format_txt"><i>(%dow% %moy%%day%)</i><br />%days% days + %hours%:%mins%:%secs%</span>
  <span style="display: none" name="threshold">4</span> 
  <span style="display: none" name="complete">Custom Timer Complete Statement</span>
</span>
<br class="clear" /><br class="giImageBlock-clear-both" />
</div>

This line is in the page when I view the source.

<script type="text/javascript" src="/index.php?q=countdowntimer/timerjs"></script>

The error I get in the Java Error console is:

Error: document.getElementById(spanid) has no properties
Source File: http://www.pittsfordcc.org/index.php?q=countdowntimer/timerjs
Line: 75

The Readme.txt file indicates that the global settings are located at /admin/settings/countdowntimer, but there is nothing there.

What is missing / wrong?

Comments

jvandervort’s picture

The 4.7 version uses only the legacy format.
Check out the readme.txt that comes with that version.
The tags should look something like this:

-------------- LEGACY FORMAT ---------------------------------------
Will not be supported in the Drupal 6.x release

2007
2007-10
2007-10-15 20
2007-10-15 20:30
2007-10-15 20:30:00
2007-10-15 20:30:00 -8
2007-10-15 20:30:00 -8 1

Defaults will be used if you don't fill in all of the fields.
You cannot skip arguements to get to the ones farther to the right.
Example: 2007-10-15 20 -8 does not work.

-------------- OTHER EXAMPLES --------------------------------------

Example (Legacy Format, with manually loaded js)
NOTE: if you don't have clean urls turned on, try drupal_add_js('q=countdowntimer/timerjs');

<?php 
drupal_add_js('countdowntimer/timerjs');
?>
<b>Countdown to whatever...</b>
<span class="countdowntimer">2007-10-7</span>

Example (Legacy Format, for nodes, no need for the drupal_add_js)

<b>Countdown to whatever...</b>
<span class="countdowntimer">2007-10-15 20:30:00 -8</span>
jvandervort’s picture

Status: Active » Closed (fixed)