Welcome, Guest. Please login or register.
March 16, 2010, 04:30:44 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem Website Baker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite .
110108 Posts in 15906 Topics by 9274 Members
Latest Member: someWBUser
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Yet another event calendar
Pages: [1] 2 3 ... 5 Go Down Print
Author Topic: Yet another event calendar  (Read 35012 times)
keijok

Offline Offline

Posts: 17


« on: August 04, 2006, 09:42:56 AM »

Hi,

Here's yet another event calendar for you to use grin

For more info look here: http://keijok.kapsi.fi/tmp/websitebaker_modules/
« Last Edit: June 27, 2007, 07:31:22 AM by keijok » Logged
kweitzel
Forum administrator
*****
Online Online

Posts: 5550


WWW
« Reply #1 on: August 04, 2006, 10:18:30 AM »

seems quite nice, but in Firefox the flags break the design ... try putting them above the menu and not in the header.

If it is a stable release, please check with Ruebenwurzel or Woudloper for release in the add-on repository.

cheers

Klaus
Logged

http://www.weitzel.biz
PM has been disabled
ruebenwurzel
Leaders Team
*****
Offline Offline

Posts: 7211


Keep on Rockin


WWW
« Reply #2 on: August 04, 2006, 11:10:09 AM »

Yeaah,

looking very good, will test it tonight, and if there are no problems i add it to the addons repository

Matthias
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
marccouture

Offline Offline

Posts: 210



« Reply #3 on: August 04, 2006, 03:38:16 PM »

Wow, great stuff!  Adding events work great, and the public display is super.  Now, all I have to do is translate it in french. smiley

Only problem I have is displaying the small version of the calendar, copying the code as described on your web page:

<?php
   require_once( WB_PATH.'/modules/event_calendar/calendar.class.php' );
   $cal = new Calendar( $database, 'menu' );
   echo "".cal->writeCalendar();
?>

into my index.php file in the left-hand side menu kills the public display.  I changed the path to match my WB install location (under /wb/modules/event_calendar/calendar.class.php instead of the default), could that be a problem?


Thanks for your great work!!!
« Last Edit: August 04, 2006, 03:40:28 PM by marccouture » Logged

Marc C.
keijok

Offline Offline

Posts: 17


« Reply #4 on: August 04, 2006, 05:25:51 PM »

Wow, great stuff!  Adding events work great, and the public display is super.  Now, all I have to do is translate it in french. smiley
Great if you like it!

Only problem I have is displaying the small version of the calendar, copying the code as described on your web page:

<?php
   require_once( WB_PATH.'/modules/event_calendar/calendar.class.php' );
   $cal = new Calendar( $database, 'menu' );
   echo "".cal->writeCalendar();
?>

into my index.php file in the left-hand side menu kills the public display.  I changed the path to match my WB install location (under /wb/modules/event_calendar/calendar.class.php instead of the default), could that be a problem?

Thanks for your great work!!!
WB_PATH -variable should already poin to your /wb/ -directory I believe.
I'll include my index.php file here (renamed it to index.txt) so that you can see how I placed the code.
Logged
DGEC

Offline Offline

Posts: 382


WWW
« Reply #5 on: August 04, 2006, 10:20:44 PM »

This looks pretty good - seems a lot of solid work and configurablity in the CSS - and lots of documentation too!

You really should change the name though, as there is already an Event Calendar module! Confusing to pick off the Section type if you have both installed, and might conflict with something too.

There is one slight possible problem with security.
On my server at least, every time an event is added, the next (first) time the calendar runs again, there is an error displayed instead of the calendar. Fortunately, as you can see, the either the server or WB fixes it immediately. Subsequent page loads are fine. Something is off though. Here's the error
Code:
500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
--------------------------------------------------------------------------------
URL: http://www.ebeltech.com/wb/pages/mycal.php
Dangerously writable: [/home/ebeltech/public_html/wb/pages/mycal.php]
FIXED

You said that people have to be 'administrators' to get to add pages. But be if you create a "event editor" group, any users you want to be able to modify the can be added to the "event editor" group and then can see the page menu and go to the event calendar page - and only there if that's their only group -

Some things I'd like to be able to do:
* Sort events by date on the admin page
- change the current month link on top left to "TODAY" to make it more obvious. Maybe a button even.
* pop-up mini calendar to pick dates - I've seen js tools for that.
- validate start <= end date & time
- somebody make some CSS that gives a single line like a printed calendar instead of the 3d look
* weekly or 1 page of events view instead of calendar view, variable start & end. E.g. Usually people want to display all of this week, or the next 2 months of events, or the next page worth of events. I'm a little different, need to display events from "today until this Sunday night".
- display multi-day events on all those days - my trial showed only 1st day is displayed
- the Event table display - use top-alignment of the cell text in the event table display
- add some of the items such as event types to the Settings form - to allow users to add/edit them
- the CSS for calendar_noday: suggests it should be possible to view days not in the current month.  It would be good to be able to show events in prev/next month (probably in different colour cell background to highlight this) on the calendar to even up the display and allow you to see Tuesday Sept 1st easily when it is Monday Aug31 for example
- similar to the "edit this page" hack elsewhere, add an "Edit Event" link while viewing them! Then signed in editors can see & modify events immediately. Would be nice to click on the calendar's date text and automatically go to "Add Event"
Logged
brownj

Offline Offline

Posts: 18


« Reply #6 on: August 05, 2006, 02:24:13 AM »

Also, it may be needed that the size of cells can be changed so the calendar fits in differing template sizes. F/e see: http://www.brownj.co.uk/wb/pages/calendar.php

But otherwise, amazing- just what one needs.
Logged
keijok

Offline Offline

Posts: 17


« Reply #7 on: August 05, 2006, 06:58:33 AM »

This looks pretty good - seems a lot of solid work and configurablity in the CSS - and lots of documentation too!

You really should change the name though, as there is already an Event Calendar module! Confusing to pick off the Section type if you have both installed, and might conflict with something too.

There is one slight possible problem with security.
On my server at least, every time an event is added, the next (first) time the calendar runs again, there is an error displayed instead of the calendar. Fortunately, as you can see, the either the server or WB fixes it immediately. Subsequent page loads are fine. Something is off though. Here's the error
Code:
500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
--------------------------------------------------------------------------------
URL: http://www.ebeltech.com/wb/pages/mycal.php
Dangerously writable: [/home/ebeltech/public_html/wb/pages/mycal.php]
FIXED
Haven't seen this before. I'll look on to it if I can get the error happen.

You said that people have to be 'administrators' to get to add pages. But be if you create a "event editor" group, any users you want to be able to modify the can be added to the "event editor" group and then can see the page menu and go to the event calendar page - and only there if that's their only group -
That's right, didn't thought it like that, though  grin

Some things I'd like to be able to do:
* Sort events by date on the admin page
I'll add this to my to-do list.  smiley

- change the current month link on top left to "TODAY" to make it more obvious. Maybe a button even.
Yes, I'll make it customizable.

* pop-up mini calendar to pick dates - I've seen js tools for that.
Yes, that's right. In this way making date entries would be easier. Thank's for the tip!

- validate start <= end date & time
Also a good point, I'll add that too.

- somebody make some CSS that gives a single line like a printed calendar instead of the 3d look
Easily done by settings in the CSS file, I believe.

* weekly or 1 page of events view instead of calendar view, variable start & end. E.g. Usually people want to display all of this week, or the next 2 months of events, or the next page worth of events. I'm a little different, need to display events from "today until this Sunday night".
Currently I do not have need for this but I'll keep this in mind.

- display multi-day events on all those days - my trial showed only 1st day is displayed
This also will be added to my to-do list.  smiley

- the Event table display - use top-alignment of the cell text in the event table display
Don't know what you mean. Can't you do this by changing the CSS?

- add some of the items such as event types to the Settings form - to allow users to add/edit them
Good idea! This way you shouldn't need to edit the setting file (i.e. language file) directly.
There might be some problems of how to implement this to support multiple languages but I'll look into this.

- the CSS for calendar_noday: suggests it should be possible to view days not in the current month.  It would be good to be able to show events in prev/next month (probably in different colour cell background to highlight this) on the calendar to even up the display and allow you to see Tuesday Sept 1st easily when it is Monday Aug31 for example
OK, have to look into this, too. Personally I do not like these "loose end's and start's" of months shown but maybe I'll make them available so they can be seen if wanted.

- similar to the "edit this page" hack elsewhere, add an "Edit Event" link while viewing them! Then signed in editors can see & modify events immediately. Would be nice to click on the calendar's date text and automatically go to "Add Event"
I'll have to look into this.

Also, it may be needed that the size of cells can be changed so the calendar fits in differing template sizes. F/e see: http://www.brownj.co.uk/wb/pages/calendar.php
Cell width can be set in configuration (see $SMTEXT['calendar_column_wid th'] -variable).

Thank's for the feedback!

As you can see this is only the first version of the calendar. Bugs are bound to be discovered and I'll fix them as they emerge. Also I'm still learning the hard way to make modules for Website Baker so things might be done in "odd" way.
Logged
marccouture

Offline Offline

Posts: 210



« Reply #8 on: August 05, 2006, 05:29:58 PM »

WB_PATH -variable should already poin to your /wb/ -directory I believe.
I'll include my index.php file here (renamed it to index.txt) so that you can see how I placed the code.

Excellent, works fine now.  I must have placed it in somewhere overwriting a tag.  Again, thanks for the great work!
Logged

Marc C.
DGEC

Offline Offline

Posts: 382


WWW
« Reply #9 on: August 06, 2006, 03:00:19 PM »

Let me say thanks again for this work!

I am currently using phpEventCalendar (also GPL) at http://riversidebaptistchurch.ca/ click on Calendar if you're curious to see how it works. I had been thinking about doing a module to integrate it before you wrote this one  wink
It displays the event details by a pop-up window, I added the Print Event button hack to the default, and customized an event list script.

I will probably try and figure out how to do the event listing style with your module, at least a script scrap, if nobody else does as I want to convert the site to WB.

Logged
GsT

Offline Offline

Posts: 3


« Reply #10 on: August 07, 2006, 11:50:31 AM »

Nice Calendar, just what I needed!

One bug? though, if you place two events on the same date, only one shows up at the frontend. It would be really useful to be able to have multiple events on one day.

Good work so far though...  wink

/ Frank
Logged
keijok

Offline Offline

Posts: 17


« Reply #11 on: August 08, 2006, 07:37:06 AM »

One bug? though, if you place two events on the same date, only one shows up at the frontend. It would be really useful to be able to have multiple events on one day.
Thank's for pointing that bug out. It's now fixed and the fix will be released when the next version comes out.
Logged
kweitzel
Forum administrator
*****
Online Online

Posts: 5550


WWW
« Reply #12 on: August 08, 2006, 10:16:27 AM »

remember to tell the Add-On Team (Ruebenwurzel, Woudloper and me) when the Module is ready (no beta or release candidate anymore), so it can be "oficially" tested and made available via the add-on repository.

cheers

Klaus
Logged

http://www.weitzel.biz
PM has been disabled
keijok

Offline Offline

Posts: 17


« Reply #13 on: August 09, 2006, 01:17:25 PM »

I fixed few bugs and added some new functionalities to the calendar.
There is now a version history section at the end of the documentation page so you can see the changes.

More info and download: http://keijok.kapsi.fi/wb/pages/en/wb-modules/event-calendar.php
Logged
marccouture

Offline Offline

Posts: 210



« Reply #14 on: August 09, 2006, 02:37:38 PM »

Thanks for the update, I noticed a few things though:

1) I can't add an event without specifying start and end times.  Example: if I try to schedule a single event on August 9 (start date and end date are the same), I get the following error: ERROR! Event start date/time is the same or later than event end date/time.  Could time entries be optional?

2) Clicking on a posted event on the public gives me the following error: Template Error: filename: file ./languages/event_details_FR.html does not exist. Halted.  That's not a good sign. LOL

3) The previous and next month preview is an excellent addition, the month on the right seems to be displayed a few pixels lower than on the left.  Not a huge problem, but visually distracting nonetheless. wink

4) If I update the older calendar module by copying the new files over or reinstalling from the admin panel, I get some interesting display problems, such as not being able to move forward in the calendar on the public side (solved by uninstalling the older version and reinstalling).  This might be a problem for future updates, especially if I have a lot of calendar entries I want to keep.

Good work so far, looking forward to future updates.  Thanks!
« Last Edit: August 09, 2006, 02:40:25 PM by marccouture » Logged

Marc C.
keijok

Offline Offline

Posts: 17


« Reply #15 on: August 09, 2006, 06:00:25 PM »

Thanks for the update, I noticed a few things though:

1) I can't add an event without specifying start and end times.  Example: if I try to schedule a single event on August 9 (start date and end date are the same), I get the following error: ERROR! Event start date/time is the same or later than event end date/time.  Could time entries be optional?
I didn't think that scenario at all! The module has been build so that event always has start date AND time as well as end date AND time. If you provide times as well, making one day event is possible. Thank's for pointing this out!
BTW, what start and end times should be used if no time values are given...? Hmm, maybe I'll make this configurable...

2) Clicking on a posted event on the public gives me the following error: Template Error: filename: file ./languages/event_details_FR.html does not exist. Halted.  That's not a good sign. LOL
Do you have that file? The file is a template file that has to be created by the user if other than english or finnish language is used. Since I do not speak nor write french, I only made english and finnish files to go with the distribution. So after installing the module, open up the languages subdirectory,copy the event_details_EN.ht ml -file into event_details_FR.ht ml file, and translate the file contents to french. Pay attention to data markers, do not touch them while translating!

3) The previous and next month preview is an excellent addition, the month on the right seems to be displayed a few pixels lower than on the left.  Not a huge problem, but visually distracting nonetheless. wink
The height of the small calendars does indeed varies a little bit. This is because on some months there are 6 lines in the calendar (take a look on july 2006) and on some others there are 5 lines (like in september 2006). And yes, there really seems to be a few pixel difference also in top of the calendars. Have to check this out.

4) If I update the older calendar module by copying the new files over or reinstalling from the admin panel, I get some interesting display problems, such as not being able to move forward in the calendar on the public side (solved by uninstalling the older version and reinstalling).  This might be a problem for future updates, especially if I have a lot of calendar entries I want to keep.

Good work so far, looking forward to future updates.  Thanks!
I always remove the old version and make a clean install. I'll try to reproduce this to find out the error.
Logged
DGEC

Offline Offline

Posts: 382


WWW
« Reply #16 on: August 14, 2006, 08:27:37 PM »

This is looking quite impressive! I'm going to try and get it installed asap.
Logged
tjoppru

Offline Offline

Posts: 2


« Reply #17 on: August 21, 2006, 06:23:19 PM »

I installed the module all fine and well but how do I get the calendar to show up? All I get is a blank page. See here http://www.nw-service.k12.mn.us/wb
Can someone provide some help for a newbie.  huh
Thanks
Traci
Logged
kweitzel
Forum administrator
*****
Online Online

Posts: 5550


WWW
« Reply #18 on: August 21, 2006, 07:11:11 PM »

Have you read the instructions here: http://keijok.kapsi.fi/wb/pages/en/wb-modules/event-calendar.php?lang=EN

Did you create a page with the Event Calendar as a Page Type? Please let us know, what you have done.

Cheers

Klaus
Logged

http://www.weitzel.biz
PM has been disabled
tjoppru

Offline Offline

Posts: 2


« Reply #19 on: August 21, 2006, 07:25:19 PM »

Yes i created a page with Event Calendar as page type and added an event and made it viewable by the public and All I get is a blank page that says the Title at the top.
Logged
keijok

Offline Offline

Posts: 17


« Reply #20 on: August 22, 2006, 06:04:08 AM »

Yes i created a page with Event Calendar as page type and added an event and made it viewable by the public and All I get is a blank page that says the Title at the top.
That's odd  huh

Can you see any error messages in the webserver log?
If so, could you please paste the error here so I can take a look...
Logged
GsT

Offline Offline

Posts: 3


« Reply #21 on: August 25, 2006, 12:35:46 PM »

It´s getting close now...

Good work Keijo. I just have one question for you. My calendar always starts with a sunday at the frontend, I would prefer monday =). Any easy way to change this?

Thanks in advance / Kiitos etukäteen Grin
Logged
JesseG

Offline Offline

Posts: 5


« Reply #22 on: August 25, 2006, 04:21:01 PM »

When I tried adding an event with a "PM" end-time, it kept translating it as an AM time. I made the following change to add_edit_event.php, line 239:

Change from:
Code:
<option value="<?= $showvalue ?>" <?= $value==$endtime_value?"selected":"" ?> ><?= $showvalue ?></option>

Change to:
Code:
<option value="<?= $value ?>" <?= $value==$endtime_value?"selected":"" ?> ><?= $showvalue ?></option>
Logged
keijok

Offline Offline

Posts: 17


« Reply #23 on: August 26, 2006, 07:44:12 AM »

It´s getting close now...

Good work Keijo. I just have one question for you. My calendar always starts with a sunday at the frontend, I would prefer monday =). Any easy way to change this?

Thanks in advance / Kiitos etukäteen Grin

Take a look on the week_starts_mon -setting in the language file.
If true, first day of week is monday, and if false it's sunday.
Oleppa hyvä.
Logged
keijok

Offline Offline

Posts: 17


« Reply #24 on: August 26, 2006, 07:51:21 AM »

When I tried adding an event with a "PM" end-time, it kept translating it as an AM time. I made the following change to add_edit_event.php, line 239:

Change from:
Code:
<option value="<?= $showvalue ?>" <?= $value==$endtime_value?"selected":"" ?> ><?= $showvalue ?></option>

Change to:
Code:
<option value="<?= $value ?>" <?= $value==$endtime_value?"selected":"" ?> ><?= $showvalue ?></option>

This was a typo in the code, thank's for notifying.
Fixed into the download ZIP.
Logged
Pages: [1] 2 3 ... 5 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!