Calendar 0.2! (was 0.1)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
esmann

Calendar 0.2! (was 0.1)

Post by esmann »

Try settings summaries='true'. The table_id is solely so you can write CSS rules that apply to that one particular calendar.
Nothing happens. Still the small calendar.

If I make a event, the event discription is shown in the middle of the small calendar and messes the calendar view totally up.
Akrabat

Calendar 0.2! (was 0.1)

Post by Akrabat »

The style rules for my testbed page are:

Code: Select all

/* make all links red */
.calendar tr td a
{
color: red;
}

/* highlight "today" for the small calendar */
.calendar-today
{
font-weight: bold;
}

/* display the "upcominglist" as one line per entry */
#cal-upcominglist .calendar-date-title 
,#cal-upcominglist .calendar-summary-title
{
display: none;
}

#cal-upcominglist h2
,#cal-upcominglist .calendar-date
,#cal-upcominglist .calendar-summary
{
display: inline;
margin-right: 5px;
}

/* tidy up text sizes for lists */
#cal-list h1, #cal-upcominglist h1
{
color: red;
font-size: 120%;
}
#cal-list h2, cal-upcominglist h2
{
font-size: 110%;
}

/** large calendar rules **/
/* border on for #big */
#big{
margin: 0px;
border-collapse:    collapse;
border: 1px solid black;
}

/* nice squares for the #big table */
#big th
{
border: 1px solid black;
padding: 3px;
width: 75px;
}

#big td {
border: 1px solid black;
vertical-align: top;
padding: 3px;
height: 75px;
width: 75px;
}

/* format summaries nicely in #big */
#big ul
{
margin: 0px;
padding: 0px;
padding-left: 5px;
}

#big li
{
list-style-type: none;
padding: 0px;
margin: 0px;
}

/* background colours for #big */
#big td
{
background-color: silver;
}

#big .calendar-day
{
background-color: #80ff80;
}

#big .calendar-today
{
font-weight: normal;
background-color: #8080ff;
}

[/code]
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Calendar 0.2! (was 0.1)

Post by Greg »

Another variation just for the Calendar: (Hope you like green :wink: )

Code: Select all

#big {
width: 98%; 
border: 4px double #161; 
margin: auto
}
#big .calendar-prev {
font-size: 1.6em;
} 
#big .calendar-month {
font-weight: bold;
}
#big .calendar-next {
font-size: 1.6em;
}
#big .calendar-day {
width:14%; 									
border: 1px solid #ddd;
margin:0;
padding: 4px;
background-color: #efe;
}
#big th {
border-bottom: 2px double #999;
color: #393;
}
#big tr {
vertical-align: top;
}
#big ul {
margin: 1px;
padding: 0;
list-style: none
}
#big a, #big a:visited {
font-size: .8em;
color: blue;
}
Greg
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Calendar 0.2! (was 0.1)

Post by Ted »

I need to modify the rewrite rules to allow for parameters after an .shtml. In theory, it should be possible, but it's going to make me a little bit to figure it all out.
Akrabat

Calendar 0.2! (was 0.1)

Post by Akrabat »

Patricia wrote:what should I remove in the code in order than when we reach the page again, it resets to current month?
Will stick a new param in this evening.

Edit: In SVN now. New parameter: use_session (true/false).
esmann

Calendar 0.2! (was 0.1)

Post by esmann »

Big thanks to Akrabat and Greg.

Now my calendarworks pretty fine :P
esmann

Calendar 0.2! (was 0.1)

Post by esmann »

UPS! :oops:

I'm so sorry. The only thing I did was complaining about things that I could not get to work.

I totally forgot to tell that the calendar module is a great piece of work and very usefull.

Thanks to Akrabat for the fine module and all the help :wink:


_______________

- Jimmy
Akrabat

Calendar 0.2! (was 0.1)

Post by Akrabat »

esmann wrote:I'm so sorry. The only thing I did was complaining about things that I could not get to work.
*laugh*

Without feedback, I can't improve it. Bugs were expected :)

I'm glad you like the module though!
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Calendar 0.2! (was 0.1)

Post by Greg »

Small bug. If I use table_id="green" parameter with display="list" or display="upcominglist" I get two divs with an id of green

Code: Select all

<div id='green'><h1>01/Feb/2005</h1>
<div class='calendar-event' id='green'>
Request: on the Manage Events Screen, I like the way the categories are separated in the bookmarks module. Could this be done for the calendar module as well?
Greg
pinthenet

Calendar 0.2! (was 0.1)

Post by pinthenet »

There are a couple of things from Patricia's Events module that would be useful in the Calendar module, especially the idea of From and To dates. I need to maintain events that cover 2 or 3 days - being able to define a To is very useful.

The events module seems to offer some more options for display (eg include Category), which I've not found in Calendar yet.

One odd thing in Calendar (perhaps I'm doing something wrong) - I set up 4 items with dates in March, April & May 2005. I can't work out what the sort order is - sometimes the April event is shown last..

Finally :roll: I am working on a site that is in German. I see where I can change field names such as Date: etc in the module, but that's not very upgrade-friendly - are there alternatives (foreseen).

That's really all for now :wink:

Thanks
John
100rk

Input fileds for date and time

Post by 100rk »

Akrabat

Calendar 0.2! (was 0.1)

Post by Akrabat »

I will see what I can do over the next few days for the feature requests.

We don't have a module language translation system in place yet, but maybe I can make it easier for calendar as there are so few words hard coded in the output. Incidentally, does it correctly get the month names in your language as that's supposed to happen based on the locale of the websever.
pinthenet

Calendar 0.2! (was 0.1)

Post by pinthenet »

Aha, that answers another question. As I'm working with English settings I can't say yet. I'll try at home with a German setup.

One thing I didn't mention before - I'm mainly interested in the 'upcominglist' display format at present - there aren't so many events over the year so that way I can show everything on one page.
As an exercise in learning PHP I've hacked in a few changes to get the desired effect(s) - eg date_to field in the table, To date shown if not the same as the start date, but I don't really want to go much further in that direction.

Rgds
John
Akrabat

Calendar 0.2! (was 0.1)

Post by Akrabat »

pinthenet wrote:One odd thing in Calendar (perhaps I'm doing something wrong) - I set up 4 items with dates in March, April & May 2005. I can't work out what the sort order is - sometimes the April event is shown last..
I can't reproduce this one. Can you give me the list of dates of the events you are using and also the cms_module line you are using?
Locked

Return to “Modules/Add-Ons”