ตัวแก้ไขธีม

กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see


[KraiCh] XFRM Version Restore

addon 2.x [KraiCh] XFRM Version Restore 1.0.0

เวอร์ชัน XF ที่เข้ากันได้
  1. 2.2
  2. 2.3
ข้อกำหนดเพิ่มเติม
XenForo 2.2.0+
XenForo Resource Manager (XFRM) 2.2.0+
PHP 8.0.0+
# [KraiCh] XFRM Version Restore
Allows moderators and resource owners/team members to restore a previous resource version as the current active version, and to undelete soft-deleted versions — directly from the resource version history page.
2026-04-07_18-45-33.webp
## Features
- **Restore version** — Promotes any visible previous version back to the current active version of a resource.
- **Undelete version** — Restores a soft-deleted version back to visible state, with moderator action logging.
- Both actions are surfaced as inline overlay actions on the resource version history page.
- Permission-gated: separate permissions for moderators and for resource owners/team members.
## Permissions
Three permissions are added under the **Resource** permission group:

2026-04-07_18-44-20.webp
| Moderator | Can restore any visible previous version as current (applies to all resources) |

2026-04-07_18-43-57.webp
| User/Team | Resource owner or team member can restore their own previous versions |
| User/Team | Resource owner or team member can undelete their own soft-deleted versions |

> Moderators with the existing XFRM `deleteAny` permission can also undelete versions on any resource.

## Installation
1. Upload the addon files to `src/addons/KraiCh/KraiRMVersionRestore/`.
2. In the XenForo Admin CP, go to **Add-ons** and install **[KraiCh] XFRM Version Restore**.
3. Assign the desired permissions to the relevant user groups.
## Usage
After installation, the **Restore** and **Undelete** action buttons appear as additional columns in the resource version history table (`resources/history`) for users who have the relevant permissions.
- **Restore** — Visible on non-current, visible versions. Opens a confirmation overlay before promoting the version.
- **Undelete** — Visible on soft-deleted versions. Opens a confirmation overlay showing who deleted the version before restoring it.
## Changelog
### 1.0.0

- Initial release.
  • restore_1.webp
    restore_1.webp
    33.9 กิโลไบต์ · จำนวนการดู: 3
  • restore_2.webp
    restore_2.webp
    29.8 กิโลไบต์ · จำนวนการดู: 2
  • restore_3.webp
    restore_3.webp
    38 กิโลไบต์ · จำนวนการดู: 2
ไม่มีสิทธิ์ดาวน์โหลด

ผู้เขียน
Krai_ch 
การดาวน์โหลด
0
จำนวนการดู
20
การเปิดตัวครั้งแรก
การอัปเดตล่าสุด

การให้คะแนน

0.00 ดาว 0 การให้คะแนน

ไฟล์เพิ่มเติมจาก Krai_ch



กลับ
ยอดนิยม ด้านล่าง