MyBBhub
Edit Private Messages - Printable Version

+- MyBBhub (https://mybbhub.shop)
+-- Forum: Plugins (https://mybbhub.shop/forumdisplay.php?fid=8)
+--- Forum: Free Plugins (https://mybbhub.shop/forumdisplay.php?fid=21)
+--- Thread: Edit Private Messages (/showthread.php?tid=182)



Edit Private Messages - PARADOX - 22-06-2026

Edit Private Messages


Allows users to edit their private messages with advanced features.


Edit Private Messages

Overview
The PM Edit Plugin allows users to edit private messages after sending or receiving them.
Includes edit history, moderator hard editing, and admin log management.

Main Features

User Features
  • Edit Received PMs
  • Edit Sent PMs
  • Quick Edit (AJAX inline editing)
  • Full Edit (edit subject + message)
  • Edit History with word-level difference view
  • "Last Edited By" notice
  • Optional Edit Reason field
  • Configurable time limit for editing
Admin / Moderator Features
  • Hard Edit (edit recipient copy of sent PM)
  • Admin Control Panel logs
  • Bulk delete logs
  • Automatic weekly log pruning


Requirements
  • MyBB 1.8.x
  • PluginLibrary (recommended)


Plugin Settings
  • Enable PM Editing — Turn feature on/off globally
  • Edit Time Limit — Minutes allowed to edit (0 = unlimited)
  • Allowed Usergroups — Select usergroups allowed to edit PMs
  • Allow Editing Received PMs — Yes / No
  • Allow Editing Sent PMs — Yes / No
  • Allow Hard Editing — Edit recipient copy as well
  • Hard Edit Allowed Groups — Mods / Admins
  • Track Edit History — Save previous versions
  • Show Edit Notice — Display "Last Edited By"
  • Allow Edit Reason — Enable reason field
  • Max Edit History Entries — Limit history (0 = unlimited)
  • Excluded Folders — Default: Drafts (3), Trash (4)


Database Changes

New Columns in privatemessages Table
  • edituid
  • edittime
  • editreason
  • pm_conversation_key

New Table: pm_edit_history

Code:
hid pmid uid edituid original_subject original_message edited_subject edited_message editreason dateline ipaddress


File Structure

Code:
inc/plugins/ ├── pm_edit.php └── PM_Edit/     ├── install.php     ├── uninstall.php     ├── database.sql     ├── settings.json     ├── Functions/     ├── Templates/     └── Assets/ inc/languages/english/ ├── pm_edit.lang.php └── admin/pm_edit.lang.php inc/tasks/ └── pm_edit_prune_logs.php


Templates Created
  • pm_edit_button
  • pm_edit_form
  • pm_edit_reason_field
  • pm_edit_history
  • pm_edit_history_item
  • pm_edit_history_empty
  • pm_edit_history_link
  • pm_edit_notice

Templates Modified
  • postbit
  • postbit_classic
  • private_read

Admin Tools

Access:
Admin CP → Tools → PM Edit Logs
  • View edit history
  • Compare original vs edited content
  • Delete individual logs
  • Bulk delete selected logs
  • Delete all logs


How It Works

Quick Edit
  1. Click Edit button
  2. Select Quick Edit
  3. Edit inline
  4. Save via AJAX
Full Edit
  1. Click Full Edit
  2. Edit subject and message
  3. Submit changes
Hard Edit (Moderators)
  • Edits sender and recipient copies
  • Uses conversation key linking
  • Logs history for both copies
Edit History
  • Stores previous versions
  • Shows timestamps
  • Highlights added and removed words

Warning: All edit history logs will be deleted.