๐ŸŽ“ How to Use Certificate in Your Course

Simple step-by-step guide for teachers and admins

Reading time: 5 minutes | Everything you need to know!

๐ŸŽฏ Quick Overview

1
Design Certificate

5 minutes

2
Add to Course

2 minutes

3
Students Complete

Automatic

4
Download PDF

Done! โœ…

๐ŸŽจ

Step 1: Design Your Certificate

Open the Editor

http://localhost/totara/server/mod/certificate/certificate_editor.php

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)
Click "๐Ÿ’พ Save Layout" and your design is saved!
Preview your design at: 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"
Certificate Type: MUST select "Custom Editor"

Configure Settings

Name: Course Completion Certificate Description: Congratulations on completing the course! Certificate Type: Custom Editor โ† IMPORTANT! Required minutes: 0 (or set minimum) Required grade: 0 (or set minimum like 70%)
Click "Save and display" - Certificate added! โœ…
๐Ÿ‘จโ€๐ŸŽ“

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:

  1. Loads your design from editor
  2. Replaces placeholders with REAL DATA:
    What You Type (Placeholder) โ†’ What Student Gets (Real Data)
    "John Doe" โ†’ "Hassan Eikial" (real student name)
    "John Doe" โ†’ "Sara Ahmed" (another student)
    "Advanced Web Development" โ†’ "ILT Virtual Rooms" (actual course name)
    "10.26.2025" โ†’ "26 October 2025" (issue date)
  3. Generates beautiful PDF with real data
  4. Shows download button
Important: You design ONCE with placeholders, and EVERY student gets a personalized certificate with THEIR OWN name, course, and date! ๐ŸŽ‰
๐Ÿ”„

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
See? Same design, but each student gets their own personalized certificate! ๐ŸŽ‰
Think of it like a template:
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)

  1. Design certificate in editor
  2. Add to course
  3. Set required grade: 70%
  4. Save โœ…

๐Ÿ‘จโ€๐ŸŽ“ Student "Hassan"

  1. Enrolls in course
  2. Completes lessons
  3. Gets 85% on quiz
  4. Downloads certificate โœ…
Result: Hassan gets a beautiful PDF with his name, course name, and today's date! ๐ŸŽ‰
๐Ÿ“

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:

  1. Check "Custom Editor" is selected
  2. Verify layout is saved (check preview)
  3. Clear cache: Site admin โ†’ Development โ†’ Purge all caches

โŒ Student can't download certificate

Solution:

  1. Check student met requirements
  2. Verify student is enrolled
  3. Check activity is visible

โŒ Placeholders not replaced

Solution:

  1. Use exact placeholders: "John Doe", "Advanced Web Development", "10.26.2025"
  2. 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's New: You can now add QR codes to your certificates for instant verification!

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.

1
Add QR Code

Click "๐Ÿ“ฑ Add QR Code" in editor

โ†’
2
Position & Save

Drag to bottom right, save layout

โ†’
3
Auto-Generated

QR code embedded in PDF automatically

โ†’
4
Scan & Verify

Anyone can verify certificate instantly

How to Add QR Code:

1

Open Certificate Editor

http://localhost/totara/server/mod/certificate/certificate_editor.php
2

Click "๐Ÿ“ฑ Add QR Code" Button

Find the button in the toolbar at the top of the editor

3

Position the QR Code

  • Recommended: Bottom right corner
  • Position: X: 720px, Y: 475px (for A4 landscape)
  • Size: 100x100px (recommended)
๐Ÿ’ก Pro Tip: Bottom right corner is the most professional placement and doesn't distract from the certificate content.
4

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:

  1. Student completes course โ†’ Clicks certificate activity
  2. System generates unique code โ†’ Example: "ABC123XYZ"
  3. QR code image created โ†’ Saved as certificate_ABC123XYZ.png
  4. QR embedded in PDF โ†’ At the position you specified
  5. Student downloads certificate โ†’ With working QR code

How to Verify Certificate:

๐Ÿ“ฑ Open Phone Camera

Point at QR code

โ†’
๐Ÿ“ธ Scan QR Code

Camera recognizes code

โ†’
๐ŸŒ Opens Link

verify.php?code=ABC123XYZ

โ†’
โœ… Shows Details

Student, course, date, status

Security Features:

๐Ÿ” Why QR Codes are Secure:
  • 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 Layout with QR Code:
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                                        โ”‚
โ”‚     ๐ŸŽ“ Certificate of Achievement      โ”‚
โ”‚                                        โ”‚
โ”‚           Hassan Eikial                โ”‚
โ”‚                                        โ”‚
โ”‚    has successfully completed          โ”‚
โ”‚                                        โ”‚
โ”‚        Web Development Course          โ”‚
โ”‚                                        โ”‚
โ”‚         26 October 2025                โ”‚
โ”‚                                        โ”‚
โ”‚                            โ”Œโ”€โ”€โ”€โ”€โ”€โ”     โ”‚
โ”‚                            โ”‚โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”‚     โ”‚
โ”‚                            โ”‚โ–ˆ โ–ˆ โ–ˆโ”‚ โ† QRโ”‚
โ”‚                            โ”‚โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ”‚     โ”‚
โ”‚                            โ””โ”€โ”€โ”€โ”€โ”€โ”˜     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                    
โœ… Ready to Use!
QR code integration is fully implemented. Add QR codes to your certificates now for instant, secure verification!
๐Ÿ“ฑ View Complete QR Code Guide
๐ŸŽ‰

Summary

Your First Certificate in 3 Steps:

1๏ธโƒฃ
Design (5 min)

Open editor โ†’ Design โ†’ Save

2๏ธโƒฃ
Add (2 min)

Open course โ†’ Add certificate โ†’ Save

3๏ธโƒฃ
Done!

Students download certificates โœ…

๐Ÿš€ Start Creating Now!
โ†‘