Certificate

Activities ::: mod_certificate
Maintained by Mark Nelson
This module allows for the dynamic generation of certificates based on predefined conditions set by the teacher. NOTE: This plugin is no longer receiving any new features. Only bug fixes are being applied. I have been working on a new plugin which can be located at https://moodle.org/plugins/mod_customcert which allows complete customisation of the PDF via the browser, whereas this plugin requires FTP and PHP knowledge. Both plugins can be installed on a site at once with no issues.
Latest release:
5842 sites
914 downloads
195 fans
Current versions available: 9

NOTE: This plugin is no longer receiving any new features. Only bug fixes are being applied. I have been working on a new plugin which can be located at https://moodle.org/plugins/mod_customcert which allows complete customisation of the PDF via the browser, whereas this plugin requires FTP and PHP knowledge. Both plugins can be installed on a site at once with no issues.

See the certificate docs for information on how to customise your certificate and for additional help please visit the certificate forums.

Screenshots

Screenshot #0

Contributors

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

Comments RSS

Comments

  • I sell cookies
    Sun, 24 Jun 2012, 6:53 AM
    Hi Mark! There's a small bug (twice) in release 2012060901 -- lib.php::certificate_email_teachers() line ~374 and certificate_email_others() line ~407 that shows up when you are a student requesting your certificate:

    Notice: Undefined variable: student in /home/myalf/public_html/mod/certificate/lib.php on line 374

    Notice: Undefined variable: student in /home/myalf/public_html/mod/certificate/lib.php on line 374

    Notice: Undefined variable: student in /home/myalf/public_html/mod/certificate/lib.php on line 407

    In both cases
    $from = $student;
    fails b/c $student is undefined. I suspect you meant to use $user or $USER -- this fixes it, anyway.
  • Liam Hanks
    Tue, 3 Jul 2012, 10:16 PM
    Any timeline for a 2.3-compatible version?
  • Steven Parker (sparkerED)
    Thu, 5 Jul 2012, 12:11 PM
    Hi

    I am getting the following error with the Certificate Module in Moodle 2.3.

    'Coding error detected, it must be fixed by a programmer: moodle_database: insert_record_raw() no fields found'

    When do you think the Certificate Module will be ready for Moodle 2.3?

    Thanks

    Steven
  • Paolo Sabatinelli
    Wed, 18 Jul 2012, 9:33 PM
    I'd like to modify the font type on a certificate inserting a barcode for the name of the students (ean font)
    On the type/certificate.php I have two options (embedded or non-embedded).
    For Embedded (in pdf) I see these lines:

    // Add text
    $pdf->SetTextColor(0, 0, 120);
    certificate_print_text($pdf, $x, $y, 'C', 'freesans', '', 30, get_string('title', 'certificate'));
    $pdf->SetTextColor(0, 0, 0);
    certificate_print_text($pdf, $x, $y + 20, 'C', 'freeserif', '', 20, get_string('certify', 'certificate'));
    certificate_print_text($pdf, $x, $y + 36, 'C', 'ean', '', 30, fullname($USER));
    certificate_print_text($pdf, $x, $y + 55, 'C', 'freesans', '', 20, get_string('statement', 'certificate'));
    certificate_print_text($pdf, $x, $y + 72, 'C', 'freesans', '', 20, $course->fullname);
    certificate_print_text($pdf, $x, $y + 92, 'C', 'freesans', '', 14, certificate_get_date($certificate, $certrecord, $course));

    How I can to use the ean font? Both for embedded and not embedded?

    thanks!
  • I sell cookies
    Tue, 24 Jul 2012, 12:18 PM
    Hi Mark. A small bug in the latest 2.3 release (2012070201): the customtext does not ever show. The solution I used is:

    (1) In lib.php line ~1235 add some default params to the function call:
    function certificate_print_text($pdf, $x, $y, $align, $font='freeserif', $style, $size=10, $text) {

    (2) Change each customtext output line in type/{sometype}/certificate.php to use the default params;
    certificate_print_text($pdf, $custx, $custy, 'L', NULL, NULL, NULL, $certificate->customtext);

    Hope that helps someone.

    Mark
  • Ian L
    Mon, 13 Aug 2012, 11:16 PM
    Thank you Mark Withheld! That worked. For me the line was on 1236 and I replaced some text there with what you suggested. And the custom text showed up.
  • D Barnhart
    Thu, 16 Aug 2012, 5:03 AM
    When I use any of the pics in the pix folder that are part of the Certificate download they all work good but when I create my own image, such as a seal, I get the following error when trying to choose this seal for my certificate:

    TCPDF ERROR: Can't open image file: /home2/autodea2/public_html/classes/moodledata/cache/tcpdf/mska_ab06cb6b020203aef3dab52d2ddf96ea

    My seal is the same size as the other seals that are available in the plugin.

    Not sure what I am doing wrong. Any help will be greatly appreciated.

    Thanks
  • D Barnhart
    Thu, 16 Aug 2012, 5:05 AM
    Also, I just updated to the current certificate release and I am using Moodle 2.3.
  • Me, with my new 'slow explosion' hair!
    Fri, 17 Aug 2012, 8:10 PM
    Having installed the latest version from GitHub (August 15th, MOODLE_23_STABLE branch), I'm getting this error when I try to view existing Certificates: Warning: Division by zero in /lib/tcpdf/tcpdf.php on line 15304 (about 20 times). Is anyone else seeing this?
  • romano gino
    Tue, 21 Aug 2012, 1:13 PM
    Hi. I have this problem with Moodle 2.3.1

    Debug info: Missing mandatory en language pack.
    Error code: detectedbrokenplugin
    Stack trace:
    line 563 of /lib/upgradelib.php: plugin_defective_exception thrown
    line 358 of /lib/upgradelib.php: call to upgrade_plugins_modules()
    line 1524 of /lib/upgradelib.php: call to upgrade_plugins()
    line 329 of /admin/index.php: call to upgrade_noncore()
  • Marcus Hoberg
    Wed, 29 Aug 2012, 10:25 PM
    We updated to the latest 2.3 1012082402, and still don´t see the custom text. Text written peroperly to the data base, but not shown in PDF. Changes proposed by Mark are part of the code and included.
  • I sell cookies
    Fri, 31 Aug 2012, 1:50 AM
    Hi Marcus - try change permissions on /moodledata/cache/tcpdf/ to 777 recursively.
  • Bridgette Anderson
    Wed, 5 Sep 2012, 11:18 PM
    Hi, I'm using the latest version of your mod_certificate in Moodle 2.3.

    I'm having an issue when trying to access the certificate in IE8. If I set the certificate to "open in a new window" I just get a blank popup. If I choose to "force download" I get this IE error message - "Unable to download view.php from mydomain.com. Unable to open this internet site. The requested site is either unavailable or cannot be found. Please try again later."

    The certificates are opening fine in Chrome and Firefox. I'm needing to go live with this site as soon as possible, so any help you can provide is greatly appreciated! Thank you in advance!
  • Germán and Temudgin
    Fri, 7 Sep 2012, 9:59 AM
    Hi,
    I just downloaded the certificate module, and it seems to work well in the original english language, but there are a couple of language strings which were not available for translation in AMOS. The uploadimage string and the associated help string.
    I do not know how this might be corrected, but perhaps the programmer (maintainer) of the plugin might get in touch with David Mudrak and sort it out. It is a great plugin and many of us would love to have it available in many other languages additionally to English.

    Thanks in advance,
    German Valero
  • Fermin Aguilar
    Wed, 12 Sep 2012, 1:44 AM
    Email teacher or Email other only works when the student clicks on the certificate and no when student receives the certificate. It doesn't seem to email once the student passes the quiz. So not sure "Restrict access" is setup certain way.

    "If the Email Teachers option is set to Yes then all users with a Teacher/Trainer role within the course will receive an autogenerated email whenever a student receives a Certificate. "
Please login to post comments