Plugin Countdown
Following the success of the Dutch Soccerteam at the World Cup in South Africa and one question in the forum earlier this year, where I was asked the following question: "Well I'd really like to know something, because I am with a giant dilemma. I'm a huge fan of winter sports. Now I would like after the winter games in Vancouver make a countdown that counts down to the Winter Games in Sochi (Russia) in 2014. .... But perhaps you understand already ... that lasts more than 4 years. And if I make a countdown but then he gives up to 999 days while that there are now over 1450. You perhaps know if and how this can be solved. " I decided that these simple instructions to adapt on the website.
Because of the many football fans in Netherlands and Belgium I opted on the website for the World Cup of 2014 in Brazil. On what date the 2014 World Cup in Brazil exactly will start I could find yet, but I went out around the same date as this year in South Africa. Then we would come on June 6, 2014. The whole might look like below.
It takes ....
Before the World Cup Football in Brasil starts
The original script counts maximum up to 999 days. This is simple to solve but BEWARE, you now need to adapt a NON-CCML script. So be very careful. Change to the directory of Web to Date 7,Web to Date 6.0, web to date (if you use Web to Date 5.0) under Program Files. Then choose the Plugins folder. (You DO NOT open more folders!) Now scroll down until you come to a file that is called W2DPluginCountDown.inc That picture does not come as a scrapbook, but it is a kind of notepad with horizontal lines. If you do your mouse over it you can see Type: INC file (among other thing). Open this file with notepad. There you see at the top of this script:
Code
<table cellpadding="0" cellspacing="0" border="0" align="center" id="cdtimer">
<tr>
<cc:if cond="dhms">
<td><img src="<cc:param name="design">hl.gif" border="0" alt="" height="42" width="10"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitd3"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitd2"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitd1"></td>
<td><img src="<cc:param name="design">hdm.gif" border="0" alt="" height="42" width="32" name="digithd"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digith2"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digith1"></td>
<td><img src="<cc:param name="design">hh.gif" border="0" alt="" height="42" width="32" ></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitm2"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitm1"></td>
<td><img src="<cc:param name="design">hm.gif" border="0" alt="" height="42" width="32" ></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digits2"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digits1"></td>
<td><img src="<cc:param name="design">hs.gif" border="0" alt="" height="42" width="32" ></td>
<td><img src="<cc:param name="design">hr.gif" border="0" alt="" height="42" width="10" ></td>
</cc:if>
Add immidiately under this line:
<cc:if cond="dhms">
<td><img src="<cc:param name="design">hl.gif" border="0" alt="" height="42" width="10"></td>
this line:
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitd4"></td>
So the upper part of the script looks exactly like the code below:
Code
<table cellpadding="0" cellspacing="0" border="0" align="center" id="cdtimer">
<tr>
<cc:if cond="dhms">
<td><img src="<cc:param name="design">hl.gif" border="0" alt="" height="42" width="10"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitd4"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitd3"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitd2"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitd1"></td>
<td><img src="<cc:param name="design">hdm.gif" border="0" alt="" height="42" width="32" name="digithd"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digith2"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digith1"></td>
<td><img src="<cc:param name="design">hh.gif" border="0" alt="" height="42" width="32" ></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitm2"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digitm1"></td>
<td><img src="<cc:param name="design">hm.gif" border="0" alt="" height="42" width="32" ></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digits2"></td>
<td><img src="<cc:param name="design">sp.gif" border="0" alt="" height="42" width="32" name="digits1"></td>
<td><img src="<cc:param name="design">hs.gif" border="0" alt="" height="42" width="32" ></td>
<td><img src="<cc:param name="design">hr.gif" border="0" alt="" height="42" width="10" ></td>
</cc:if>
Now you can save the file W2DPluginCountDown.inc (NOT SAVE AS). If you choose the plugin Count Down in Web to Date you now will be able to count more than 999 days.