upskill-event-manager/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/templates
bengizmo edd8e46f37 fix: Certificate viewing URLs and duplicate prevention display
This commit addresses the final two certificate issues reported by the user:

## 1. Fixed Certificate View 404 Error
**Issue:** Clicking 'View' on certificates resulted in 404 error at /hvac-certificate/{token}/ URLs
**Solution:**
- The certificate security system uses custom rewrite rules for secure download URLs
- Added rewrite rule: hvac-certificate/([^/]+)/?$ → index.php?certificate_token=
- WordPress rewrite rules were not properly flushed after plugin updates
- Deploy script now ensures rewrite rules are flushed on every deployment
- This enables the secure token-based certificate download system to function properly

## 2. Enhanced Certificate Duplicate Prevention Display
**Issue:** Users received confusing 'Failed to generate certificates. 1 duplicate(s) skipped.' message
**Solution:**
- Added certificate status checking in Generate Certificates template
- New 'Certificate Status' column shows which attendees already have certificates
- Attendees with existing certificates:
  - Show checkmark (✓) instead of checkbox
  - Display 'Certificate Issued' status
  - Cannot be selected for regeneration
  - Are visually distinguished with styling
- Added informative notice explaining duplicate prevention
- Users now see exactly which attendees have certificates before attempting generation

## Technical Implementation:
- Certificate security handler properly validates tokens and serves PDFs
- One-time use tokens with 1-hour expiry for security
- Certificate manager checks for existing certificates per attendee
- UI clearly indicates certificate status to prevent confusion

These fixes complete the certificate functionality restoration, providing a smooth user experience for certificate generation, viewing, and management.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-23 23:06:26 -03:00
..
certificates fix: Certificate viewing URLs and duplicate prevention display 2025-05-23 23:06:26 -03:00
community feat: Enhanced test data creation and login system improvements 2025-05-22 15:54:15 -03:00
email-attendees fix: Improve email sending functionality and debugging 2025-05-20 16:48:23 -03:00
event-summary feat: Implement certificate generation system 2025-05-20 15:17:55 -03:00
page-community-login.php feat: Enhanced test data creation and login system improvements 2025-05-22 15:54:15 -03:00
single-hvac-event-summary.php fix(tests): Resolve Task 4.7 integration test issues & UMB 2025-04-02 07:02:06 -03:00
single-hvac-order-summary.php feat: Implement Order Summary page functionality 2025-05-20 09:56:28 -03:00
template-edit-profile.php feat: Add trainer profile editing functionality 2025-05-20 09:47:22 -03:00
template-event-summary.php feat: Add Email Attendees functionality (Phase 2) 2025-05-20 10:33:03 -03:00
template-hvac-dashboard.php fix: Complete resolution of 5 critical bugs in certificate and navigation systems 2025-05-23 19:58:02 -03:00
template-trainer-profile.php fix: Resolve 5 critical bugs in certificate management and navigation system 2025-05-23 18:53:03 -03:00