|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Love the Calendar
I use one of those bloated message forums you probably laugh at (WWWThreads), and have greatly modified it where I am handling many user functions, etc all through the user lists and access levels.
I found your calendar, and have since modified it to where it ties into the WWWThreads Message Forums. I can assign Moderators, and those moderators have add/delete functionality on the calendar script (thus bypassing the calendar login). All together I dig your script. One thing I have not had time to sit down and figure out... I have the calendar now setup on style sheets (again tied to the message forums). The background of the DAYS is set by this. What I would like to see, and am working on (just don't have it yet) is the CURRENT DAY on the calendar to appear a highlighted color (ie - pale yellow) compared to all other days. This way you can tell at a glance what day is today... I know this is an easy mod - just requires a call to check "today" - and say if (today) then "this color" else "normal"....but I don't have it coded yet. Just something to stick out here. Thanks for a helluva tool Matt. My users love it. |
|
#2
|
|||
|
|||
|
RE: Love the Calendar
Thanks for the kind words! I'm glad you found a use for it. Yes, I do plan to implement that exact feature. In fact, I meant to do it a long time ago
|
|
#3
|
|||
|
|||
|
RE: Love the Calendar
The calendar is actually locked against casual readers, and I must grant access to certain "groups" before the Calendar may be viewed. But if you are interested in seeing it - email me and I will send you the URL...
In terms of code to highlight the current day, here is the code: UNDER... function display() { $num_of_rows = ceil(($this->days_in_month + $this->first_day_of_month) / 7.0); $day = 1; ADD: $today = date ("d", time()); This gives you the day variable to call and compare... IN THE FOLLOWING CODE...MODIFY: for($i = 1; $i <= $num_of_rows; $i++) { echo "<TR>n"; for ($j = 0; $j < 7; $j++) { if(($i == 1 && $this->first_day_of_month <= $j) || ($i > 1 && $day <= $this->days_in_month)) { if($today == $day) { echo "<TD VALIGN="top" ALIGN="left" WIDTH="14%" class="curday">"; } else { echo "<TD VALIGN="top" ALIGN="left" WIDTH="14%" class="calendar">"; } Basically what this does is change the beginning of the table field if the day is $today. I have my version setup on cascading style sheets (hence the class=curday compared to class=calendar). All you would need to do is introduce a variable in the config for a CURRENT_DAY_COLOR and you are set. Holler at me if you would like! |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > Love the Calendar |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|