The today's update of the
Files and Images Attachments plugin contains fixes and improvements collected in more than 2 years. Now when the file is chosen and put under the Browse box, its size is visible, and it's possible to eliminate this upload, if something went wrong. There are new settings which allow to publish hidden contents to Guests per-forum. Cookie functions are finally aligned with those default for miniBB, and all hidden contents should be now also shown properly in the Premoderation panel, if you have the
Premoderation add-on installed.
Updates files and codes listed below:
- /img/lock.png — NEW and default file to display if thumbnails are disabled for Guests in a hidden content.
- /lang/fileupload_eng.php — new var: $l_fuForMembersOnly [all language packs updated].
- /templates/addon_fileupload_rules_rus.html — converted to UTF-8.
- /templates/addon_filecheck.js — the similar common JavaScript codes now are used for both the File Attachments and File Bank add-ons.
- addon_fileupload.php — additions regarding $closedContentGuests option; new JS functions: `outputFUSize` and `removeAttachment` to handle attachments in a more enhanced way (i.e. display the pre-uploaded file size, and the [X] link to remove the upload); 'id' attribute added to 'userfilename' fields.
- addon_fileupload_options.php — new options:
$closedContentGuests=1;
$closedContentThumbnails=1;
$lockedPicName=$main_url.'/img/lock.png';
$lockedPicWidth=128;
$lockedPicHeight=166;
Also here, the
$origFileExt option, with an updated comment moved upper to the Closed content settings.
- bb_plugins_parseMessage.code.txt — update regarding new settings, and how the closed content is displayed for various files; the fix regarding full-size images displayed in the Premoderation panel when `$origFileExt=FALSE`; $stepmod changed to $GLOBALS['stepmod'] (bugfix); $smAdd addition; self-closed tags removed.
- bb_plugins.code.txt — `setcookie` changed to `setGenCookie`; `text/javascript` tags removed; self-closed tags removed; check-up if $_GET['tplName'] is set to avoid PHP notice.
- bb_plugins2.code.txt — '.gif' added to the deleted extensions array; deltopic array improved/reduced; `setcookie` changed to `setGenCookie`; `text/javascript` tags removed.
- README.txt — additions for OPEN/CLOSE CONTENTS FROM CERTAIN FORUMS TO GUESTS.
As usually, all changes are possible to test under the
miniBB Full Demo website; they are also available in the
Compiler.
Enjoy! 😎