1.8.x Tính Năng: Avatar Resize (MyBB 1.8.x)

Preview

Tác giả: BabbelDud

Phiên bản: 1.0.0

Gửi lúc: 6 giờ trước

Cập nhật lúc: 6 giờ trước

User Profiles
Mô tả
Features
  • Automatic resizing of avatars during upload in the User Control Panel.
  • ACP settings: enable/disable, max width/height, JPEG quality.
  • Supported formats: JPEG, PNG, GIF (transparency preserved for PNG/GIF).

How it works
The plugin hooks into usercp_do_avatar_end. After MyBB completes the avatar upload, the image is proportionally downscaled if it exceeds your maximum values. The new dimensions are stored in users.avatardimensions. Smaller images are left unchanged (the dimensions field may be updated).

Installation

1. Upload the files from the upload/ folder into your MyBB root (e.g., via FTP).
2. Go to ACP -> Configuration -> Plugins and activate Avatar Resize.
3. Configure under ACP -> Configuration -> Settings -> Avatar Resize:
  • Enabled: on/off
  • Max width (px): default 200
  • Max height (px): default 200
  • JPEG quality (0–100): default 85

Notes
The plugin overwrites the uploaded file; no backup of the original is kept.
Features
  • Automatic resizing of avatars during upload in the User Control Panel.
  • ACP settings: enable/disable, max width/height, JPEG quality.
  • Supported formats: JPEG, PNG, GIF (transparency preserved for PNG/GIF).

How it works
The plugin hooks into usercp_do_avatar_end. After MyBB completes the avatar upload, the image is proportionally downscaled if it exceeds your maximum values. The new dimensions are stored in users.avatardimensions. Smaller images are left unchanged (the dimensions field may be updated).

Installation

1. Upload the files from the upload/ folder into your MyBB root (e.g., via FTP).
2. Go to ACP -> Configuration -> Plugins and activate Avatar Resize.
3. Configure under ACP -> Configuration -> Settings -> Avatar Resize:
  • Enabled: on/off
  • Max width (px): default 200
  • Max height (px): default 200
  • JPEG quality (0–100): default 85

Notes
The plugin overwrites the uploaded file; no backup of the original is kept.

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:42 PM

USA - VN

hello@mybb.vn