Welcome Guest [Log In] [Register]

Breaking News

Dear Members and Guests,
Due to a deficiency of zetaboards not being able to meet the needs of our growing gaming community the DLC Crew forum now has a new home. This legacy board will remain here permanently as a historical reference only, it will not be maintained or moderatored so please make your way to the new website and enjoy the new and exciting features it has to offer!

Click here to go to the new DLC Crew Home!
Welcome to The DLC Crew. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Once you join if you want to be part of the crew and gain access to the crew section for the Leaderboard matches, please send a Personal Message to Snake


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
Forums Issues
Topic Started: Jun 16 2010, 11:59 AM (1,267 Views)
Snake
Member Avatar
Administrator
[ *  *  *  *  * ]
Ok guys & Girls I've disabled the script for the countdowns at the moment to see if it speeds up the loading of the forums. Let me know if the loading is ok now or still slow
Posted ImagePosted Image
Offline Profile Quote Post Goto Top
 
skaterguy845
Member Avatar
Stealth Dark Elf
[ *  *  *  *  * ]
much faster now, almost instant loading for me :D
Posted Image
Offline Profile Quote Post Goto Top
 
Toddski
Member Avatar
The Buttmaster 9000
[ *  *  *  * ]
Oh yeah, I forgot about that...my bad!

▂▅▇█▓▒░◕‿‿◕░▒▓█▇▅▂

Posted ImagePosted Image
Offline Profile Quote Post Goto Top
 
bigpav53
Member Avatar
360 NOOB PS3 LORD
[ *  *  * ]
much quicker, good stuff Snake
Posted Image

Posted Image
Offline Profile Quote Post Goto Top
 
Snake
Member Avatar
Administrator
[ *  *  *  *  * ]
Toddski
Jan 26 2012, 10:00 AM
Oh yeah, I forgot about that...my bad!
Hey toddski if you want to email or pm me the script or code for it I'll try to host it on the forums site so it should affect loading
Posted ImagePosted Image
Offline Profile Quote Post Goto Top
 
Toddski
Member Avatar
The Buttmaster 9000
[ *  *  *  * ]
Code:
 
countdownEvent("<a href=\"http://www.rawdlc.com/live/\">DLC Live Show</a>", 2, 20, 0, 21, 30);
document.write("<br />");
countdownEvent("<a href=\"http://geekactually.com/live/\">Geek Actually Live Show</a>", 6, 12, 0, 14, 00);

function countdownEvent(eventName, weeklyDay, weeklyHourStart, weeklyMinuteStart, weeklyHourEnd, weeklyMinuteEnd){

date = new Date();
timeZone = -date.getTimezoneOffset()/60;
if(timeZone != 10){
timeZoneAdjustment = 10 - timeZone;
date.setHours(date.getHours() + timeZoneAdjustment);
}
targetDate = new Date();

targetDate.setDate(date.getDate() + numberOfDaysUntil(weeklyDay));
targetDate.setHours(weeklyHourStart);
targetDate.setMinutes(weeklyMinuteStart);
targetDate.setSeconds(0);
targetDate.setMilliseconds(0);

targetDateEnd = new Date(targetDate);
targetDateEnd.setHours(weeklyHourEnd);
targetDateEnd.setMinutes(weeklyMinuteEnd);if(numberOfDaysUntil(weeklyDay) == 0 && date > targetDateEnd){
targetDate.setDate(targetDate.getDate() + 7);}if(date >= targetDate && date <= targetDateEnd){
document.write(eventName + " is live right now!");
}else{
x = new Number(targetDate-date);
x = x / 1000;
secondsUntil = x % 60;
x /= 60;
minutesUntil = x % 60;
x /= 60;
hoursUntil = x % 24;
x /= 24;
daysUntil = x;

daysUntil = Math.floor(daysUntil);
hoursUntil = Math.floor(hoursUntil);
minutesUntil = Math.floor(minutesUntil);
secondsUntil = Math.floor(secondsUntil);

document.write(daysUntil + " days " + hoursUntil + " hours " + minutesUntil + " minutes until " + eventName);
}
}

function numberOfDaysUntil(dayOfWeek){
currentDay = Number(date.getDay());
returnResult = dayOfWeek-currentDay;
if(returnResult < 0){
returnResult = returnResult + 7;
}
return returnResult;
}


B)

▂▅▇█▓▒░◕‿‿◕░▒▓█▇▅▂

Posted ImagePosted Image
Offline Profile Quote Post Goto Top
 
Snake
Member Avatar
Administrator
[ *  *  *  *  * ]
Thanks Mate. ok Guys I've put the timers back on. Let me know if the issue of loading becomes slow again. They are hosted by the forum site so I think it should be ok.
Posted ImagePosted Image
Offline Profile Quote Post Goto Top
 
PSIress
Member Avatar
co-founder
[ *  *  *  *  *  * ]
so far so good
Offline Profile Quote Post Goto Top
 
skaterguy845
Member Avatar
Stealth Dark Elf
[ *  *  *  *  * ]
yeah, everythings good man
Posted Image
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Forums · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2

OpenDrive