Screen MP – PatchNote V1.6.5.0 | 22/10/2025

Author: Mitannie

OPTIMIZATIONS

  • Global improvement of PHP performance and code structure.
  • Enhanced compatibility with PHP 8.x (fixed outdated functions and reference passing issues).
  • Optimized thumbnail generation (1280px / 720px) for consistent visual quality.
  • Reduced REST API latency for multiple simultaneous uploads.
  • Adjusted automatic compression (82%) to balance file quality and size.
  • Complete redesign of the dark mode and improved responsive layout for the upload interface.
  • Cleaned and optimized JavaScript uploader for smoother interaction and better browser support.

NEW FEATURES & CHANGES

Full integration with ScreenMP Accounts

  • Uploaded images are now automatically linked to the currently logged-in user.
  • When a user is part of a Business account, any media uploaded from a “Business” page is linked to the company via the smp_company_id tag.
  • Added hook for external synchronization: do_action('smp_media_uploaded', $image_id, $user_id, $company_id);
    ➜ Used for automatic sync with Discord bots, logs, or third-party modules.

Business Account Management

  • New full compatibility between Screen MP Images and ScreenMP Accounts plugins.
  • Business accounts now have a shared image library, accessible via /business/library.
  • Uploaded files in this context are visible to all company members.
  • The company founder can delete any media in the business library;
  • members can only delete their own uploads.

New Shortcodes

ShortcodeDescription
[ screen_mp ]Main Screen MP uploader (drag & drop, copy-paste, file selector).

Connectez-vous pour voir vos images.

Displays the user’s personal image library.

Connectez-vous pour voir les images de votre entreprise.

Displays the shared company library for Business accounts.
do_action('smp_render_business_uploader', $user_id, $company_id)Hook to embed the uploader inside /business/library.

Business Page Integration

  • The Screen MP uploader can now be automatically rendered in company spaces using the Accounts plugin hook: do_action('smp_render_business_uploader', $user_id, $company_id);
  • Context-based display:
    -> /library → personal uploads only.
    -> /business/library → company uploads only.

Admin Panel Redesign

  • Centralized image management view: preview, status, reports, and deletion in one place.
  • Improved settings panel: CDN, anti-hotlink, CORS, compression, and auto-clean options.
  • Clear separation between personal and business images in the backend.
  • Improved database indexing for faster listing and filtering.

BUG FIXES

  1. Fixed several PHP errors (??, .=, REST response, temporary files).
  2. Fixed the “Unexpected identifier ‘Delete’” error in the admin panel.
  3. Resolved wp_handle_sideload(): Argument #1 ($file) compatibility issue with PHP 8.x.
  4. Fixed incorrect file paths and image URLs in certain upload contexts.
  5. Fixed [ screen_mp ] shortcode display issue (uploader not loading properly).
  6. Fully rewritten uploader.js script:
    – supports drag & drop,
    – copy & paste,
    – file selection.
  7. Improved multisite compatibility and permalink handling for /screenmp/i/{id}.
  8. Fixed a critical issue where switching account type could remove the administrator role — now fully protected with “Admin-Safe” logic.

SECURITY & MODERATION

  • Added an integrated report system: reported images are automatically flagged for moderation by the France Logistique team.
  • Added Discord webhook notifications for every report or deletion.
  • Improved anti-hotlink protection with customizable whitelists.
  • Enhanced file validation (size, type, and extension filtering).
  • Secure deletion process with user permission checks and nonce validation.

Last update: 23/10/2025

💙Thank you to all TruckersMP community members who support the project !

Tags:

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *