Activities: Custom certificate

Maintained by Picture of Mark Nelson Mark Nelson
Enables the creation of dynamically generated certificates with complete customisation via the web browser.
2929 sites
105 fans

This plugin allows the generation of dynamic PDF certificates with complete customisation via the web browser.

Currently supported versions: 3.2, 3.3 and 3.4.

If you like this plugin feel free to donate. smile btn_donate_LG.gif


This plugin is part of set MoodleCloud.


Screenshot #0
Screenshot #1
Screenshot #2


Picture of Mark Nelson
Mark Nelson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Augusto R. M.
    Thu, 7 Dec 2017, 3:34 AM
    Hello. Currently using 3.3. and dosen't work propperly.
    I created a template. I added two text elements and image. All of them render one above the other, on the top left corner. Not center text option found. Further, I add border element, and put left and righ margin. Result: border render but none margin is set. Finally, where can I set page orientation?
  • Picture of Izabelle Paradis
    Wed, 20 Dec 2017, 9:44 PM

    I use Moodle 3.1 and installed this pluggin. Unfortunately, it does not seem to work.

    I'm trying to create a new template and the /mod/customcert/edit.php?contextid=1 page does not display anything.

    Thank you for your help
  • Picture of Mark Nelson
    Thu, 28 Dec 2017, 11:33 AM
    Hi Rolf - Have a look at the mod/customcert/element/date/classes/element.php file. This contains all the logic for saving and rendering the date.

    I don’t think a coding block in the text element is the answer as it would require using exec and would lead to all kinds of trouble.

    Hi Brian - Thanks for the update. Happy Moodling!

    Hi E C - Please create an issue at This is indeed worrying. Sounds like it could be a race condition, or perhaps the task isn’t working as expected. Would be great if you could reproduce it and let me know.

    Hi Augusto - Are you using the reposition page to reorder where the elements appear? The page orientation is determined by the width and height. Please create an issue at re: the margin error with steps to reproduce. Thanks.

    Hi Isabelle - Are you able to turn debugging on (see or check your apache logs and let me know what the actual error is?
  • Picture of Luis Eduardo Vahos Hernandez
    Fri, 5 Jan 2018, 10:30 PM
    Greetings install the plugin in moodle 3.1 and to modify the certificates the page is blank
    In debug mode this is the error

    Fatal error: Can't use method return value in write context in /home/luisvahos/public_html/app/mod/customcert/element/border/classes/element.php on line 109
  • Picture of ram yadav
    Tue, 9 Jan 2018, 5:12 PM
    Please, anyone, tell me how to send certificate automatically after the complete quiz.
  • Peter Jonker
    Thu, 11 Jan 2018, 7:21 PM
    Mark compliments for this plugin works perfectly. One suggestion for the verification. Noticed that unenrolling and suspending a user still gives the opportunity to verify which is great. However deleting the user account breaks it and gives the warning 'Not verified'. Would you be able to store the user Fullname and Coursename in a separate table on issuing the certificate. This way the verification proces will also work once the user has been deleted.
  • Picture of Mark Nelson
    Mon, 15 Jan 2018, 1:38 PM
    Hi Peter,

    Please create a request for this improvement at It would definitely require some work and re-factoring on the certificate behaviour. It's definitely possible but would require some time and I already have a large backlog of things to work on and do work on this in my spare time.
  • Picture of Mark Nelson
    Mon, 15 Jan 2018, 1:58 PM
    Hi Luis,

    I was unable to replicate this error. Are you able to list the steps you took to reproduce this error?
  • Picture of Luis Eduardo Vahos Hernandez
    Mon, 15 Jan 2018, 8:38 PM
    1.Install the plugin from the moodle website
    2.He perfectly updated the database
    3. And the application is installed
    4. When I generate a certificate, it goes blank.
    5. entry to edit the certificate and I get that error
  • Picture of Mark Nelson
    Tue, 16 Jan 2018, 12:17 PM
    For the record Luis kindly created and I was able to determine the problem. Fix will be applied to 3.1 next release, which I hope to get some time to do this week.
  • Picture of Tiffany Morgan
    Tue, 23 Jan 2018, 6:15 AM
    Hi Mark--great plugin! Wondering if there is a possibility of having first and surname each go to column in csv or text file, rather than the html for the user image? I can export as an html file and then copy/paste to excel, which works, but wondered if there was a simpler way I was overlooking? Thanks!
  • larry's pix
    Fri, 26 Jan 2018, 5:56 AM
    The custom certificate worked fine with Moodle 3.3 and the 3.3 version of the plugin. After updating to Moodle 3.4 and the custom certificate 3.4 (2017111300) version, I'm running into a series of errors. Any idea how to resolve the issue? Thanks

    Exception - TCPDF ERROR: Some data has already been output to browser, can't send PDF file

    More information about this error

    ×Debug info:
    Error code: generalexceptionmessage
    ×Stack trace:
    line 2927 of /lib/tcpdf/tcpdf.php: Exception thrown
    line 7653 of /lib/tcpdf/tcpdf.php: call to TCPDF->Error()
    line 190 of /lib/pdflib.php: call to TCPDF->Output()
    line 311 of /mod/customcert/classes/template.php: call to pdf->Output()
    line 144 of /mod/customcert/view.php: call to mod_customcert\template->generate_pdf()
  • Picture of Mark Nelson
    Mon, 29 Jan 2018, 4:34 PM
    Hi Larry,

    Can you please turn on debugging and tell me what the actual output was?
  • Picture of Mark Nelson
    Mon, 29 Jan 2018, 4:39 PM
    Hi Tiffany, currently there is no way of doing that. That would require additional coding to separate the values into separate columns. Feel free to create an issue at and hopefully I (or someone else!) can work on it - if I ever get spare time ;)
  • Picture of Justin Lloyd
    Wed, 31 Jan 2018, 8:06 AM
    Hi there. I was wondering how we could display the category total in the "Grade" element of the certificate. Currently the only options are "Course Grade" and "Graded items" within a topic. We offer a custom certificate for each topic and the grade is separated by course categories. Is this something I can enable in Moodle?
1 2 3 4 5 6 7 8 9 10 11 12 13
Please login to post comments