1.8.x Tính Năng: Clipboard Image to PM

Preview

Tác giả: Nitje

Phiên bản: 0.0.3

Gửi lúc: 09/09/2025

Cập nhật lúc: 14/09/2025

User Profiles Communication
Mô tả
This is how the insertion works Paste:
Paste an image from the clipboard into the editor text box.
Upload: The plugin uploads the file.
Inline placement: At the exact last cursor position, the plugin places the placeholder [im-g] in the text.

Representation:
By clicking on Preview, it will then also be displayed.
In the text, the image is displayed inline.
Maximum size=10MB Automatic deletion from the image, after 14 days.
Scope: The plugin only responds to private.php

Installation
Upload plugin files to inc/plugins/.
Check the write permissions of the folders /jscripts and the /inc/tasks -> temporarily at 0757
Install & Activate in ACP.
Now reset the folder permissions to the previous setting
In ACP settings such as Maximum Size, Duration of Storage and DEBUG can be made. A task is created for cleanup.
Delete function for single or multiple file uploads for user added in usercp under messages clipboard attachments

Error Case & Permissions
If only the img tag_data_image_png_base64... it says, the plugin probably couldn't create the required scripts:

Check the write permissions of the jscripts folder in question and the /inc/tasks folder (the web server user must be allowed to write).
Procedure (practical example): Set the folder to 0757 for a short time, Install & Activate plugin, Reset rights.
Background: Your login user (e.g. ABC) may be different from the web server user (e.g. XYZ). The decisive factor is that XYZ has write permissions. 

Then deactivate and uninstall the plugin, and only now install and activate it. The order is crucial.



My test system (nginx and other versions not tested):


MyBB Version 1.8.39
PHP Version 8.3.12
SQL Engine: MySQLi 8.0.40

Apache/2.4.65 (unix) OpenSSL/3.5.1


If pasting doesn't work at all, meaning you can't even paste text, then it's the browser's fault, which requires an https connection to access the clipboard.


Uninstall
When disabling deletes only cleaning task! Uninstalling removes the plugin, the associated script and settings (clean for future updates).
This is how the insertion works Paste:

Paste an image from the clipboard into the editor text box.
Upload: The plugin uploads the file.
Inline placement: At the exact last cursor position, the plugin places the placeholder [im-g] in the text.

Representation:
By clicking on Preview, it will then also be displayed.
In the text, the image is displayed inline.
Maximum size=10MB Automatic deletion from the image, after 14 days.
Scope: The plugin only responds to private.php

Installation
Upload plugin files to inc/plugins/.
Check the write permissions of the folders /jscripts and the /inc/tasks -> temporarily at 0757
Install & Activate in ACP.
Now reset the folder permissions to the previous setting
In ACP settings such as Maximum Size, Duration of Storage and DEBUG can be made. A task is created for cleanup.
Delete function for single or multiple file uploads for user added in usercp under messages clipboard attachments

Error Case & Permissions
If only the img tag_data_image_png_base64... it says, the plugin probably couldn't create the required scripts:

Check the write permissions of the jscripts folder in question and the /inc/tasks folder (the web server user must be allowed to write).
Procedure (practical example): Set the folder to 0757 for a short time, Install & Activate plugin, Reset rights.
Background: Your login user (e.g. ABC) may be different from the web server user (e.g. XYZ). The decisive factor is that XYZ has write permissions. 

Then deactivate and uninstall the plugin, and only now install and activate it. The order is crucial.



My test system (nginx and other versions not tested):


MyBB Version 1.8.39
PHP Version 8.3.12
SQL Engine: MySQLi 8.0.40

Apache/2.4.65 (unix) OpenSSL/3.5.1


If pasting doesn't work at all, meaning you can't even paste text, then it's the browser's fault, which requires an https connection to access the clipboard.


Uninstall
When disabling deletes only cleaning task! Uninstalling removes the plugin, the associated script and settings (clean for future updates).


Vietnamese Mybb Community

Diễn đàn MyBB Việt Nam là cộng đồng trực tuyến dành cho những người yêu thích và sử dụng hệ thống diễn đàn MyBB. Nơi này cung cấp không gian để chia sẻ kiến thức, kinh nghiệm và hỗ trợ về cài đặt, tối ưu hóa, và thiết kế giao diện. Với mục tiêu tạo ra một cộng đồng sôi nổi, MyBB Việt Nam là điểm đến lý tưởng cho cả người mới và chuyên gia để kết nối và học hỏi về MyBB.


Mã nguồn bởi MyBB, © 2002-2025 MyBB Group • © 2023-2025 Mybb.VN - Đây là dự án cộng đồng sử dụng MyBB, không thuộc về Nhóm MyBB chính thức.

Hệ Thống

Thời gian hiện tại: 05-10-2025, 05:43 PM

USA - VN

hello@mybb.vn