Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2009
    Location
    North Bendigo, VIC, Australia
    Posts
    158
    Plugin Contributions
    0

    Default Countdown Sidebox Help please

    I have the Editable Sidebox installed.
    I installed the Countdown Sidebox with Image but for some reason I can not get the "83 days to Christmas" etc.... (I assume there is supposed to be text showing the countdown).

    It replaces the file from Editable Sidebox located here:
    includes/languages/english/html_includes/YOUR_TEMPLATE_NAME/define_editable_sidebox_content.php

    I have the new image etc and I have adjusted the date.
    Can someone please help me as to why this in not working?
    Thank-you in advance
    Casey
    website

  2. #2
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: Countdown Sidebox Help please

    Perhaps you should use the support thread for this mod or contact the author.

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Countdown Sidebox Help please

    I just installed this on a test site and it works for me. You might post the contents of that file ( define_editable_sidebox_content.php) here - we might spot something.

  4. #4
    Join Date
    Nov 2009
    Location
    North Bendigo, VIC, Australia
    Posts
    158
    Plugin Contributions
    0

    Default Re: Countdown Sidebox Help please

    Quote Originally Posted by stevesh View Post
    I just installed this on a test site and it works for me. You might post the contents of that file ( define_editable_sidebox_content.php) here - we might spot something.
    <html>

    <head>
    <title>No title</title>
    <meta name="generator" content="Namo WebEditor v5.0">
    </head>

    <body><center>
    <!Change gif name on next line to match holiday -->
    <img src="images/K6.png" width="177" height="258" border="0" alt=""></center><br>
    <!-- EDIT BELOW THIS LINE -->
    <script type="text/javascript">
    /*
    Count down until any date script-
    By JavaScript Kit (www.javascriptkit.com)
    Over 200+ free scripts here!
    */


    /*change the text below to reflect holiday,*/
    var before="Christmas!"
    var current="Today is Christmas!"
    var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

    function countdown(yr,m,d){
    var today=new Date()
    var todayy=today.getYear()
    if (todayy < 1000)
    todayy+=1900
    var todaym=today.getMonth()
    var todayd=today.getDate()
    var todaystring=montharray[todaym]+" "+todayd+", "+todayy
    var futurestring=montharray[m-1]+" "+d+", "+yr
    var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1)
    if (difference==0)
    document.write(current)
    else if (difference>0)
    document.write("Only "+difference+" days until "+before)
    }
    //enter the count down date on next line using the format year/month/day
    countdown(2011,12,25)
    </script>
    </body>

    </html>
    I got it working but now I need it to show as Australian Date (DD/MM/YYYY)
    I can't seem to get it to happen.
    Can you please help?

    Thanks in advance
    Casey

  5. #5
    Join Date
    Nov 2009
    Location
    North Bendigo, VIC, Australia
    Posts
    158
    Plugin Contributions
    0

    Default Re: Countdown Sidebox Help please

    Any suggestions please on the correct way to change this to Australian Date?
    Thanks in advance
    Casey

  6. #6
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: Countdown Sidebox Help please

    Quote Originally Posted by integrity_designs View Post
    Any suggestions please on the correct way to change this to Australian Date?
    Thanks in advance
    Casey
    I see your whole site uses the default us date format, instructions to change are here
    https://www.zen-cart.com/tutorials/i...hp?article=401
    What ever your doing remember to KISS ( Keep It Simple Stupid )

 

 

Similar Threads

  1. Blank Sidebox Help Please!
    By jbnyc in forum Addon Sideboxes
    Replies: 2
    Last Post: 9 Nov 2011, 10:24 PM
  2. Sidebox customization help please
    By integrity_designs in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Apr 2010, 06:00 PM
  3. Please anybody please help with Scrolling Sidebox Mod. in IE8
    By hcd888 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Oct 2009, 03:42 AM
  4. Information sidebox please help
    By jaken1913 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 30 Jan 2009, 05:24 AM
  5. please help! sidebox problems
    By earthlyinfo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Sep 2008, 08:01 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR