miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
News miniBB Support Forums / News /  
 

Files & Pictures Attachments add-on update: more flexible hidden content settings, advanced pre-upload infos, minor bugfixes

 
Author Paul
Lead Developer 
#1 | Posted: 26 Jun 2024 17:31 
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! 😎

News miniBB Support Forums / News /
 Files & Pictures Attachments add-on update: more flexible hidden content settings, advanced pre-upload infos, minor bugfixes
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑