ltwCalendar
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsProjectsltwCalendar

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 17th, 2002, 08:46 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Calendar sugestion

This is a great calendar. Iw woudl be nice to be able to have open ended times aswell as events which have no time. Like a holiday or somthing.

Reply With Quote
  #2  
Old July 17th, 2002, 01:58 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: mysql?

This is a feature that alot of people have asked for. It really is going to to take a decent overhaul of the system (I never designed it with that in mind). I do plan to basically recode the whole thing and all tons of new features soon. So, I will make sure this happens on the recode...

Reply With Quote
  #3  
Old July 30th, 2002, 06:26 AM
chiller77 chiller77 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 chiller77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Calendar sugestion

If you have events with no time in particular, there is a very easy fix for this.
Look at ltw_classes.php and replace all instances of
echo $start_time . " - " . $end_time . "<br>n";
with
if($start_time != "1:00 AM" && $end_time != "1:00 AM") {
echo $start_time . " - " . $end_time . "<br>n";
}

Sorry that's kind of clumped up due to the lack up space. But basically if you leave the time set from 1:00 AM to 1:00 AM, by changing these lines it will remove the time altogether!

Reply With Quote
  #4  
Old July 30th, 2002, 06:31 AM
chiller77 chiller77 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 chiller77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Calendar sugestion

One more thing, I seem to be having some problems with this fix if you actually have something starting within the 1:00 AM hour. Perhaps someone could find out why that is.

Reply With Quote
  #5  
Old July 30th, 2002, 07:29 AM
chiller77 chiller77 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 chiller77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Calendar sugestion

One final thing (I mean it this time) and then I'll shut up. To fix the problem with having no end times, you can also change a few things fairly easily. Basically, you want to be able to set the first time and leave the end time at 1:00 AM, so if the first time is not 1:00 AM, but the end time is, it will only print the start time. First, fix the "Bad Times" error in calendar.php so that you have:
if($end2 < $start2 && $end != '1:0AM') { echo "Bad Times";
break;
}
Then in ltw_classes.php, add on to the previous fix I mentioned so it has this:
if($start_time != '1:00 AM' && $end_time != '1:00 AM') {
echo $start_time . " - " . $end_time . "<br>n";
} else if($end_time == '1:00 AM' && $start_time != '1:00 AM'){
echo $start_time . "<br>n";
}
Finally change this in ltw_classes.php:
if('AM' == date("A",mktime($timearray[0],$timearray[1],0,$datearray[1],1,2001))) {
echo "<OPTION VALUE="AM" SELECTED>AM</OPTION>n";
} else {
echo "<OPTION VALUE="PM">PM</OPTION>n";
}
to this:
if('AM' == date("A",mktime($timearray[0],$timearray[1],0,$datearray[1],1,2001))) {
echo "<OPTION VALUE="AM" SELECTED>AM</OPTION>n";
} else {
echo "<OPTION VALUE="AM">AM</OPTION>n";
}
Once again, you'll only come up with problems if you have something starting within the 1:00 AM hour. otherwise it works great!

Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > Calendar sugestion


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway