1 of 2 < >


New user registrations are verified at least once per day. Thank you for your patience.
2 of 2 < >

Your Assistance Please

We need your help to battle spammers and also to keep our community user friendly.
PLEASE BE KIND TO OTHERS - Refrain from personal attacks. Avoid politics and harsh language whenever possible. If someone is violating our simple rules, DO NOT confront them, simply report the post.
STOP SPAMMERS - Report the post. DO NOT respond to them.

2017 is a year of renewal for us, we have lots of exciting changes on the way for you, but we don't have time to deal with trolls and spammers. If you find yourself suspended and need to plead your case, you will need to do so after your suspension. We are happy to address your concerns if you made a simple mistake. However, please note that those with a history of bad behavior and pushing our rules to the limit will not be given the courtesy of a reply.

MiceChat offers a number of ways for you to communicate and get involved. We offer Facebook Groups and Pages, Twitter, Instagram and Pinterest accounts. We have a front page filled with amazing content. We offer weekly meetups in the parks. Meets and events all over the world. Podcasts and videos. And we continue to maintain forums for your posting convenience. But with all those options, we can't be everywhere all the time. We need YOUR help. Please don't poke the trolls. Report posts and leave reputation. We'll do our best to keep the forums clean and active, but we can't do so without your help.

Thank you for your support folks, it's going to be a really fantastic year in the MiceChat world.
See more
See less

MiceChat Countdown Feature


Ad Widget

This topic is closed.
  • Filter
  • Time
  • Show
Clear All
new posts

  • MiceChat Countdown Feature

    There's been some talk about a countdown feature, which will be coming "soon", and so I had a suggestion, for the script that is:

    HTML Code:
    //change the text below to reflect your own,
    var current=0
    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)
    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)
    else if (difference>0)
    //enter the count down date using the format year/month/day
    This script would display the number of days only. The idea is that when you have the start tag (say, [countdown]) that would be everything up until "countdown(" you would then enter your date, (eg. 2005,5,5) and then the closing tag ([/countdown] would be the ")" and the </script>

    Set as mentioned above, the script would produce the following result:


    therefore, you would simply write:

    It's only [countdown]2005,5,5[/countdown] days until May 5!

    which would display as:

    It's only 29 days until May 5!

    and it would update itself every day. On the day in question, the script would display "0".

    This script, by the way, is a modified version of a script from the Javascript Kit.

    I'm not sure if it would work, I'm pretty sure it will, I read the FAQ on the vBulletin site to try to get a better undertstanding of how the vB scripts work, and I think this should work. I guess the admins can play around with it. Or maybe they've already been working on something. Anyway, hope this helps.
    Last edited by Club 33; 04-06-2005, 10:13 AM.

Ad Widget