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:
  #1  
Old March 27th, 2002, 01:31 AM
GFB GFB is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 GFB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old March 27th, 2002, 06:39 AM
Matt Matt is offline
Contributing User
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 12 m 16 sec
Reputation Power: 7
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 . Life has just been real busy...a new baby, installing all new database servers at work, and everything else...heh. Anyway, let me know where you are using it at (if you don't want to post it here, send me an email), I just like to see it in action


Reply With Quote
  #3  
Old April 1st, 2002, 06:51 PM
GFB GFB is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 GFB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!


Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > Love the Calendar


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek