Closed terriroshell closed 4 months ago
I finally figured it out.
/mod/customcert/verify_certificate.php line 95
// Ok, now check if the code is valid.
$userfields = \mod_customcert\helper::get_all_user_name_fields('u');
$sql = "SELECT ci.id, u.id as userid, $userfields, co.id as courseid,
co.fullname as coursefullname, c.id as certificateid,
c.name as certificatename,FROM_UNIXTIME(ci.timecreated,'%m-%d-%Y') as timecreated, c.verifyany
FROM {customcert} c
JOIN {customcert_issues} ci
ON c.id = ci.customcertid
JOIN {customcert_issues} ct
ON ci.timecreated = ct.timecreated
JOIN {course} co
ON c.course = co.id
JOIN {user} u
ON ci.userid = u.id
WHERE ci.code = :code";
Glad you got this solved.
I had to edit three files in the mod_customcert file. Special thanks to [Jeffrey Olivo], I followed his template on making the change.
The file locations are listed below to get this: However the date shown is the date the activity was created. I can't figure out how to get the user certificate timecreated to work.
LOCATION: /home//public_html/lms/mod/customcert/verify_certificate.php
LOCATION: /home//public_html/lms/mod/customcert/classes/output/verify_certificate_result.php
LOCATION: /home//public_html/lms/mod/customcert/templates/verify_certificate_result.mustache