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

Preview

Tác giả: Nitje

Phiên bản: 0.0.1

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

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

Forum Display Show Thread
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 using the MyBB upload function (e.g. as a clipboard_YYYYMMDD_HHMMSS.png).
Inline placement: At the exact last cursor position, the plugin places the placeholder [attach-ment=ID] in the text.

Representation: At the bottom of the post, the image appears normally in the attachment list (file name e.g. clipboard_.... png).
In the text, the image will appear inline, just as if you had clicked "Paste to post" at the bottom.
Removing the tag: If you delete the [attach-ment=ID] tag from the text, the image will only remain as an attachment.
Scope: The plugin only applies to newthread.php, newreply.php, and editpost.php. The normal upload function remains unchanged.


Installation
Upload plugin files to inc/plugins/.
Activate in ACP.
In the ACP settings for DEBUG can be made.

Error Case & Permissions
If nothing happens during the insertion except that the cursor jumps up, the plugin probably couldn't create the required script:

Check the write permissions of the scripts folder in question (the web server user must be allowed to write).
Procedure (practical example): Set the folder to 0757 for a short time, 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.

Uninstall
Only when deactivating and uninstalling does the plugin remove the associated script again (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 using the MyBB upload function (e.g. as a clipboard_YYYYMMDD_HHMMSS.png).
Inline placement: At the exact last cursor position, the plugin places the placeholder [attach-ment=ID] in the text.

Representation: At the bottom of the post, the image appears normally in the attachment list (file name e.g. clipboard_.... png).
In the text, the image will appear inline, just as if you had clicked "Paste to post" at the bottom.
Removing the tag: If you delete the [attach-ment=ID] tag from the text, the image will only remain as an attachment.
Scope: The plugin only applies to newthread.php, newreply.php, and editpost.php. The normal upload function remains unchanged.


Installation
Upload plugin files to inc/plugins/.
Activate in ACP.
In the ACP settings for DEBUG can be made.

Error Case & Permissions
If nothing happens during the insertion except that the cursor jumps up, the plugin probably couldn't create the required script:

Check the write permissions of the scripts folder in question (the web server user must be allowed to write).
Procedure (practical example): Set the folder to 0757 for a short time, 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.

Uninstall
Only when deactivating and uninstalling does the plugin remove the associated script again (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