gcalendar plugin extended
| Version | 2007-02-07 |
|---|---|
| Dependencies | Plugin Manager |
| Download | gcalendar_20070705.zip |
I’ve added some new features to the gcalendar plugin to make it fit better into my needs. The base version of the original gcalendar used for extending is 20061129. Please visit the gcalendar plugin‘s site for documentation.
New Features
- Ability to specify how many days forward or backward the calendar should show (see the parameters below).
- Can specify events for the whole month using 00 for the day. (For example, 2006-12-00). I use this feature for my to-do-list items, until I can finish the task and can set the day.
New Parameters
mode=ahmet_month
Prints a monthly calendar table, each row showing a week, and each column showing certain day of the week.
ahmet_backward_hard=<number>
ahmet_backward_soft=<number>
ahmet_forward_hard=<number>
ahmet_forward_soft=<number>
The ahmet_backward and ahmet_forward parameters determine how many days backward and forward from the current day the calendar should show. When _soft parameters are used, the original dates are changed only when the extended date is in a more future date. For example, if today is Dec25th and you set ahmet_forward_soft=3, the calendar will show up to the end of the month (31st), but if you set ahmet_forward_soft=10, then the calendar will show up to Jan4th.
ahmet_firstdayofweek=<number>
Specify which day of week to start in the first column of the monthly view (0:sunday,..., 6:saturday). The default option $conf[’gCal_ahmet_firstdayofweek’]=1; is set in the gcalendar/inc/conf.php file.
Demo
Visit the playground:gcalendar page for sample usage.
Screenshots
<gcal pages=(:calendar:*) mode=ahmet_month>
<gcal pages=(:calendar:*) ahmet_backward_hard=2 ahmet_forward_soft=6>
Installation
You can download the extended version of the plugin and unzip it as gcalendar folder into the dokuwiki plugins-folder (? lib/plugins/). Or, copy and paste the following link into the plugin manager.
- Current version: 2007/01/07 gcalendar_20070705.zip
Version History
- 2007/01/07 gcalendar_ahmet_20070107
- added ahmet_firstdayofweek option.
- 2006/12/25 gcalendar_ahmet_20061226


Comments
hi ahmed, nice job with the gcalendar extension! i’d like to have a yearly view and displayed the times and timespaces for every calendar source/section in a different background colour.
I plan to have a yearly view; however it shouldn’t just be a simple list of current views of months. Rather, it’ll be a more compact view, with events only appearing with mouse-overs. The different background colors could be possible by defining styles for the timespaces (just like the definition of different event pictures).
so i await it eagerly
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of preg_match_all(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in C:\wamp\www\dokuwiki-2008-05-05\lib\plugins\gcalendar\inc\gcal_read.php on line 345
how can i solve this warning
Get rid of “&” in line 345 of gcal_read.php??
345c345 < preg_match_all("=\[\[.+\]\]=sU",$text,&$wiki_links); --- > preg_match_all("=\[\[.+\]\]=sU",$text,$wiki_links);dokuwiki-2008-05-05 changed date() After upgrading to dokuwiki-2008-05-05, “yyyy/mm/dd” showed up funny so I compared it with other plug-in update and find a fix for date format, by replacing date() with strftime():
the patch applied to this file gcalendar/inc/gcal_show.php
Is there any way to have a event happen say, every Sunday?
Hi Ahmet,
Nice work! I really like your ahmet_month format.
I’ve got the basics working on dokuwiki-2008-05-05 (Thanks, hsingtsu!), but some of the details are lacking. It doesn’t seem to be picking up the CSS files properly. All I get is “07Soccer-Tournament”, for instance. No formatting of the text, no graphics, no hyperlinks, etc. But, it does format calendar properly and has the links to the next and previous month, and those work. So, I don’t know what to look at. Can you give me some help?
Thanks!
What is the Dokuwiki gCalendar syntax to add events/tasks into a multi-user calendar page? I have the display working properly. Anyone’s asst would be greatly appreciated. Thanks!
What is the Dokuwiki gCalendar syntax to add events/tasks into a multi-user calendar page? I have the display working properly. Anyone’s asst would be greatly appreciated. Thanks!
Hello, My calendar date looks like this: %2008/%10/%22 %11:%Oct
Does anyone know what causes this, or can correct it?
Got it, make the above change (hsingtsu, 2008/08/14 08:05: ) to the file: dokuwiki/lib/plugins/gcalendar/inc/gcal_show.php
and the problem is solved.