Petestack Page Assistant — © Peter Duggan 2004–7 Changelog ============================================================================ Version 2007-07-11a ---------------------------------------------------------------------------- Tidied and improved page template (eliminating unnecessary layout table and restyling page item numbers for greater clarity) while fixing CSS problems introduced during recent site redesign work. Version 2006-08-20a ---------------------------------------------------------------------------- First development work for seventeen months, replacing school styles/ templates with 'Petestack' styles and basically just 'dusting down' to feature at petestack.com. ============================================================================ Version 2005-03-12a ---------------------------------------------------------------------------- Now possible to login to any user directory with admin key. Version 2005-02-11a ---------------------------------------------------------------------------- Further improvements to file interface (radio buttons for restore/delete). Version 2005-02-10b ---------------------------------------------------------------------------- Improved file listing for user directories and added file deletion for same. Version 2005-02-10a ---------------------------------------------------------------------------- Tweaked permitted MIME types for uploaded files to humour Internet Explorer. Version 2005-02-09a ---------------------------------------------------------------------------- Added skeletal file upload feature. Version 2005-01-27a ---------------------------------------------------------------------------- Trivial code changes. Version 2004-12-11a ---------------------------------------------------------------------------- Bugfix (broke 'Show Session Arrays?' while overhauling code). Version 2004-12-10a ---------------------------------------------------------------------------- Overhauled code to meet requirements of error_reporting (E_ALL). Version 2004-12-09a ---------------------------------------------------------------------------- Bugfix (text/list colour drop-down now behaves the same on both test and web servers). Version 2004-12-04c ---------------------------------------------------------------------------- Bugfix (layout radio buttons misnamed since regenerating for tab indexing). Version 2004-12-04b ---------------------------------------------------------------------------- Tab indexing now done for all dialogues. Version 2004-12-04a ---------------------------------------------------------------------------- Added drop-down option for named text/list colours and rearranged text/list dialogues (again!) to restore the matching layouts lost when configurable bottom margins were added to the text options. Version 2004-12-02b ---------------------------------------------------------------------------- Bugfix (possible to save a file name with disallowed characters since rearranging the error messages). Version 2004-12-02a ---------------------------------------------------------------------------- Extended improved error messages (ie the red warnings below the toolbar) to login and file names. Added background-color (as well as background-image) to template stylesheets. Made text, list and custom textareas 100% width. Version 2004-12-01b ---------------------------------------------------------------------------- Some minor interface tweaks (mostly more user-friendly error messages). Added restore warning (ie 'this will wipe the current page'). Removed superfluous information from file listing. Version 2004-12-01a ---------------------------------------------------------------------------- Bugfix (file overwrite was saving blank pages). Added login for file save/restore. Version 2004-11-29b ---------------------------------------------------------------------------- Added file listing to save/restore tool. Version 2004-11-29a ---------------------------------------------------------------------------- Bugfix (moving things around for previous version disrupted item count and stylesheet for restored pages until next user action). Version 2004-11-28a ---------------------------------------------------------------------------- Added file overwrite and moved save/restore/session tools to top toolbar. Version 2004-11-27c ---------------------------------------------------------------------------- Made bottom margin configurable for text items. Version 2004-11-27b ---------------------------------------------------------------------------- Empty text, list and image location fields are now handled intelligently. Version 2004-11-27a ---------------------------------------------------------------------------- Fixed list parsing to retain line breaks where permitted by the W3C specifications. Version 2004-11-26b ---------------------------------------------------------------------------- Some tidying up of the user interface. Version 2004-11-26a ---------------------------------------------------------------------------- Spent some time working on a separator/escape character for tag parsing (see notes for Version 2004-11-21c) before realising this was already implicit with PHP's 'magic_quotes_gpc'. Version 2004-11-25b ---------------------------------------------------------------------------- Added basic font control and revised Help Page accordingly. Version 2004-11-25a ---------------------------------------------------------------------------- Bugfix (it was still possible to move items by selecting 'From' and 'To' and hitting a submit button other than 'Move'). Renamed 'Assign ID?' to 'Add Anchor?'. Version 2004-11-24a ---------------------------------------------------------------------------- Added Help Page. Modified 'Assign ID' to create anchor tags as well as assign IDs. Version 2004-11-23c ---------------------------------------------------------------------------- Item numbering now starts at 1 instead of 0. Bugfixes (hitting enter while editing text colour no longer produces duplicate item, and the 'wrong drop-down' bug has been fixed again). Version 2004-11-23b ---------------------------------------------------------------------------- Bugfix (sorted validation of save/restore file names and IDs). Version 2004-11-23a ---------------------------------------------------------------------------- Dropped separate 'split paragraph' and 'new line' tag parsing (well-meant but horribly clunky) in favour of straight line feeds from the text input (not yet implemented for lists). New ==internal-link== tag and revised __subscript__ tag. New bug listing! ;-) Version 2004-11-22b ---------------------------------------------------------------------------- Now possible to assign IDs to text, list and image items. Extended contextual (mouseover) help to most text, list and image options. Version 2004-11-22a ---------------------------------------------------------------------------- Added image hyperlinking. Version 2004-11-21c ---------------------------------------------------------------------------- Changed italic tag from !!italic!! to %%italic%% so you can do %%italic!%%. So that's no good if you need to italicise something like '10%', but combining *simple* tags with real power isn't simple (still working on it!) and at least these things can currently be done with custom items. Version 2004-11-21b ---------------------------------------------------------------------------- Bugfix (submitting custom items was 'editing' the first item instead of adding the new one). Version 2004-11-21a ---------------------------------------------------------------------------- Small semantic changes, so 'misc.' content type now renamed/saved as 'layout' (previously 'object') and 'custom' type now saved as such instead of 'customItem'. Version 2004-11-20d ---------------------------------------------------------------------------- Bugfix (image filename extensions not checked rigorously enough). Version 2004-11-20c ---------------------------------------------------------------------------- Sorted some bugs with the save/restore warnings. Version 2004-11-20b ---------------------------------------------------------------------------- Stylesheet information is now saved with pages. Changed default alt text from 'Image' to ''. Bugfix (named email links ~~name|recipient@example.org~~ were parsed with the address and the name transposed). Version 2004-11-20a ---------------------------------------------------------------------------- Bugfix ('clear all' breaks broken by typo in 2004-11-19b). Version 2004-11-19b ---------------------------------------------------------------------------- Drop-down and radio button (as well as text entry) settings now preserved when editing. Version 2004-11-19a ---------------------------------------------------------------------------- Added text colour (hexadecimal codes) for all text and list types. Version 2004-11-18b ---------------------------------------------------------------------------- Added centre align, editable alt text and optional width and height for images. Removed 'delete all' from top toolbar (NB use 'destroy session' instead). Version 2004-11-18a ---------------------------------------------------------------------------- Removed 'code' option from text types (not currently styled to do anything). Added text size for all text and list types and text align for all text types except preformatted text and blockquote. Version 2004-11-17d ---------------------------------------------------------------------------- Sorted some display issues by wrapping the page up in a simple table instead of the original divs. Version 2004-11-17c ---------------------------------------------------------------------------- Bugfix (temporarily impossible to edit the first item on the page). New ^^superscript^^ and ,,subscript,, tags. Version 2004-11-17b ---------------------------------------------------------------------------- List item delimiters changed to ##double hashes##. Version 2004-11-17a ---------------------------------------------------------------------------- Separated templates from content (always planned, but now practicable with the introduction of the custom items) to create a much more meaningful template system! :-) Version 2004-11-15a ---------------------------------------------------------------------------- New 'custom' item type requiring an 'Admin Key' to submit or edit, but otherwise able to be moved and deleted like everything else. So now you can safely add straight code and still edit the page around it! ;-) Version 2004-11-14c ---------------------------------------------------------------------------- Implemented support for custom page backgrounds (currently functional with Geography and Music templates) and save/restore for multiple users. Version 2004-11-14b ---------------------------------------------------------------------------- Bugfix (if you deleted the last item from the page, you had to restore one before you could add any new ones). Version 2004-11-14a ---------------------------------------------------------------------------- Link parsing now accommodates https://, ftp:// and mailto: as well as http:// if specified, assuming http:// or mailto: (from the @) if not. Version 2004-11-13c ---------------------------------------------------------------------------- Recursive restore for deleted items now implemented. Version 2004-11-13b ---------------------------------------------------------------------------- Sorted editing so the edited item is restored to its original position but the original version isn't deleted if the edited one isn't submitted (so removing the need to copy it to the 'recover' array). Version 2004-11-13a ---------------------------------------------------------------------------- Tidied appearance of generated XHTML, fixed ==== ('split paragraph') to act only on paragraph items and added 'code' text type. Extended retrospective editing to all item types. Added interface to show debugging info because commenting out/uncommenting some debugging code was becoming monotonous. Added 'recover' facility to copy and retrieve edited/deleted items (confirmed to be restoring recovered items to 'page' array but currently largely disabled while I work on the implementation.). Version 2004-11-12c ---------------------------------------------------------------------------- Fixed another silly bug which meant that items could be edited or deleted when the item number was selected from the wrong drop-down. Version 2004-11-12b ---------------------------------------------------------------------------- Fixed silly bug (forgot to do stripslashes() to text and list items loaded back into text area for editing). Version 2004-11-12a ---------------------------------------------------------------------------- Started to implement retrospective editing for text and list items, but need to sort out some bugs! Named link parsing ~~name|link~~ added. Replaced *bold* with **bold**, _italic_ with !!italic!! and ~link~ with ~~link~~. Started to implement contextual help system. Added facility to force line breaks and start new paragraphs from the 'paragraph' text area (no need to restrict items to single 'blocks' now they're more easily trackable through the number display). Version 2004-11-10d ---------------------------------------------------------------------------- Image 'wrap' option superseded by more configurable breaks (effectively visible with the item number display). Version 2004-11-10c ---------------------------------------------------------------------------- Links now link to the ~entered URLs~ (named links not yet implemented). Appropriate warning messages added to save and restore functions. Version 2004-11-10b ---------------------------------------------------------------------------- Started changelog. Item numbers now displayed in red, but still some debugging to do because identical items are *apparently* being assigned identical numbers. Now possible to select any item (instead of just first, last and all) for deletion. ============================================================================ Previous Versions ---------------------------------------------------------------------------- Project started 2004-11-05. Progress to 2004-11-10 ---------------------------------------------------------------------------- Selectable Content Type: Template (rudimentary), text (four heading levels, paragraph, block quotation, preformatted text), *bold*, _italic_ and rudimentary ~link~ parsing, nine (non-nesting) list types, left and right-aligned images (preview only), two line break types and horizontal rule. Item Moving: Any item to any new position in order. Item Delete: First, last and all. File Save and Restore: Password-protected basic save and restore capability.