Thursday 09 February 2006 3:06:26 pm - 31 replies
Hi,
Instead of displaying "This month" for each month (on the right of the calendar), wouldn't be better to display le name of the month or "March events" for example ?
Maybe, the same thing could be done with "This day" which could be replaced by the selected day.
It's just a suggestion.
Regards
Pascal
Friday 17 March 2006 5:30:08 pm
I did the same findings yesterday.
And checked to be sure that $days actually where 31 on this line:
$last_ts=makedate($temp_month, $days, $temp_year)
And while writing this I realize that this is the error in its self
$last_ts now equals 31.03.2005 00:00, witch equals 30.03.2005 24:00.
So like this after $loop_count = 0, will fix it:
}
{if ne($temp_month, 12)}
{set $last_ts=makedate($temp_month|sum( 1 ), 1, $temp_year)}
{else}
{set $last_ts=makedate(1, 1, $temp_year|sum(1))}
{/if}
{ def
Modified on Friday 17 March 2006 5:38:02 pm by André R
Saturday 18 March 2006 2:34:32 am
I could, but there are a number of reasons why I didn't.
*my event class is called aktivitet and all the other properties is also in Norwegian
*it is meant to be educational as well, for the newcomers. I know I would love it if there where more example code when I started with ez
*I have never made packages before
But I'll have to convert my templates to English someday anyway (So I don't have to manage 2 versions of the same templates), so I'll going to add this sometime..
In the mean time, is there something that could be better / clearer in the readme?
Modified on Saturday 18 March 2006 2:35:31 am by André R
Saturday 18 March 2006 4:54:27 pm
*my event class is called aktivitet and all the other properties is also in Norwegian
Fair enough. However, your templates are in english, aren't they ?
*it is meant to be educational as well, for the newcomers. I know I would love it if there where more example code when I started with ez
And that's a good start indeed. I've learnt quite a few things by looking at others' templates.
*I have never made packages before
That's really simple. Have a look, it takes about 2 minutes to create a package that contains the class definition. You can also create a template with some content examples, and it would allow to directly install the override templates without having to change the override.ini.append by hand (this usualy doesn't work if you use different languages).
Anyway, thanks for sharing!
X+
Saturday 01 April 2006 9:27:16 pm
Hi,
I just recently installed the Agenda 2 calendar on my site (abeaconinclay.org). The calendar shows up in the Events folder, but when I post an event it does not link to the calendar. The event does however show up in the right toolbar. I have an event called "Workday" as an example. Does anyone have some ideas on what I did wrong? Thanks.
Mike
Wednesday 05 April 2006 4:35:14 pm
I see you got it right eventually?
The templates are made so that you have to post the events in the same folder as you have the override (event folder).
It could be modified to include all published events, but personally I never needed that.
Wednesday 08 November 2006 10:17:13 pm
Hi André,
I've used your agenda2 contribution to create an extension I've called ptagenda.
I changed the templates a bit (and fixed small bugs), but basically it is your agenda into an extension, with images in the listing of events, effects on the mini-calendar, translation ready. It includes icons from kde for 2 classes: agenda and event. So it doesn't use a folder to keep events, but a class agenda. There is a package included to create these 2 classes.
Thanks for your code.
People can have it here
http://ez.no/community/contribs/applications/ptagenda
Patrice
You must be logged in to post messages in this topic!