upskill-event-manager/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events
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
..
assets fix: Complete certificate functionality restoration 2025-05-23 21:36:58 -03:00
bin feat: Add Zoho CRM integration with staging mode protection 2025-05-19 13:17:44 -03:00
docs feat: Implement certificate generation system 2025-05-20 15:17:55 -03:00
includes fix: Complete resolution of 5 critical bugs in certificate and navigation systems 2025-05-23 19:58:02 -03:00
templates fix: Certificate viewing URLs and duplicate prevention display 2025-05-23 23:06:26 -03:00
tests feat: Add Email Attendees functionality (Phase 2) 2025-05-20 10:33:03 -03:00
tmp-fixes docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
.gitignore feat: Add Zoho CRM integration with staging mode protection 2025-05-19 13:17:44 -03:00
bootstrap-staging.php Clean up repository: Remove WordPress core files from tracking 2025-05-18 18:43:41 -03:00
composer.json feat: Implement certificate generation system 2025-05-20 15:17:55 -03:00
composer.lock test: Add certificate generation tests and deployment tools 2025-05-20 15:32:29 -03:00
create-trainer-profile-page.php feat: Add Trainer Profile page and functionality 2025-05-20 07:43:39 -03:00
hvac-community-events-fixed.php docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
hvac-community-events.php fix: Resolve 5 critical bugs in certificate management and navigation system 2025-05-23 18:53:03 -03:00
hvac-community-events.php.bak docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
hvac-fixed-activation.php fix: Resolve 5 critical bugs in certificate management and navigation system 2025-05-23 18:53:03 -03:00
hvac-staging-plugin.php docs: Update testing procedures in CLAUDE.md with comprehensive E2E test workflow 2025-05-21 20:12:22 -03:00
phpunit.xml feat: Add Zoho CRM integration with staging mode protection 2025-05-19 13:17:44 -03:00
phpunit.xml.dist feat(testing): Implement HVAC_Test_User_Factory and update .gitignore 2025-04-14 17:41:36 -03:00
refactoring-plan.md feat: Add Zoho CRM integration with staging mode protection 2025-05-19 13:17:44 -03:00
test-zoho-ajax.php feat: Enhanced test data creation and login system improvements 2025-05-22 15:54:15 -03:00
wp-tests-config-staging.php update: Change staging domain to upskill-staging.measurequick.com 2025-05-21 16:42:10 -03:00
wp-tests-config.php Update plugin verification and integration scripts for correct TEC plugin slugs; resolve activation issues; document E2E test failures and update integration testing plan 2025-04-24 14:54:39 -03:00
wp-tests-config.php.bak.20250424054541 Clean up repository: Remove WordPress core files from tracking 2025-05-18 18:43:41 -03:00