Attachment Improvements By Xon 2.6.7

XF 2.1 / 2.2 / 2.3 Attachment Improvements By Xon 2.6.7

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
Attachment Improvements By Xon 2.6.7

XF 2.1 / 2.2 / 2.3 Attachment Improvements By Xon 2.6.7

Catégorie Catégorie Add-Ons
Titre du sujet Titre du sujet Attachment Improvements By Xon 2.6.7
Auteur de la discussion Auteur de la discussion laurent68
Date de début Date de début
Réponses Réponses 16
Affichages Affichages 1 042
Réaction Réaction 1
Dernier message par Dernier message par jiankunok

laurent68

Fondateur

Staff
fondateur
Réputation: 100%
Discussions
4 644
Messages
12 049
Solutions
81
J'aime
7 606
Points
198
Nécessite XF2.1 +, supprime la prise en charge de XF2.0
Correction "Appel à une fonction membre save () sur null" lors de la remise d'un fichier jpeg non valide
Correction du support des miniatures SVG pour XF2.1 (pour les nouvelles pièces jointes).

A collection of improvements to XF's attachment system.
  • SVG support
  • Nginx's X-Accel-Redirect
  • New Permissions for forum/conversations (Respects global attachment size & count limits):
    • Attachment Size (kb).
    • Maximum Attachment Count.
SVG Support
Support for SVG attachments to be displayable as normal images.

Nginx X-Accel-Redirect (OPTIONAL)

Enables the use of Nginx's X-Accel-Redirect header feature for attachment serving.
This permits XenForo to-do validation and authentication, and offload the actual file serving to Nginx. This feature is not particularly well documented, but some info found here.
After following Using DigitalOcean Spaces or Amazon S3 for file storage in XF 2.x attachments no longer show, you must follow the relevant FAQ entry!

This addon assumes the /internal_data folder exists within the webroot, and you do not have a 'deny all;' statement but instead use 'internal;' to secure the internal_data folder.

For example, XenForo is accessible from: /forum rather than then the webroot.
The following must be added to config.php :

PHP:
$config['internalDataUrl'] = '/forum/internal_data';

Something similar to the nginx config may be required in your webserver :

PHP:
location ^~ /forum/internal_data {
  internal;
  add_header Etag $upstream_http_etag;
  add_header X-Frame-Options SAMEORIGIN;
  add_header X-Content-Type-Options nosniff;
  alias /path/to/internal_data;
}

To ensure you match how XenForo serves files, add the following headers into your website config for the internal_data folder :

PHP:
add_header Etag $upstream_http_etag;
  add_header X-Frame-Options SAMEORIGIN;
  add_header X-Content-Type-Options nosniff;

New Permissions

Permits per-forum or conversation attachment size and count limits.
Respects the global forum wide attachment size/count limits, with per-usergroup settings allowing smaller values.
Due to how XF integer permissions work, 'unlimited' or '0' evaluate as no permission being set.

Post Install Instructions
Add 'svg' file extension to the list of supported to allow svg files to be uploaded.

Contributing features or bug fixes
Please create a Github Pull request via the "More Information" link.

Contributions

If you appreciate this add-on, please consider a contribution via PayPal. Details will be provide via private conversation.
Please contact me if you wish for different licencing arrangements.

Télécharger 2.1.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.2.0 - Feature update :

Fix XFMG support (ie content stored in data rather than internal_data)
Support for video stream via partial content requests
Add "Partial content maximum chunk size" option

Télécharger 2.2.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.3.0 - Maintenance update

Installer now requires php 7+ & XenForo 2.1+
Add php7 type hinting
Add icon for options group
Force global namespace for functions which are known to be optimizable to bytecode in php
Improve extracting svg dimensions

Télécharger V2.3.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.3.1 Bugfix update : Fix error when rebuilding thumbnails ("Return value must be of the type string, null returned")

Télécharger V2.3.1 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.3.2 - Bugfix update : Fix attempting to extract svg dimensions from <svg viewData> attribute.

Télécharger V2.3.2 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.4.0 :

Require XenForo 2.2+
Require php 7.2+
Improve drag&drop editor support. Thanks to @NamePros for sponsoring this feature.
Stock XenForo/Froala uses "move" which can result in unexpected content deletion.
Tint the active editor's boarder when dragging items over it, and show a file upload symbol over it.

Télécharger V2.4.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.5.0 - Security & Bugfix update :

- Only support range-requests for local files, not remote filesystems as the underlying library does not support determining if this is suppotred.
- Ensure attachments SVGs are only served as images if it is known to be valid, and inline display of SVGs is permitted.
- Remove non-implemented "Allowed Image Attachment File Extensions" option
- Add "Allow inline display of SVG image attachments" option, defaults to off (breaking change)

Télécharger V2.5.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.6.0 - Feature update :
  • Require StandardLib v1.18.0+
  • Fix typo 'Strip JPEG EXIF' option text
  • Fix "Allow inline display of SVG image attachments" option was not actually wired up as expected
  • Improve resizing of SVGs to avoid unexpected truncation
  • Improve handling of SVGs which might have been rejected due to formatting
  • Add "Only admins can upload SVGs as images" option
  • Add SVG support for XFRM icons
Télécharger V2.6.0 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.6.1 :
  • php 8.4+ compatibility
  • XF2.3 compatbility
  • Fix XFRM support when XFRM is installed after Attachment Improvements
Télécharger V2.6.1 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.6.2 - Bugfix update : Fix javascript errors when dropping attachments onto the editor.

Télécharger V2.6.2 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.6.3 - Bugfix update : Fix javascript error that could occur in the editor when a user can add attachments and does a drag&drop.

Télécharger V2.6.3 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.6.4 - Bugfix update :
  • Fix edge case where thumbnails for an svg where not generated as expected
  • Fix XF2.3 support
    • Fix XFRM 2.3.x integration failing to save SVG icons.
    • Prevent XF2.3 converting svg attachments/xfrm icons to webp when optimizing images
    • Fix XF2.3 would convert an SVG to PNG client-side on submit
    • Fix svg attachments not generating thumbnail URLs as expected for X2.3
Télécharger V2.6.4 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.6.5 - Bugfix update : Fix XF2.3 javascript error when using the "attach" button for non-svg images.

Télécharger V2.6.5 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.6.6 - Bugfix update : Fix server error when partial content requests isn't actually possible with the underlying filesystem adaptor.

Télécharger V2.6.6 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
Version 2.6.7 - Bugfix update : Fix XFRM resource icon extension was being stripped on updating for non-svg files.

Télécharger V2.6.7 :
Vous devez répondre avant de pouvoir voir le contenu des données cachées.
 
XF 2.0 / 2.1 / 2.2  [VNXF 2x] Statistics 1.1
XF 2.1 / 2.2 / 2.3  Search Improvements 2.17.2
Ajout de la version 2.2.0 :)
 
Ajout de la version 2.3.0 :)
 
Ajout de la version 2.3.1 :)
 
Ajout de la version 2.3.2 :)
 
Ajout de la version 2.4.0 :)
 
Ajout de la version 2.5.0 :)
 
Ajout de la version 2.6.0 :)
 
Ajout de la version 2.6.1 :)
 
Ajout de la version 2.6.2 :)
 
Ajout de la version 2.6.3 :)
 
Ajout de la version 2.6.5 :)
 
Ajout de la version 2.6.6 :)
 
Ajout de la version 2.6.7 :)
 
Sujets similaires Les plus vues Voir plus
Retour
Haut Bas