|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
|||
|
|||
|
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...
|
|
#3
|
|||
|
|||
|
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! |
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
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. |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > Calendar sugestion |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|