Start
Help
Forum
Addons
Project
Welcome,
Guest
. Please
login
or
register
.
July 05, 2009, 05:03:35 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Willst du dem Website Baker Team beitreten?
Nähere Informationen findest du
hier
und auf unserer
Startseite
.
85293
Posts in
13125
Topics by
8214
Members
Latest Member:
Nebz
Website Baker Community Forum
English
Modules
(Moderators:
Argos
,
BerndJM
)
Yet another event calendar
Pages:
[
1
]
2
3
...
5
Author
Topic: Yet another event calendar (Read 27333 times)
keijok
Pending Apprentice Baker
Offline
Posts: 17
Yet another event calendar
«
on:
August 04, 2006, 09:42:56 AM »
Hi,
Here's yet another event calendar for you to use
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 Team
A Baker's Baker
Offline
Posts: 4837
Re: Yet another event calendar
«
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
Dangerous Baker
Offline
Posts: 7016
Keep on Rockin
Re: Yet another event calendar
«
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
Senior Baker
Offline
Posts: 180
Re: Yet another event calendar
«
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.
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
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
Reply #4 on:
August 04, 2006, 05:25:51 PM »
Quote from: marccouture 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.
Great if you like it!
Quote from: marccouture on August 04, 2006, 03:38:16 PM
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
Master Baker
Offline
Posts: 382
Re: Yet another event calendar
«
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
Pending Apprentice Baker
Offline
Posts: 18
Re: Yet another event calendar
«
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
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
Reply #7 on:
August 05, 2006, 06:58:33 AM »
Quote from: DGEC 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
Haven't seen this before. I'll look on to it if I can get the error happen.
Quote from: DGEC on August 04, 2006, 10:20:44 PM
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
Quote from: DGEC on August 04, 2006, 10:20:44 PM
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.
Quote from: DGEC on August 04, 2006, 10:20:44 PM
- 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.
Quote from: DGEC on August 04, 2006, 10:20:44 PM
* 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!
Quote from: DGEC on August 04, 2006, 10:20:44 PM
- validate start <= end date & time
Also a good point, I'll add that too.
Quote from: DGEC on August 04, 2006, 10:20:44 PM
- 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.
Quote from: DGEC on August 04, 2006, 10:20:44 PM
* 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.
Quote from: DGEC on August 04, 2006, 10:20:44 PM
- 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.
Quote from: DGEC on August 04, 2006, 10:20:44 PM
- 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?
Quote from: DGEC on August 04, 2006, 10:20:44 PM
- 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.
Quote from: DGEC on August 04, 2006, 10:20:44 PM
- 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.
Quote from: DGEC on August 04, 2006, 10:20:44 PM
- 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.
Quote from: DGEC on August 04, 2006, 10:20:44 PM
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_width'] -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
Senior Baker
Offline
Posts: 180
Re: Yet another event calendar
«
Reply #8 on:
August 05, 2006, 05:29:58 PM »
Quote from: keijok on August 04, 2006, 05:25:51 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
Master Baker
Offline
Posts: 382
Re: Yet another event calendar
«
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
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
Pending Apprentice Baker
Offline
Posts: 3
Re: Yet another event calendar
«
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...
/ Frank
Logged
keijok
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
Reply #11 on:
August 08, 2006, 07:37:06 AM »
Quote from: GsT on August 07, 2006, 11:50:31 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 Team
A Baker's Baker
Offline
Posts: 4837
Re: Yet another event calendar
«
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
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
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
Senior Baker
Offline
Posts: 180
Re: Yet another event calendar
«
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.
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
Pending Apprentice Baker
Offline
Posts: 17
Re: Yet another event calendar
«
Reply #15 on:
August 09, 2006, 06:00:25 PM »
Quote from: marccouture 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?
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...
Quote from: marccouture on August 09, 2006, 02:37:38 PM
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.html -file into event_details_FR.html file, and translate the file contents to french. Pay attention to data markers, do not touch them while translating!
Quote from: marccouture on August 09, 2006, 02:37:38 PM
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.
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.
Quote from: marccouture on August 09, 2006, 02:37:38 PM
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
Master Baker
Offline
Posts: 382
Re: Yet another event calendar
«
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
Pending Apprentice Baker
Offline
Posts: 2
Re: Yet another event calendar
«
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.
Thanks
Traci
Logged
kweitzel
Forum Team
A Baker's Baker
Offline
Posts: 4837
Re: Yet another event calendar
«
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
Pending Apprentice Baker
Offline
Posts: 2
Re: Yet another event calendar
«
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
Pages:
[
1
]
2
3
...
5
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
===> Security Announcements
=> Guest Area and Off-Topic
=> Website Showcase
-----------------------------
English
-----------------------------
=> Help/Support
===> Help/Support of WB2.7.x core
=> Website Baker Development
===> Website Baker 3
=> Documentation
=> Templates
=> Modules
===> Code Snippets
=> Languages
=> Archive
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Hilfe/Support
===> Templates, Module & Co.
===> Hilfe/Support von WB2.7.x core
=> Diskussion über WB
===> jQuery
=> Off-Topic
=> Archiv
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Help / Support
===> WB Core
===> Templates, Modules & Languages
=> WB Discussie
=> Niet-Terzake (Off Topic)
-----------------------------
French
-----------------------------
=> Help/Support
-----------------------------
Italian
-----------------------------
=> Help/Support
Loading...