Simple Certificate icon

Simple Certificate

Maintained by David Herney
This is a new activity module, Simple Certificate,which no needs to change any code to add a new certificate format, and moodle's administrator don't need to upload image files. The certificate text are full customizable, using special text marks that will be replaced by variables (like student name, course name, grade, ...), don't need to change any translation file.
Price option: Free

Supports Moodle 3.0-5.1 See all versions
Latest release: 3 months ago
Installations: 4808
Downloads (last 90 days): 968

Frankenstyle name: mod_simplecertificate
Activities

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Humm, i have updated this file and change the versions, but the required version seems wrong, should be 2012110900 (2.4.0), but if you are using 2.4.1 this is not be the problem, i think. Try to download the fixed version and if don't work, remove it from your moodle (/admin/modules.php) and install it again. I have updated it without any problems
Hello Carlos,
Our Moodleprovider has tried to install the update. Each time Moodle seems to install a prior version.
Can it be that the versioninfo itself hasn't been updated during te installproces?
Regards, Kees.
/**
* Code fragment to define the version of the simplecertificate module
*
* @package mod
* @subpackage simplecertificate
* @copyright Carlos Fonseca , Mark Nelson
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or late
*/
$module->version = 2013021500; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2012112900; // Requires this Moodle version (moodle 2.3.x)
$module->cron = 4 * 3600; // Period for cron to check this module (secs)
$module->component = 'mod_simplecertificate';
$module->release = '1.2.1'; // Human-friendly version name
$module->maturity = MATURITY_STABLE;
Great! Thanks!
Kees.
It's fixed
Hello Carlos,
Great plugin! Unfortunately i got errormessages when i set debugging "on".
Please, can you fix this problems?
I am using Moodle 2.4.
Regards, Kees.
When i ask for an summary of given certificates to students i get this text:
13052
Strict Standards: Creating default object from empty value in /xxx.xx.xx/www/mod/simplecertificate/version.php on line 15 Strict Standards: Creating default object from empty value in /xxx.xx.xx/www/mod/simplecertificate/version.php on line 15
----
When i click on "home" i get this message:
Function get_all_mods() is deprecated. Use get_fast_modinfo() and get_module_types_names() instead. See phpdocs for details
line 3004 of /lib/deprecatedlib.php: call to debugging()
line 557 of /mod/simplecertificate/lib.php: call to get_all_mods()
line 607 of /mod/simplecertificate/lib.php: call to simplecertificate_get_mods()
line 36 of /mod/simplecertificate/settings.php: call to simplecertificate_get_date_options()
line 2953 of /lib/pluginlib.php: call to include()
line 17 of /admin/settings/plugins.php: call to plugininfo_mod->load_settings()
line 6264 of /lib/adminlib.php: call to require()
line 6363 of /lib/adminlib.php: call to admin_get_root()
line 37 of /admin/settings.php: call to admin_write_settings()
get_all_sections() is deprecated. See phpdocs for this function
line 2956 of /lib/deprecatedlib.php: call to debugging()
line 560 of /mod/simplecertificate/lib.php: call to get_all_sections()
line 607 of /mod/simplecertificate/lib.php: call to simplecertificate_get_mods()
line 36 of /mod/simplecertificate/settings.php: call to simplecertificate_get_date_options()
line 2953 of /lib/pluginlib.php: call to include()
line 17 of /admin/settings/plugins.php: call to plugininfo_mod->load_settings()
line 6264 of /lib/adminlib.php: call to require()
line 6363 of /lib/adminlib.php: call to admin_get_root()
line 37 of /admin/settings.php: call to admin_write_settings()
Function get_all_mods() is deprecated. Use get_fast_modinfo() and get_module_types_names() instead. See phpdocs for details
line 3004 of /lib/deprecatedlib.php: call to debugging()
line 557 of /mod/simplecertificate/lib.php: call to get_all_mods()
line 607 of /mod/simplecertificate/lib.php: call to simplecertificate_get_mods()
line 36 of /mod/simplecertificate/settings.php: call to simplecertificate_get_date_options()
line 2953 of /lib/pluginlib.php: call to include()
line 17 of /admin/settings/plugins.php: call to plugininfo_mod->load_settings()
line 6264 of /lib/adminlib.php: call to require()
line 50 of /admin/settings.php: call to admin_get_root()
get_all_sections() is deprecated. See phpdocs for this function
line 2956 of /lib/deprecatedlib.php: call to debugging()
line 560 of /mod/simplecertificate/lib.php: call to get_all_sections()
line 607 of /mod/simplecertificate/lib.php: call to simplecertificate_get_mods()
line 36 of /mod/simplecertificate/settings.php: call to simplecertificate_get_date_options()
line 2953 of /lib/pluginlib.php: call to include()
line 17 of /admin/settings/plugins.php: call to plugininfo_mod->load_settings()
line 6264 of /lib/adminlib.php: call to require()
line 50 of /admin/settings.php: call to admin_get_root()
Hello Gary Lyon, thanks for report this, it's fixed you can download and install it again , this is a problem related with moodle 2.4 version
You can see more about in:
https://tracker.moodle.org/browse/CONTRIB-4048
Hello Carlos,
I have installed the module but am not able to print certificates. Here is the debug message I am getting:
Debug info: Unknown column 'c.deleted' in 'where clause'
SELECT MAX(c.timecompleted) as timecompleted
FROM mdl_course_completions c
WHERE c.userid = ?
AND c.course = ?
AND c.deleted IS NULL
[array (
0 => '2',
1 => '11',
)]
Error code: dmlreadexception
Stack trace:
line 426 of \lib\dml\moodle_database.php: dml_read_exception thrown
line 1023 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1382 of \lib\dml\moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 756 of \mod\simplecertificate\locallib.php: call to moodle_database->get_record_sql()
line 693 of \mod\simplecertificate\locallib.php: call to simplecertificate->get_date()
line 510 of \mod\simplecertificate\locallib.php: call to simplecertificate->get_certificate_text()
line 660 of \mod\simplecertificate\locallib.php: call to simplecertificate->create_pdf()
line 121 of \mod\simplecertificate\view.php: call to simplecertificate->output_pdf()
I have contacted him when i release this mod, but no one had this idea. I don't know if it is possible, because of the changes made in database.
Hi Carlos,
This looks great.
would you mind contacting Mark Nelson to perhaps see if you both want collaborate to keep this within a single same code base perhaps via a simple mode option ?
new version, for moodle 2.3.x and moodle 2.4.x
Add new version in git repo to fix the confliting constants names