I have decided to go ahead and release MyCalendar v1.21. Many of the new features were planned for the next major release, but several bug fixes make them worth unveiling now. The online demo is currently running v1.21:
- transferred all text to be output to the browser into language files for easy translation
- added a Portuguese-Brazil language file (contributed by Pedro Brandao)
- added optional cookies for remembering login info each time
- added option to allow users to edit their own submissions
- added tools for users to edit own submissions if allowed (requires admin validation)
- deleting recurring calendar entries now echoes the number of entries that were deleted
- can now set the number of events per page to display for each day (page spanning)
Bug Fixes:
- overhauled the image form buttons to allow the popup window to control the main window in Netscape
- fixed a sometimes problematic bug in the login.php and add_form.php form actions
- fixed a bug in purge_calendar.php that treated a non-category selection as purge criteria, resulting in a matchless db query
- fixed a bug that kept validate routines from carrying through user submitted Times
- fixed a bug that kept subjects with apostrophes from showing up in some forms
Miscellaneous:
- set_variables.php no longer requires numbering all the variables to be set, making it easier to add new variables in any order
- modified day display layout to keep page from being too wide when in popup mode (happened when Edit/Delete button included)
- removed unused $site_title variable in login page
- removed <pre> formatting tags from the add_to_validate.php printout of received submission - long descriptions made for horizontal page scrolling
- added an image button to optionally replace "Close This Window" form button
- changed current day (month display) highlighting to simply display "Today" instead of the blue border that does not always fill the cell properly in Netscape (happens when another day on the same row contains more entries)
- add_to_validate.php display of user submission no longer displays apostrophes in the subject and description as escaped (with a back slash)
The main area in the above changes that is still a work in progress is the option to allow users to edit their submitted items. The way it currently works is that, when the option is turned on, they can only edit items that match their User ID. When they submit the edit, the entry (or entries, if it was a recurring entry initially) is removed from the Calendar table and placed in the Validate table, and the admin is notified. If approved, the entry gets placed back in the Calendar table and re-calculated for recurring entries, if needed.
Currently, the user will see an option on the edit/delete page to delete any entries that match their User ID, but clicking on it will tell them they are not authorized to do so. I haven't decided how to handle user deletions yet -- let them delete anything they want or have the request submitted to the admin for approval. The latter would require a new Delete table or added field to the Calendar table to signify any entry submitted for deletion. I'll have to think over which approach is best.
A Spanish language file is being worked on, and I've made a couple additions to the Portuguese-Brazil language file that are not yet translated. These should all be reflected in the next release(s), which is when language packs were intended to be officially announced. You get to play with the new goodies early.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum