Attachments Extension for Joomla 1.5 2008-August-17: Release 1.3.4 - Fixed plugin so that only items that are com_content will display attachments. This should prevent spurious display of the "Add Attachments" link on items/pages that cannot have attachments associated with them (such as JEvents pages). - Added ALT tag to all HTML entries for xhtml compliance. - Fixed add_attachment_btn_plugin to prevent display of the "Add Attachment" button in the article editor for non content extensions such as JEvents. 2008-July-22: Release 1.3.3 - Tested with Joomla! versions 1.5.3 and 1.5.4. - Several mods to allow attachments to be listed (if 'anyone' can see) even in secure mode. Added "Request login" page that is shown when someone that is not logged in tries to download an attachment. Added component component parameter for registration URL and several related translation phrases. - Reworked tooltips for Admin page to use behavior.tooltip correctly. - Added metadata.xml files to two front-end views to warn users not to attach them to menu items. - Added a install.noutf8.sql install file for MySQL for when the MySQL database does not support UTF-8 directly but is inserting up to three bytes per UTF-8 character into the database. - Added search plugin along with new language files. This plug was donated by Paul McDermott. Thanks Paul! - Enabled sorting attachments lists by custom/user-defined fields. - Minor rework of CSS for icons for attachments and add attachments. - More minor html fixes. - Fix to prevent show the 'Add Attachments' button when creating/editing section and category descriptions. - Fix to prevent the 'Add Attachments' button from showing if the attachments list is prevented from showing (even if the user has permissions to add attachments). 2008-June-08: Release 1.3.2 - Minor fixes to html in a couple of forms. 2008-June-03: Release 1.3.1 - Minor fixes to a few translation terms that were not handled correctly in the PHP code. 2008-June-01: Release 1.3 - Updated special functions. - Minor tweaks to html for testing purposes. - Enabled display of "Add Attachments" button when article is being created. If clicked, it complains that you must save the article first using a iframe popup. Added warning function for that purpose. - Removed some obsolete translation phrases. - Added Italian translation (Thanks Lemminkainen!) - Added create_date and modification_date to the SQL table. - Added option to control listing order of attachments list. - Added indeces for some of the fields of the attachments table that might be commonly used to order attachments lists. - Add different shading on alternate lines of attachments list. - Added three optional user-defined fields. - Converted article selection to use Joomla! article selector (in creation of new attachments and for changing articles). - Added admin functions to disable uninstallation of attachments table (for MySQL). - Created new update.php file in admin area and set up an "Extras" toolbar item to allow access to its functions. First function added invokes the function to disable uninstallation of the attachments database table. - Added code in installation script to update the Attachments table (adds missing columns and missing indexes.) - Restored the Attachment logo in the back end. - Added file type icons for mp3, wma, and aiff files. - Changed display of modification date to include Locale (eg time zone offset). Note that this change required changing the format strings to use those of the PHP strftime() function. Updated configuration settings (config.xml) to reflect this change. - Fixed code that allowed any user to delete other folks attachments (in the 'who can add' == 'any logged-in user' mode). Now anyone who owns an article can delete any attachment on that article. Also, now anyone who added an attachment can delete it. - Changed the red 'X' to delete an attachment in the attachments lists to a delete icon (from silk icons). - Adjusted all default time displays to 24h format to avoid problems with some locales not supporting am/pm out of the box. - Added updating of the download count in secure mode. Added display of number of downloads in the front end lists with config option to display or hide the download count. - Added fix for uploading files in FTP mode. Converted all file manipulation functions from php functions to JFile functions (which) use FTP if it is enabled. - Attachments plugin changed from onAfterDisplayContent event to onPrepareContent event. This ensures that it respects the ordering requested for plugins (which are apparently mostly onPrepareContent). - Reworked permissions checking: Put all permissions function into a separate file (site/permissions.php). Got rid of 'verify_*' functions in helper.php in favor of similar functions in permissions.php. - Converted all require() to require_once() - Implemented code to update attachments from the frontend. - Converted most Javascript alert()/confirm() dialogs to use non-Javascript approaches such as reloading the forms, raising an http error (code 500), or dialogs/warnings via iframes. - Added views for uploading and updating. Now the file for an attachment can be upgraded from the front end or back end. - Minor rework to get update_null_dates() working from both the special controller and from the installation script. - Changed processing of 'hide attachments for' option to allow either '_' or '-' characters between words. - Reduced the extra MySQL indeces to only 'article_id' (MySQL adds an index for 'id' automatically). According to MySQL documentation, the other indeces will give no benefit. See: http://dev.mysql.com/doc/refman/5.0/en/order-by-optimization.html - Added quotes to download Content-Disposition to make sure downloading filenames with spaces works in secure mode (does not affect non-secure mode). - Various fixes from feedback from the testers. - Tested with Joomla! 1.5.3 (Vahi)) 2008-Mar-06: Release 1.2.3 - Added French tranlation by Pascal Adalian (Thanks Pascal!) - Added special controller/view with some special functions in the Administrative back end to assist with automated testing of the Attachments extension. For the most part, these functions duplicate functionality available in other admin locations, without Javascript. (No new user or admin functionality added; normal user and admin functions are unaffected.) - Fixed a small bug in back end to prevent attachments from being attached to articles that are in the trash. - A few minor tweaks to the English version of the help file. 2008-Feb-24: Release 1.2.2 - Bug fix for sites with multiple/non-standard MySQL setups - Minor updates to Dutch and Norwegian language files. 2008-Feb-21: Release 1.2.1 - Minor adjustments to the Brazilian Portuguese language files. 2008-Feb-20: Release 1.2 - Added German translation by Michael Scherer (Thanks Michael!) - Added Finnish translation by Tapani Lehtonen (Thanks Tapani!) - Added Spanish translation by Carlos Alfaro (Thanks Carlos!) - Added Norwegian transaltion by Espen Gjelsvik (Thanks Espen!) - Added code to chmod new attachments to '644' (owner read-write, group+world read privileges). This is needed on a few website server configurations, and it should harmless on the rest. - When an article is moved to another article in the attachment editor (in the back end), if the prepend mode is 'article_id', the filename_sys and url are renamed to avoid future filename conflicts. - Cleaned up all the help files to have valid HTML (using W3C validator). - Added fix to SQL code in admin controller.php (LEFT JOIN instead of JOIN). This fix seems to keep some older versions of MySQL happy. - Fixed jimport bug in admin.attachments.html.php (only affected a few systems). - Moved options from the plugin manager to the component manager. Adjusted various language files accordingly; integrated updates from all translators. - Fixed some minor HTML problems in front end and back end displays. - Scrubbed all *.ini files to replace double-quotes with single quotes to avoid problems with tooltips, etc being truncated. - Tested with Joomla! 1.5.1 (Seenu) 2008-Jan-26: Release 1.1 - Added optional display filename - Added max_filename_length plugin parameter to limit displayed names of files. - Added file type for *.cab files (Windows compressed archive files). - Updated the help file for added database field and plugin option. - Updated translation files with new entries. - Added new Brazillian Portuguese version. Thanks to Arnaldo Giacomitti ( www.giacomitti.eng.br) and Cauan Cabral (www.cauancabral.net) for the translation! - Fixed bug that caused failures when using the "Add Attachment" button while editing articles from the front end. - Disabled display of "Add Attachment" button when creating new article. - Changed "Add Attachment" button to bring up the uploading form in an iframe so that the article editor is undisturbed (both front end and back end). - Add the ability to change the article of an attachment through the attachment editing form in the back end (look for [Change Article]). NOTE: This version does not rename the actual file, so unexpected filename conflicts are possible. This will be fixed in the next version. - Got the spell checker working on my editor and fixed numerous typos. - Fixed bugs in categories_to_hide mode. - Added CSRF Token checking in forms - Fixed uploading from article editor to properly use only the form in the iframe and not the whole page. - Removed extraneous semicolon in admin upload form. - Tested with Joomla! 1.5.0 Stable (Khepri). Also did some spotchecks with RC3 and RC4. SEF is still broken with RC2. 2007-Dec-27: Release 1.0 - Many updates, changed status from Beta to Stable/Production - Added file icons in attachments lists - Added new Dutch/nl-NL translation by Parvus (Thanks Parvus!) - New 'add_attachment_btn_plugin' allows adding attachments using a new button in the article editor in the administrative back end. - Added list of previously added attachments at the top of all upload pages. - Added option to open file links in a separate window - Added customizable message to upload page that alerts the user that an administrator will need to publish an attachment before it is accessible (if not auto-publishing). - Added link for stylesheet for the upload form - Reworked the html/css structure for the attachments lists to make it easier for users to restyle it. - Add attachments sytle name to plugin parameters - Restructured the CSS for the main backend list of attachments - Cleaned up duplication in CSS files. - Added icon to 'Add Attachment' link - Made description field longer (255) - Added option to show column heads for attachment list tables - Added icon to 'Add Attachment' links in backend - Added icon for download icon in back end - Added display of the uploaders name in the admin back end edit page - Added tooltips/titles for main attachments list links (filename, delete) - Fixed attachment menu icon in "Components" menu in backend (see http://forum.joomla.org/index.php/topic,221525.0.html) - Added plugin option to specify Sections/Categories of articles for which the attachments list will not be displayed. - Fixed bug in editing the attachment info from the back end (wrong lookup of article title.) - Fixed problem with SEF mode in RC4. - Disabled display of attachments list when in secure mode and the user is not logged in. - Tested with Joomla! 1.5 RC4 (Karibu) 2007-Nov-09: Release 0.9.9e Beta - Sorted all lines in the translation files into alphabetical order. 2007-Nov-08: Release 0.9.9d Beta - Put Chinese help files into the component install file manifest. 2007-Nov-08: Release 0.9.9c Beta - Resaved language files in UTF-8 without BOM. 2007-Nov-07: Release 0.9.9b Beta - Added Chinese translations for new options, thanks to baijiangpeng (www.joomlagate.com). - Minor formating fix on illegal file extension and mime type dialog boxes. 2007-Nov-06: Release 0.9.9 Beta - Fixed bug in plugin parameters XML install file that prevented plugin parameters from being changed in some Apache/PHP/MySQL combinations. Many thanks to David Alabaster for helping track down this tricky bug! - Added note in error messages and other locations how to change the legal file/mime types (via the Media Manager settings). - Added plugin options turn off display of attachment descriptions and file sizes. - Includes Chinese translations (except for the new options added in this release). - Tested with Joomla! 1.5 Beta RC3 (Tarkriban) 2007-Oct-28: Release 0.9.8c Beta Chinese - Adds Chinese translation (Traditional and Simplified). Note that the help file has not been translated yet. Many thanks to baijianpeng for the chinese translations (http://www.joomlagate.com)! 2007-Oct-27: Release 0.9.8b Beta - Improved help page regarding errors uploading file types not permitted by the Media Manager. 2007-Oct-26: Release 0.9.8 Beta - Added language capability, including initial English translation. Includes a small hack to get the plugin language files to work on the front end. - The component install script now checks to see whether the plugin is installed and prints more apropos suggestions during installation. - Changed name 'Replacement' titles lists of articles for specific articles to 'Custom' titles. - Tested with Joomla! 1.5 Beta RC3 (Tarkriban) 2007-Oct-21: Release 0.9.7 Beta (Prerelease) - Added secure storage and downloading of attachments. - Added checks to prevent uploading of file types that are not allowed by the media manager. - Updated the display of attachments in the administrative back end to make it look nicer. - Added option to control whether the downloads are done in 'inline' mode or in 'attachment' mode. - Consolidated download functions between front end and backend so the administrator can download files from the attachments display list. - Tested with Joomla! 1.5 Beta RC3 (Tarkriban) 2007-Oct-20: Release 0.9.6 Beta - Fixed call-as-reference bug in two locations. - Fixed improper setup in add() function admin controller.php - Moved site files to their own folder in the component install zip file. - Added empty index.html files to all directories to eliminate browsing. - Tested with Joomla! 1.5 Beta RC3 (Tarkriban) 2007-Oct-13: Release 0.9.5 Beta - Fixed bug in back end for the display of articles. Now all attachments for the same article are always grouped together. - Added ability to add new attachments in the administrative back end. Consolidated some of the upload code between the front and back ends. - Tested with Joomla! 1.5 Beta RC3 (Tarkriban) 2007-Oct-09: Release 0.9.4 Beta - Added check for attachments upload directory before every upload. This eliminates the need to create the directory during installation and removes the need to install the component and plugin in any particular order. - Removed the check to make sure articles are published before allowing attachments to be added. This means articles can be created on the back end and the author can add attachments on the front end before the article is published. - Changed description delimiter to square brackets. - Tested with Joomla! 1.5 Beta RC3 (Tarkriban) 2007-Oct-06: Release 0.9.3 Beta - Cleaned up some minor issues on URL/SEF processing. - Fixed URL problems in RC3. - Tested with Joomla! 1.5 Beta RC3 (Tarkriban) 2007-Oct-01: Release 0.9.2 Beta - Added help page to back end (Components > Article Attachments > help button) - Added check to prevent overwriting files with the same name - Added prefix before system filenames for uploaded attachments. The default is the article ID prefix. The user can also choose the attachment ID prefix or no prefix. - Cleaned up permission checking. Now administrators can always add attachments regardless of their username. Added more validation before saving articles to prevent non-logged in users from adding attachments via URL exploits. - Added way for the author of an article (or admin) to delete attachments from the front end. Permissions are checked carefully first. - Added SEF links for attachment upload and delete. - Added minor graphical improvements to to the back end interface - Tested with Joomla! 1.5 Beta RC2 (Endelo) 2007-Sep-24: Bug fix release 0.9.1 Beta - Fixed bug in timestamp - Tested with Joomla! 1.5 Beta RC2 (Endelo) 2007-Sep-23: Initial release, version 0.9 Beta - Tested with Joomla! 1.5 Beta RC2 (Endelo)