## ## Mod title: Calendar Categories Add-on ## ## Mod version: 1.1.4 ## Works on PunBB: 1.2.* ## Release date: 2009-08-19 ## Author: Koos (pampoen10@yahoo.com) ## ## Description: Adds category functionality to Calendar 2.0.8a with ## full permission control. ## ## Affected files: calendar.php ## calendar/config.php ## calendar/header.php ## lang/English/calendar.php ## plugins/AP_Calendar_Settings.php ## style/imports/Oxygen_cs.css ## ## Affects DB: New tables: ## 'calendar_categories' ## 'calendar_perms' ## New column in 'calendar' table: ## 'cat_id' ## ## Notes: The functionality for tracking Posts/Topics ## and Birthdays has been removed. ## ## DISCLAIMER: Please note that "mods" are not officially supported by ## PunBB. Installation of this modification is done at your ## own risk. Backup your forum database and any and all ## applicable files before proceeding. ## ## Contributors: seesaw ## # #---------[ 1. UPLOAD ]------------------------------------------------------- # Upload all files and folders contained in archive to forum root, replacing existing files. Keep folder structure intact. # #---------[ 2. RUN ]---------------------------------------------------------- # install_mod.php # #---------[ 3. DELETE ]------------------------------------------------------- # install_mod.php # #---------[ 4. OPEN ("***" means affected files) ]------------------------------ # style/imports/***_cs.css # #---------[ 5. DELETE ]--------------------------------------------------------- # /****************************************************************/ /* 0.0 Calendar Color Additions - edit to suit your own taste */ /****************************************************************/ .calendar_no {background-color: #......} .calendar_day {background-color: #......} .calendar_event {background-color: #......} .calendar_bday {background-color: #......} /****************************************************************/ # #---------[ 6. DELETE ]--------------------------------------------------------- # .calendar_bday A:link, .calendar_bday A:visited {COLOR: #......} .calendar_bday A:hover {COLOR: #......} .calendar_event A:link, .calendar_event A:visited {COLOR: #......} .calendar_event A:hover {COLOR: #......} # #---------[ 7. AT THE END, ADD ]--------------------------------------------- # /****************************************************************/ /* Calendar Color Additions - edit to suit your own taste */ /****************************************************************/ .calendar_no {background-color: #E6E3E4} .calendar_day {background-color: #E1EFFF} .calendar_event {background-color: #F6DCA1} .calendar_bday {background-color: #FECAFF} /*.calendar_bday A:link, .calendar_bday A:visited {COLOR: #B52B21} .calendar_bday A:hover {COLOR: #5A0064} .calendar_event A:link, .calendar_event A:visited {COLOR: #0066CC} .calendar_event A:hover {COLOR: #B42000} .calendar_day A:link, .calendar_day A:visited {COLOR: #0066CC} .calendar_day A:hover {COLOR: #B42000}*/ /****************************************************************/ # #---------[ 8. SAVE/UPLOAD ]------------------------------------------------- # # #---------[ 9. ADDITIONAL INSTRUCTIONS FOR NON-ENGLISH USERS ]---------------- # Non-English users must add and translate the following additional entries to their Calendar lang file located at: lang/[language]/calendar.php: 'Add_event_to' => 'Add event to: calendar', 'All events' => 'All events', 'added_by' => 'Added by:', 'Days to view' => 'Days to view', 'Return' => 'Return to calendar', 'big_body' => 'Posts cannot be longer that 20479 characters (20 KB).', 'big_title' => 'Event title cannot be longer than 50 characters.', 'no_cat' => 'There are no other categories to move the event to.', 'no_cat_id' => 'Error: Category ID was not specified.', 'keep_cat' => 'Cannot delete category. You must always have at least one active category for your calendar.', 'move_warning' => 'You don\'t have permission to move events to this category.', 'event_moved' => 'Calendar event moved.', 'move_event' => 'Move event', and modify the following two lines: (1) Modify: 'Back' => 'Back To Calendar', to: 'Back' => 'Month view', (2) Modify: // date error, kinda pointless but hey... 'date_error' => 'This calendar does not go beyond the date you have selected' to: // date error, kinda pointless but hey... 'date_error2' => 'This calendar does not go beyond the date you have selected'