Hi,
In Moodle 1.9.4 there was a block "Verify Certificate".
Now I use Moodle 2.2.3 and would like to know if there is any way to track your certificate.
Thanks
Ricardo
(Brazil)
Thanks a lot, Jean-Michel!
I was trying to find such an update to "verify_certificate" block and found you post, what just work.
I'm very sorry if I were to ask a dumb question, but how can I translate the messages (even the block title)? How to set it up in the correct way?
Thanks again and don't bother to answer if it was a naive question.
Marcio
Hello,
inside the lang subfolder there are "en" and "de" subfolders for english and german languages.
Cretae a new one for each desired language with the 2 letter code for the country (for instance for France I would create a subdir with name "fr")
in this subfolder copy the lang/en/block_verify_certificate.php file and edit this file to translate each string.
For instance for France I would edit the lang/fr/block_verify_certificate content to look as :
<?php
$string['title'] = 'Vérifier un certificat';
$string['pluginname'] = 'Vérifier un certificat';
$string['certificate'] = 'Vérification pour le code de certificat :';
$string['verifycertificate'] = 'Vérifier le certificat';
$string['notfound'] = 'Le code n\'a pas pu être validé.';
$string['to'] = 'Décerné à';
$string['course'] = 'Cours';
$string['date'] = 'Le';
$string['grade'] = 'Note';
And that's all
Hello Jean-Michel,
Building on the topic, I would expose my problem:
Block installed correctly and checked the notices moodle installation. I added the block, enter the code printed on the certificate and clicked "verify"
The error occurred presented in attached file.
I've tried to modify the index.php but without success.
Remembering that I'm using version 2.3
Do you have any suggestions to solve my problem? I thank the dedication with users
Greetings,
Alexandre Pereira
Hello Alexandre,
Thanks a lot for reporting this problem.
The problem is not with Moodle version 2.3 but with the latest certificate versions : some fields have been suppressed from certificate tables (it was a wise decision as these informations were already in other Moodle tables so Mark was right to suppress these fields) so the verify_cerificate code needs a little rework.
I will do a new version ASAP and post it here.
Hi Jean-Michel,
what about improving your version.php from:
$plugin->version = 2009072901;
to:
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2009072901; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011120500; // Requires this Moodle version
$plugin->component = 'block_verify_certificate'; // Full name of the plugin (used for diagnostics)
$plugin->dependencies = array(
'mod_certificate' => 2012060801 // https://github.com/markn86/moodle-mod_certificate/commit/af0260139e8fb390f75ead619b9faafca345b767#db/install.xml
);
?
This change will:
Refs.: http://docs.moodle.org/dev/version.php
HTH,
Matteo
Hi Matteo,
You are right
In fact I did a 2.x version of this plugin
But I don't use it myself so each time somebody request a change or report a problem I only do minimal work.
I will update the version.php and post it.
Hello,
I recently modified the report_my_certificates "plugin" (well this is not really a plugin but an "addon" to the certificate module ) to use the certificate_get_date function to get the date to display for each certificate.
As the verify_certificate block was using the same code I think it is better to do the same modification so that all codes get in line and display the same date.
So here it is, but be warned that there is currently a tracker issue open for the date displayed on certificates : CONTRIB-4111
But I still think that the better solution is that all certificate related displays use the same code for consistency and when the certificate library will be updated by Mark, both verify_certificate and report_my_certificates will use the updated code requiring no modification.
If you are not using the latest version of the certificate module, it's a lot better for you to stick with one of the previous versions I published in some messages of that thread.
Please report problems if any.
Hello, Jean-Michel.
I am testing your "plugin-addon" in a Moodle 2.4 site with the latest certificate module version.
It's working flawlessly, I just append a "pt_br" (Brazilian portuguese) translation and reinstall the module. It was a free translation to meet my purposes, but feel free to use it if you wish.
Thanks for the work, it save me a lot of work trying to update de old verify's version by my own.
Hello, I'm newbie on Moodle, and in my institution we need to print our certificate with 2 pages. For instance, in one side the regular certificate, in the other side all topics of that course. I´ve already read how to print the current topic instead of the name of the course in a regular certificate, but as I sad we need all the topics printed. I appreciate any help or reference to search. Thanks!
I installed this and I get
The block verify_certificate does not define the standard capability block/verify_certificate:addinstance •line 598 of /blocks/moodleblock.class.php: call to debugging() •line 576 of /blocks/moodleblock.class.php: call to block_base->has_add_block_capability() •line 236 of /lib/blocklib.php: call to block_base->user_can_addto() •line 1864 of /lib/blocklib.php: call to block_manager->get_addable_blocks() •line 1007 of /lib/blocklib.php: call to block_add_block_ui() •line 353 of /lib/blocklib.php: call to block_manager->ensure_content_created() •line 6 of /theme/base/layout/general.php: call to block_manager->region_has_content() •line 804 of /lib/outputrenderers.php: call to include() •line 734 of /lib/outputrenderers.php: call to core_renderer->render_page_layout() •line 240 of /course/view.php: call to core_renderer->header()
Hello Michael,
I don't really understand what you are trying to achieve.
The verify certificate block is done to permit to visitors having the printed certificate in hand to verify that this certificate is not a fake and that the name printed is really the name of the certificate's owner.
Displaying the pdf document is only allowed to teaches in the related course and to the student that got this certificate. This is controlled by capabilities in the code.
So you would have to change this code to do what you want and most probably this would esult in students able to view the certificate of other students, I don't know in you country but in mine this is illegal.
simply I want to view the verification in a certificate style... not the real certificate that student get...
I do that by formatting HTML of the block output with certificate background to be like a real cert.
just a view
Also I need to embed it into Joomla site... so I do copy the index file & do my formatting
then I call & submit a certnumber by a form in Joomla inside Iframe or ajax modal box...
Thanks a lot dear jean, really appreciate your reply...
I'll need more help in future as i'm new here
Hello Michael,
I understand your need a lot better now.
Yes I think that using an iframe would work.
If you need additional info to display some data from the certificate in your modified index.php, post a message and I will try to help you.
Maybe we can backport some of your ideas to the verify_certificate block and enhance the display ?
Hey Jean,
I wanna help but I don't know what to do... I still don't know the structure of moodle :D ... I'm a Joomla professional(admin)... I can translate this block files into Arabic, also I will post my modified index to share ideas...
But wondering I have changed some strings on blocks/verify_certificate/lang/en/block_verify_certificate.php
but it doesn't take effect is there is something I should do after modification!! or there is something elsewhere overwriting it !!!!!?
Thanks
Dear Jean, I'm trying to use this file you posted (https://moodle.org/pluginfile.php/195790/mod_forum/attachment/1014802/verify_certificate.zip) but I'm getting the following errors:
I'm running Moodle 2.6.1+ (Build: 20140207) with mod_certificate v. 2014041801.
I have placed the verify_certificate folder in the blocks folder as advised.
Maybe you could help me with
this, or point me in the right direction?
Thanks a lot!
Hello Rudá
As you are using Moodle 2.6.1+, you ned to go to this page:
https://github.com/jmvedrine/moodle-block_verify_certificate/tree/MOODLE_26_STABLE
Click on the "Download ZIP" button on the right.
You will get a zip archive with a name like moodle-block_verify_certificate-MOODLE_26_STABLE.zip
Extract and rename the folder from "moodle-block_verify_certificate-MOODLE_26_STABLE" to just "verify_certificate" (verify that inside this folder you see db and lang subfolders and 5 files)
copy this "verify_certificate" folder in the blocks subfolder of your Moodle server (if there is already a verify_certificate folder, delete it before copying the new one) Connect as administrator and install as usual going to Site Administration Notifications.
Report any problem here.
Hi Jean,
I have made some changes mostly cosmetic to your plugin. Until today I hadn't seen your github link hence I just worked on the downloaded version from the forums.
I see this plugin hasn't been shared on the moodle community (or at least I can't find it!). Any plans of doing so? I am sure it will be quite handy if it was there in the plugin's db. I will now fork your github codes and share my changes as well.
Wondered if we could work together to share this to the plugin's directory. Let me know what you think. If not do you mind if I push this to the community with your original contribution copyright.
Many thanks,
M
Hola, buenos días.
Antes que nada agradecer por esta contribución y el empeño que has puesto para mantener actualizada esta herramienta.
Adjunto la traducción al idioma español, y para quienes lo necesiten, como en mi caso, un acceso externo (por ejemplo para incluir mediante frames en una página).
Para quienes deseen usar el lenguaje español solo deben crear dentro del directorio "lang" un nuevo directorio llamado "es" y guardar allí el archivo "block_verify_certificate.php"
Hello. This forum is in English but perhaps you would like to post in Moodle en Español?