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.
1864 sites
81 fans

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

Currently supported versions: 3.2 and 3.3.

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


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 Richard Soderblom
    Sun, 23 Jul 2017, 6:15 AM
    Hi Mark.
    Thanks for the awesome plugin!
    Would it be possible though to put an element on the certificate that contains the complete link to verify it?
    Or even possibly a block that can be added to the frontpage or so to verify a certificate code?

  • Picture of Mark Nelson
    Mon, 24 Jul 2017, 3:15 PM
    Hi Saroj, I am finding it hard to understand what you are trying to achieve. Sorry. Are you wanting it to be possible to add the moodle enrolment dates? I am not sure about the scenario 'After the first unit second unit will be released and second unit start date will be the date of release and so on until the last unit' and how this affects the date on the certificate? Perhaps you need several certificates in your course with activity restrictions for each unit?

    Hi Richard, I don't think printing a link on the PDF would look particularly nice, but yes it is possible (would require adding another element in mod/customcert/elements/). I could create a block but that would be a separate plugin and the majority of my free Moodle dev time is spent on this plugin. I created for further discussion.
  • Picture of Iván Sibillà
    Mon, 24 Jul 2017, 4:03 PM

    In our version of Moodle 3.1.3 we have the BBDD with Oracle and we have the following problem...
    Debug info: ORA-01747: especificación no válida de usuario.tabla.columna, tabla.columna o columna
    INSERT INTO m_customcert_elements (name,data,font,size,colour,posx,posy,width,refpoint,timemodified,element,pageid,sequence,timecreated) VALUES (:name,:data,:font,:size,:colour,:posx,:posy,:width,:refpoint,:timemodified,:element,:pageid,:sequence,:timecreated)
    [array (
    'name' => 'Logo',
    'data' => '{"contextid":"1","filearea":"image","itemid":"0","filepath":"\\/","filename":"Logo_Trans.png","width":80,"height":0}',
    'font' => NULL,
    'size' => NULL,
    'colour' => NULL,
    'posx' => 65,
    'posy' => 1,
    'width' => 80,
    'refpoint' => NULL,
    'timemodified' => 1500879365,
    'element' => 'image',
    'pageid' => 21,
    'sequence' => 1,
    'timecreated' => 1500879365,
    Error code: dmlwriteexception
    Stack trace:

    line 477 of /lib/dml/moodle_database.php: dml_write_exception thrown
    line 271 of /lib/dml/oci_native_moodle_database.php: call to moodle_database->query_end()
    line 1284 of /lib/dml/oci_native_moodle_database.php: call to oci_native_moodle_database->query_end()
    line 1331 of /lib/dml/oci_native_moodle_database.php: call to oci_native_moodle_database->insert_record_raw()
    line 151 of /mod/customcert/classes/element.php: call to oci_native_moodle_database->insert_record()
    line 135 of /mod/customcert/element/image/classes/element.php: call to mod_customcert\element->save_form_elements()
    line 90 of /mod/customcert/edit_element.php: call to customcertelement_image\element->save_form_elements()
    Can someone help us?

    Thanks for everything!

    Iván Sibillà
  • Picture of Mark Nelson
    Mon, 24 Jul 2017, 4:15 PM
  • Picture of Danielle Antha
    Mon, 24 Jul 2017, 11:16 PM
    Hi Mark,

    Thanks for the great plugin -

    However, it was working fine, but all of a sudden I'm having problems with it. It started giving me completely blank pdfs when downloading the certificate. I tried uploading the template to the course/activity/resource but when I do, it's instead deleting the template completely. I've tried redoing and reloading the template 3 times and each time I do it, it's deleting it. I've even tried uninstalling and reinstalling the plugin but it's still not working.

    Any guesses as to what I'm doing wrong?

    Thanks very much.
  • Picture of Aurelien DARIE
    Wed, 26 Jul 2017, 4:42 PM
    Great plugin, thank you !

    Would it be possible to add a new element from the gradebook.

    Indeed in our school we use weights and therefore we need to use the "Course total mark" in order to take into account several marks.

    Thank you.
  • Picture of Richard Knauer
    Wed, 26 Jul 2017, 8:29 PM
    Hi Mark,

    first of all, thanks for the plugin, works great. However, I have one issue with it, hoping you might be able to help me.
    I made multiple custom certificates but the completion date option doesn't work. I can see the Date in the preview but it won't show up in the downloaded certificate. It just stays blank.

    When I choose issued date, it shows up just fine. Do you have any idea why this is happening and how I can solve it?

  • Picture of Mark Nelson
    Thu, 27 Jul 2017, 1:13 PM
    Hi Danielle - Thanks for the compliments. Are there any errors in your apache log? It seems strange that it was working one minute, then not the next. Did you do any changes (edit/add an element)? I am not sure what you mean by uploading the template to the resource (mod_resource) activity as these are two separate plugins and in no way interact with each other. Also, when you load a template, it erases the existing data and puts in the new (it does this with a confirmation message). I have created in order to keep existing data.

    Hi Aurelien - Thanks, glad you are finding it useful. In the grade item you can choose to display the course grade. Is this not what you are after or is this displaying a different result? (sorry even as a HQ developer I don't actually use the gradebook that often with real case scenarios, just test data, so my understanding of the intricacies of the gradebook is not great).

    Hi Richard - You are welcome, thanks! The completion date relies on the cron being run. Are you sure yours is running? Please see the discussion in
  • Picture of Danielle Antha
    Thu, 27 Jul 2017, 7:29 PM
    Thanks for getting back to me, Mark. It seems to have resolved itself again but I'll definitely be in touch if I have any other issues!
  • Picture of Amin Mirzakhani
    Fri, 4 Aug 2017, 7:44 PM
    1st, thanks a lot for such a useful plugin,
    2nd, i created a template using the plugin, but due to this fact that, i`m using moodle in persian language, (rtl & utf8) all downloaded certificates have following problem:
    ----> letters on pdf version are like ?????????????????? and pdf version did not support my language sad
    so, what should i do in this regards?
  • Picture of Mark Nelson
    Sat, 5 Aug 2017, 2:20 PM
    Hi Amin - you need to use a font that supports those unicode characters. Please see
  • Picture of Peter Harwood
    Tue, 15 Aug 2017, 9:37 PM
    Hi Mark,
    I know you can add this as a certificate for a course, but is there any way you can get it to produce a certificate for completion of a single activity within a course?

    What I'm trying to do is issue a certificate on completion of a SCORM package, but the problem is that the SCORM package is just one activity out of many in the course.


  • Picture of Mark Nelson
    Wed, 16 Aug 2017, 11:35 AM
    Hi Peter,

    Yes, you can do this with all modules actually. See
  • Picture of Kesztler Róbert
    Mon, 21 Aug 2017, 3:03 PM
    Hello Mark!

    I need your support. The plugin is great, working well. There is oonly one issue for me: generated PDF file name.
    The file name is coming from the activity name. I'm from Hungary, so I'm using special characters also.

    As like activity name: Kétnyelvű bizonyítvány >> generated PDF file name is Ktnyelv_bizonytvny.pdf and this is my issue.

    Can you modify the file name as like
    from : Kétnyelvű bizonyítvány >> Kétnyelvű_bizonyítvány.pdf or Ketnyelvu_bizonyítvany.pdf

    Can you tell me where should I modify the source? Or can you give out a new version? I beleive this is a basic issue for others also.

    Honest thank you Mark!

    Greetings from Hungary
  • Picture of Mark Nelson
    Tue, 22 Aug 2017, 12:34 PM
    Hi Kesztler - thanks for the report, I created
1 2 3 4 5 6 7 8 9
Please login to post comments