๐ How to Use Certificate in Your Course
Simple step-by-step guide for teachers and admins
๐ฏ Quick Overview
5 minutes
2 minutes
Automatic
Done! โ
Step 1: Design Your Certificate
Open the Editor
Choose Size & Orientation
- Size: Choose A4 (standard) / A5 (small) / Letter (US)
- Orientation: Choose Landscape (horizontal) or Portrait (vertical)
Add Your Content
- Click โ Add Text โ Type "Certificate of Completion"
- Add student name placeholder: "John Doe"
โ ๏ธ This is a PLACEHOLDER! System will automatically replace it with real student names like "Hassan Eikial", "Sara Ahmed", etc.
- Add course name placeholder: "Advanced Web Development"
โ ๏ธ This is a PLACEHOLDER! System will replace it with actual course name like "Web Development", "ILT Virtual Rooms", etc.
- Add date placeholder: "10.26.2025"
โ ๏ธ This is a PLACEHOLDER! System will replace it with the actual date when certificate is issued.
- Click ๐ Upload Background (optional)
certificate_preview.php
Step 2: Add Certificate to Your Course
Navigate to Your Course
- Log in as Teacher or Admin
- Go to your course
- Click "Turn editing on"
Add Certificate Activity
- Click "Add an activity or resource"
- Select "Certificate"
- Click "Add"
Configure Settings
Step 3: How Students Get Certificates
The Student Journey
- Student enrolls in course
- Student completes all activities
- System checks requirements โ
- Student sees certificate activity
- Student clicks certificate
- Magic happens! โจ
- Student downloads personalized PDF
๐ฏ The Magic Part! (Automatic Replacement)
System automatically:
- Loads your design from editor
- Replaces placeholders with REAL DATA:
- Generates beautiful PDF with real data
- Shows download button
Understanding Placeholders (IMPORTANT!)
โ Common Question: Are these names fixed?
NO! They are NOT fixed!
These are PLACEHOLDERS (examples only). The system automatically replaces them with real data for each student!
โ WRONG Understanding
Thinking that:
- All students get "John Doe" on certificate
- All certificates show "Advanced Web Development"
- All certificates have same date "10.26.2025"
This is WRONG! โ
โ CORRECT Understanding
Reality:
- Each student gets THEIR OWN name
- Each certificate shows ACTUAL course name
- Each certificate has REAL issue date
This is CORRECT! โ
๐ Real Example with 3 Students:
| Student | What They See on Certificate | Issue Date |
|---|---|---|
| Hassan Eikial |
Certificate for "Hassan Eikial" Course: "Web Development" |
26 October 2025 |
| Sara Ahmed |
Certificate for "Sara Ahmed" Course: "Web Development" |
27 October 2025 |
| Ali Hassan |
Certificate for "Ali Hassan" Course: "Web Development" |
28 October 2025 |
You create ONE design with placeholders, and the system uses it to create THOUSANDS of personalized certificates automatically!
Real Example: "Web Development" Course
๐จโ๐ซ You (Teacher)
- Design certificate in editor
- Add to course
- Set required grade: 70%
- Save โ
๐จโ๐ Student "Hassan"
- Enrolls in course
- Completes lessons
- Gets 85% on quiz
- Downloads certificate โ
Certificate Sizes Explained
| Size | Dimensions | Print Size | Best For |
|---|---|---|---|
| A4 | 842 x 595 px | 297 x 210 mm | Standard certificates (most popular) |
| A5 | 595 x 420 px | 210 x 148 mm | Compact certificates, badges |
| Letter | 816 x 612 px | 11 x 8.5 inch | US-based institutions |
Pro Tips
๐จ Design Tips
- โ Use clear, readable fonts
- โ Good contrast (dark on light)
- โ Leave margins (20-30px)
- โ Test with long names
- โ Preview before using
๐ Course Setup Tips
- โ Select "Custom Editor" type
- โ Set realistic requirements
- โ Test as student first
- โ Enable email notifications
๐จโ๐ Student Experience
- โ Explain requirements clearly
- โ Show where certificate is
- โ Congratulate when earned
Troubleshooting
โ Certificate shows default design
Solution:
- Check "Custom Editor" is selected
- Verify layout is saved (check preview)
- Clear cache: Site admin โ Development โ Purge all caches
โ Student can't download certificate
Solution:
- Check student met requirements
- Verify student is enrolled
- Check activity is visible
โ Placeholders not replaced
Solution:
- Use exact placeholders: "John Doe", "Advanced Web Development", "10.26.2025"
- Verify certificate was issued (not just previewing)
Quick Checklist
Before Using in Course
- Design created in editor
- Layout saved
- Preview looks good
- Tested with long names
When Adding to Course
- Certificate activity added
- "Custom Editor" selected
- Requirements configured
- Activity visible to students
After Students Start
- Monitor issued certificates
- Check for issues
- Celebrate with students!
QR Code Integration (NEW!)
What is QR Code Verification?
QR codes allow anyone to scan the certificate with their smartphone and instantly verify its authenticity. Each certificate gets a unique QR code that links to a verification page showing the student's details.
Click "๐ฑ Add QR Code" in editor
Drag to bottom right, save layout
QR code embedded in PDF automatically
Anyone can verify certificate instantly
How to Add QR Code:
Open Certificate Editor
http://localhost/totara/server/mod/certificate/certificate_editor.php
Click "๐ฑ Add QR Code" Button
Find the button in the toolbar at the top of the editor
Position the QR Code
- Recommended: Bottom right corner
- Position: X: 720px, Y: 475px (for A4 landscape)
- Size: 100x100px (recommended)
Save Your Layout
Click "๐พ Save Layout" button. The QR code position is now saved!
QR Code Sizes:
| Size | Pixels | Best For | Scanability |
|---|---|---|---|
| Small | 80x80px | Top corners, subtle | โ Good |
| Recommended โญ | 100x100px | Bottom corners | โ Excellent |
| Large | 150x150px | High visibility | โ Perfect |
| Too Large | 200x200px | - | โ ๏ธ Distracting |
What Happens When Certificate is Issued:
- Student completes course โ Clicks certificate activity
- System generates unique code โ Example: "ABC123XYZ"
- QR code image created โ Saved as certificate_ABC123XYZ.png
- QR embedded in PDF โ At the position you specified
- Student downloads certificate โ With working QR code
How to Verify Certificate:
Point at QR code
Camera recognizes code
verify.php?code=ABC123XYZ
Student, course, date, status
Security Features:
- Unique Codes: Each certificate gets a unique verification code
- Database Linked: Code is linked to specific student, course, and date
- Timestamped: Issue date and time recorded
- Cannot Be Forged: Codes cannot be duplicated or guessed
- Instant Validation: Real-time database check
Preview vs PDF:
| Location | What You See | Purpose |
|---|---|---|
| Editor | Blue dashed box with ๐ฑ icon | Design placeholder |
| Preview Page | Blue dashed box "QR Code Verification" | Visual reference |
| Final PDF | Real scannable QR code | Actual verification |
Troubleshooting QR Codes:
โ Problem: QR not showing in preview
Solutions:
- Make sure you saved the layout after adding QR code
- Refresh preview page (Ctrl+F5)
- Clear browser cache
- Check browser console for errors
โ Problem: QR not in PDF
Solutions:
- Ensure certificate was actually issued (student completed course)
- Check that certificate type is "Custom Editor"
- Verify /local/qr/ directory exists and has write permissions
- Check PHP error log for QR generation errors
โ Problem: QR won't scan
Solutions:
- Increase QR size to 150x150px
- Ensure good contrast (white background works best)
- Don't place QR over busy backgrounds
- Use better lighting when scanning
- Hold phone steady, 15-30cm away from QR code
Complete Example:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ ๐ Certificate of Achievement โ
โ โ
โ Hassan Eikial โ
โ โ
โ has successfully completed โ
โ โ
โ Web Development Course โ
โ โ
โ 26 October 2025 โ
โ โ
โ โโโโโโโ โ
โ โโโโโโโ โ
โ โโ โ โโ โ QRโ
โ โโโโโโโ โ
โ โโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
QR code integration is fully implemented. Add QR codes to your certificates now for instant, secure verification!
Quick Links
Summary
Your First Certificate in 3 Steps:
Open editor โ Design โ Save
Open course โ Add certificate โ Save
Students download certificates โ