Calendar 0.3

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

Calendar 0.3

Post by Akrabat »

I've just put up Calendar 0.3 on the wiki.

Changes:
* Initial support for “From” and “To” dates for events.
* Ability to filter admin list of events by category.

Note that if you upgrade from 0.2 or 0.1, it should update the database correctly, but it might not!

Todo:
* Work out a way of displaying more than just the start date for multiple date events in the calendar view.

Items requested (so I don't forget!):
* Category display in list view.
* Make localisation easier.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Calendar 0.3

Post by Greg »

No problems with the database upgrade from .2 to .3 on 4 websites !
Works great.
Greg
jorj

Calendar 0.3

Post by jorj »

Thank you for this excellent calendar module.

I have tried both 0.2 and 0.3 but I can't get it to link dates on the calendar to events. If I set summaries to "true" I get a single bulleted reference to the latest entry which then breaks the calendar layout.

What should I do?

Thanks
Akrabat

Re: Calendar 0.3

Post by Akrabat »

jorj wrote:Thank you for this excellent calendar module.

I have tried both 0.2 and 0.3 but I can't get it to link dates on the calendar to events. If I set summaries to "true" I get a single bulleted reference to the latest entry which then breaks the calendar layout.

What should I do?

Thanks
You need to apply some CSS styles to the calendar. There's a "table_id" option to make this easier.

See this post and this one for example styles.

I'm not sure why you only get a single entry. You should get a bulleted entry for each event in that month.
Krol

Calendar 0.3

Post by Krol »

hi!

first of all thank you for this essential module!
but I have a little problem:
I put

Code: Select all

setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de-DE', 'de', 'ge', 'de_DE.ISO_8859-1', 'German');
into Calendar.function.php to have the days and months in german language. But insteat of e.g. "März" i'm getting "M?rz".
How do I force Calendar not to make the "ä" into "?".
Krol

Calendar 0.3

Post by Krol »

Thank you Patricia!
It solved my problem!
mrbs

Re: Calendar 0.3

Post by mrbs »

I am still pretty new here...

How do you install this module? I am using cmsms 0.8.2

Mads
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Calendar 0.3

Post by Ted »

Calendar is 0.9+ only
MoonMind
Forum Members
Forum Members
Posts: 26
Joined: Wed Feb 23, 2005 6:49 am

Re: Calendar 0.3

Post by MoonMind »

Here I go again - seems that I'm just there to wish for changes or functions - hope you don't get fed up with this...

I really like Calendar (at least when it's set to "list" mode - I'll explain later why), but run into some problems that could surely be solved if I knew more about PHP, but since most people (not most people on this forum, but others) don't, you might consider helping with some issues by adding options to the interface:
  • Are there localizations - or do you have an idea how or where I can get the means to add them? I might be able to work arount this problem, but only if I know for sure that I have to...
  • How about a possibility to change the list's header's appearence? I'd like to have a "Month(name) Year" header for a section - a month, that is (and I need this in German to really use it, but that's a different story); now the date is displayed the same way the events are, which is kind of confusing (since I set this to "%d.%m.%Y" or "d%.%m.%Y %H:%M, respectively - but a month doesn't really consist of its first day, which in my eyes is suggested by the way it's displayed now). For the events the way they're displayed now is find - so I'm stuck if I don't want to mess with the code. But I'm aware that this would be a general setting for the whole Calendar, so there might be the need for an extra "Preferences" section in the admin panel.
  • And finally, here's why I like list mode better then calendar mode: If you don't have an event each day (or at least on any day of at least one week of a month), it gets terribly distorted when displayed. This might be a browser issue, though (I'm using Firefox 1.0), or solveable via CSS - let me know if this is the case.
Okay, I hope you don't think this is a rant - it isn't, I like what I see - enough to want to be able to really use it, in fact. But I need at least the first two issues solved or handled before I can (the second being decisive - because if solved, it would allow to work around the first).
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Re: Calendar 0.3

Post by Greg »

Is there a way to use clean urls (.shtml) with  calendar .3 ?
Greg
Akrabat

Re: Calendar 0.3

Post by Akrabat »

Moonmind:

Try http://forum.cmsmadesimple.org/index.ph ... ml#msg2703 or http://forum.cmsmadesimple.org/index.ph ... ml#msg2710 for examples of CSS use with the calendar view to make it look good. Also http://www.akrabat.com/testbed/index.php?page=Calendar shows an example in use.

Date format can be selected in the{cms_module} tag. Check the Help for the attribute used. I'll have a look at adding another one for the section header. Certainly having the day in the headline doesn't make sense :)

Module localisation is on the wishy's todo list as far as I know. If it isn't, I'll try and have a look at it in a couple of weeks. The main calendar month names are supposed to be picked up from the locale set for the webserver.


Greg: I haven't looked at clean urls. Will find out what can be done.
MoonMind
Forum Members
Forum Members
Posts: 26
Joined: Wed Feb 23, 2005 6:49 am

Re: Calendar 0.3

Post by MoonMind »

Thanks for the tips - I realise that I had not really grapped the CSS handling of the CMS - it's a nice side effect that I've had a look at this finally (I was working with templates directly up to now).

If what you say about the months' names is true, I'm somewhat stuck - if they set up the webserver here in english, I'll have to find another way of getting my german set. But if you add a way to format section (month) headers, I'll be able to work around - so that'd be great.
Krol

Re: Calendar 0.3

Post by Krol »

Moonmind:

I solved this by adding

Code: Select all

setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de-DE', 'de', 'ge', 'de_DE.ISO_8859-1', 'German');
in line 20 of Calendar.module.php
I don't know which one of these definitions does it's job, but I have my months and days auf deutsch now :)
MoonMind
Forum Members
Forum Members
Posts: 26
Joined: Wed Feb 23, 2005 6:49 am

Re: Calendar 0.3

Post by MoonMind »

thx for the tip - will try that asap.
jah
Forum Members
Forum Members
Posts: 147
Joined: Thu Dec 30, 2004 9:09 am
Location: Norway

Re: Calendar 0.3

Post by jah »

A small question about styling:

In the lists both to and from date are included by default. In most cases I would not care about the to- date. I found that it is possible to sett to-date=from date to suppress the to-date in the lists.

For the user this is not so easy to remember. It would be better to suppress this by applying appropriate tags:

When I look at the resulting HTML I see this:

Code: Select all

<div class='calendar-date-from'><span class='calendar-date-title'>Date: </span>10/mar/2005 08:30 to 10/mar/2005 12:30</div>
Could it be split in a 'calendar-date-from' and a 'calendar-date-to' ?
Locked

Return to “Modules/Add-Ons”