Subject: Calendar PlugIn
Plug-in name: Calendar
Plug-in version: 2.0 (13.05.2006)
Plug-in description: Adds an calendar to the board environment
Author: Florian Fiedler
flofi_is at web.de
Compatiblity: unb.stable.1.6.1
unb.dev.20060402
Download: calendar_plugin_20060513.zip
This plug-in gives you a possibility to add a calendar to your board environment. The plug-in is designed to use posts for calendar entrys. Every post started in the calendar will be stored to a admin-defined forum.
In addition to the calendar plug-in I wrote a customaction so that you can define who is allowed to post to the calendar throu ACL's.
I added birthdays to the calender. Now if a user has entered it's birthday in his profil, the birthday will be shown with an icon and a link to the User's profile in the calendar.
New: I added the possibility to let the calendar plugin create announcements of the upcomming events. These announcements will be added & deleted automatically. I liked this becaus you offen fogett somthing that is stored anywhere in the calendar.
New: In addition to this I wrote a completly new calendar announcement section (You could see on the Screenshot). Where the post of the event of the actuall day is shown complete and for the next 3 days only the topics with date. ( I wrote that, because I get bored of the announcements, but I decided to let the announcement-creation in the source so that you can decide what you want to have on your Board). Both of these (announcement-creation & new announcement section) are confiurable in the config of the PlugIn. By default both are "off".
New: I added an calendar symbol in the thread view. So that you can easily see which threads are published in the calendar.
Feel free to give comments and make modifications ...
Screenshots:
![ftp://ftp.tkozone.de/calendar_shot_small.jpg [Image: ftp://ftp.tkozone.de/calendar_shot_small.jpg]](ftp://ftp.tkozone.de/calendar_shot_small.jpg)
![ftp://ftp.tkozone.de/calendar_new_entry_shot_small.jpg [Image: ftp://ftp.tkozone.de/calendar_new_entry_shot_small.jpg]](ftp://ftp.tkozone.de/calendar_new_entry_shot_small.jpg)
![ftp://ftp.tkozone.de/calendar_conf_shot_small.jpg [Image: ftp://ftp.tkozone.de/calendar_conf_shot_small.jpg]](ftp://ftp.tkozone.de/calendar_conf_shot_small.jpg)
![ftp://ftp.tkozone.de/calendar_announcement_shot_small.jpg [Image: ftp://ftp.tkozone.de/calendar_announcement_shot_small.jpg]](ftp://ftp.tkozone.de/calendar_announcement_shot_small.jpg)
![ftp://ftp.tkozone.de/calendar_symbol_shot_small.jpg [Image: ftp://ftp.tkozone.de/calendar_symbol_shot_small.jpg]](ftp://ftp.tkozone.de/calendar_symbol_shot_small.jpg)
Installation instructions:
1. Unzip and copy files to your UNB folder as following:
- calendar.en.php -> [UNB root]/unb_lib/plugins/
- calendar.de.php -> [UNB root]/unb_lib/plugins/
- calendar.inc.php -> [UNB root]/unb_lib/plugins/
- calendar.lib.php -> [UNB root]/unb_lib/plugins/
- calendar.php -> [UNB root]/unb_lib/plugins/
- calendar.html -> [UNB root]/unb_lib/designs/modern/tpl/
- calendar_next.png -> [UNB root]/unb_lib/designs/modern/img/
- calendar_previous.png -> [UNB root]/unb_lib/designs/modern/img/
- nav_calendar.png -> [UNB root]/unb_lib/designs/modern/img/
- calendar_link.png -> [UNB root]/unb_lib/designs/modern/img/
2. Now to the hard part, patch the board files:
This is only needed, until Yves would implement my Hook's in his source.
I finished changing everything on my sourcecode to just call Hooks and make nomore changes in the original source code files. This is very important, because everytime a new verion of the board is coming out you have had to repatch the original files. If Yves implements my Hooks in his source there will be no patching anymore. I hope this happens in 1.6.2.
- First of all you should make a backup of your original post.inc.php & main.inc.php placed under [UNB root]/unb_lib
- And in the new version, also make a backup of forumlist.html in [UNB root]/unb_lib/designs/modern/tpl/ (this is nessessary for the new calendar announcement section)
- Copy post.inc.php.diff & main.inc.php.diff to [UNB root]/unb_lib & forumlist.html.diff to [UNB root]/unb_lib/designs/modern/tpl/
- Now patch the files by typing:
- cat ./post.inc.php.diff | patch
- cat ./main.inc.php.diff | patch
- cat ./designs/modern/tpl/forumlist.html.diff | patch
- I hope you'll get no rejects (If so, please let me know)
3. Well, you've done the hard work by now. At this place configure the plugin.
- Create your forum that will be used as calendar (store).
- Write the forum id down.
- Login with administrator priviledges and go to Settings -> Plug-ins.
- Click on Settings for the plug-in named calendar.
- Write in the forum id.
- At this place you could also install the calendar table, just click "install calendar table automatic"
- If the table was installed successfully the checkbox will disapear and another "calendar is installed" will be at this place
- You could also delete the calendar table throu the configuration. (Attention: All data of the calender table will be lost)
- New: You could chose if birthdays should be shown in calender
- New: You could chose if you want the calender plugin to create announcements of the upcomming events.
- New: You could chose if you want the new calendar announcement section should be shown on the mainpage.
5. (Optional) Use htaccess to get nice URLs
Add these rows at your htaccess file as last RewriteRule row:
# Add custom short URLs here:
RewriteRule ^calendar(;(.*))?$ forum.php?req=calendar&rewrite=$2 [L,QSA]
Features planned in next releases, the most important are first in list
- Nothing planned at the moment.
- More sugestions?
Version history:
- 0.9 (07.03.2006)
- Intial Version
- 1.0 (09.03.2006)
- Add table installation throu configuration
- Minor bugfixes
- 1.1 (19.03.2006)
- Fixed table creation
- Checkbox "calendar table is installed" disabled (much pretier)
- 1.2 (21.03.2006)
- Added birthday's to calenders
- Minor bugfixes
- post.inc.diff now only contains a hook that I need (Maybe Yves would implement it)
- 2.0 (13.05.2006)
- Really complet rewrite of the source
- Fixed the change-date problem
- calendar entrys could now be deleted :-)
- Add possibility of announcement creation
- Add new calendar announcement section on main page
- Add calendar symbol for threads which are published in the calendar
- Add devel branche support
- A lot of minor and major bugfixes
The author has attached one file to this post:
calendar_plugin_20060513.zip 16.3 kBytesYou have no permission to open this file.

tkoneo
Show profile
Link to this post