"Next Show Countdown"

Discussion in 'Suggestions & Questions' started by Tzesi, Dec 28, 2011.

  1. Put this code on the header

    Code:
    <script type="text/javascript">
    //######################################################################################
    
    
    dateFuture1 = new Date(2011,11,29,21,0,0);
    
    
    
    //###################################
    //nothing beyond this point
    function GetCount(ddate,iid){
    
    	dateNow = new Date();	//grab current date
    	amount = ddate.getTime() - dateNow.getTime();	//calc milliseconds between dates
    	delete dateNow;
    
    	// if time is already past
    	if(amount < 0){
    		document.getElementById(iid).innerHTML="SmackDown is ON!";
    	}
    	// else date is still good
    	else{
    		days=0;hours=0;mins=0;secs=0;out="";
    
    		amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs
    
    		days=Math.floor(amount/86400);//days
    		amount=amount%86400;
    
    		hours=Math.floor(amount/3600);//hours
    		amount=amount%3600;
    
    		mins=Math.floor(amount/60);//minutes
    		amount=amount%60;
    
    		secs=Math.floor(amount);//seconds
    
    		out += days +" "+((days==1)?"day":"days")+", ";
    		out += hours +" "+((hours==1)?"hour":"hours")+", ";
    		out += mins +" "+((mins==1)?"min":"mins")+", ";
    		out += secs +" "+((secs==1)?"sec":"secs")+", ";
    		out = out.substr(0,out.length-2);
    		document.getElementById(iid).innerHTML=out;
    
    		setTimeout(function(){GetCount(ddate,iid)}, 1000);
    	}
    }
    
    window.onload=function(){
    	GetCount(dateFuture1, 'countbox1');
    	
    };
    </script>
    <div id="countbox1"></div>
    
    

    Dates might be slightly off.
    You will need to customize text color and size.
     
  2. Next PPV would be better imo, I assume most fans know that Smackdown is on at the same time every week.
     
  3. Thanks, but I think it will look ugly as just text. Might use it though to make a graphical clock counting downwards for example. Similar to the one on wwe.com with their PPV countdown. Also, debating whether to include SmackDown since it's taped, or just do RAW's/PPV's or even just PPV's.
     
  4. @"Crayo", I say just PPVs :)
     
  5. Code:
    @[Jonathan]
    That's how you tag! Lol.

    Yeah this will be a PPV count, but it'll be more "graphical" than this.
     
  6. @[Crayo] use the countdown clock from jerichos debut and make it for ppvs.
     
  7. Ah nice one. Forgot about that one. Would still need to get the graphic interface designed etc. Hoping we can do it in time.
     
  8. Sounds like a good idea, but yeah I would do it for just PPV's.
     
  9. I will be writing a new code.
    Wait for it :)
     
  10. Header is inappropriate too I think. A small ticker in the footer would be useful, but not invasive.
     
  11. That's where we'll probably put it. Or perhaps a side-bar, dunno how popular that one would be though.
     
  12. Side bar might take up too much space for smaller-screened users.
     
  13. I'm loving that look to be honest
     
  14. Is this still getting implemented? That picture drawn up looks really good, and it'll be a really handy feature to have.
     
  15. Yeah it will be, don't expect it right away. Some heavy development in more important things is happening at the moment :).
     
  16. I don't see any heavy development needed for a site this small.
     
  17. The plugins.
     
  18. I still don't see the heavy.

    MyBB Plugin developing was easy. Jammerx2 taught me how to do shit in 5 mins.
     
  19. Check the thread Anon made, wander if you could make those in 5 mins ;).