Ray 2113 Erectionary update

π Word Request System Overhaul
π What’s New
We’ve completely overhauled the Word Request system. You now have full control over approving, rejecting, and managing word requests from members.
π Duplicate Checking Added
Members can no longer request words that already exist or are already pending review.
What This Prevents
- Already decoded: Prevents requesting words already in the library
- Already pending: Prevents requesting words already submitted (unless rejected or approved)
π‘ Why This Matters
No more duplicate requests clogging the system. Members now see clear error messages when trying to request a word that’s already in the system.
π₯ Admin Approval System
A new Word Requests page has been added to the admin panel, giving you full control over all incoming requests.
π Where to Find It
Erectionary β Word Requests (new submenu item)
π What You Can Do
- View all pending requests with status, user, points, and date
- Apply bulk actions to multiple requests at once
- Take single actions on individual requests
- Track request status through the full workflow
π Status Tracking Workflow
Every word request now follows a clear status path from submission to completion:
β‘ Admin Actions
Bulk Actions
- β Approve β Moves requests to “In Process” and notifies users
- β Complete β Marks as “Approved” and notifies users
- β Reject β Refunds points (full or percentage) and notifies users
- ποΈ Delete β Permanently removes requests
Single Actions
- π Decode β Opens the Add Word page with all request data pre-filled
- β Approve β Moves request to “In Process”
- β Complete β Marks as “Approved”
- β Reject β Refunds points (full or percentage)
- ποΈ Delete β Permanently removes request
π‘ Point Refund
When rejecting a request, you can choose to refund 100% or a percentage of the points paid. The user is automatically notified.
π¬ Notification System
Users and admins now receive notifications at key points in the request workflow.
π What Gets Sent
- Admin notification β Email sent when a new request is submitted
- User notification β Email sent when status changes (pending β in_process β approved β rejected)
- User inbox message β Message stored in member’s dashboard when request is decoded
π Files Updated
includes/requests.php β Updated
- Added duplicate checking (already decoded + already pending)
- Added admin notification on new request
- Added error messages for duplicates in shortcode form
includes/admin.php β Updated
- Added Word Requests admin page with full approval system
- Added notification functions
π― Final Status
β‘ What Still Works
- β
Members can request words via
Please login to request a word decoding.
- β Points are deducted for paid requests
- β Requests are stored in the database with status “pending”
- β Admins can approve, reject, or delete requests
- β Users receive notifications when their request status changes
