Track Certificate

Track Certificate

Ricardo Groiso發表於
Number of replies: 32

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)

評比平均分數: -
In reply to Ricardo Groiso

Re: Track Certificate

Jean-Michel Védrine發表於

Hello,

I think I made a version for 2.x some time ago and posted it in this forum. I will search it and if it needs some changes for 2.2.3 I will upgrade it and post it again ASAP.

In reply to Jean-Michel Védrine

Re: Track Certificate

Jean-Michel Védrine發表於

Here is my latest version of the verify certificate block for Moodle 2.2

This version fix a small bug that was in the previous I posted on this forum (grade not displayed because of a typo in the code).

評比平均分數:Useful (3)
In reply to Jean-Michel Védrine

Re: Track Certificate

Ricardo Groiso發表於

Hi,

Worked perfectly.

Thanks

Ricardo

(Brazil)

In reply to Ricardo Groiso

Re: Track Certificate

Ricardo Groiso發表於

Hi, jean-michel Vedrine!

I was thinking of putting the "Verify Certificate" in an html home page in a Joomla template.

How can I do this?

Moodle is part of a site based on Joomla.

thank you

Ricardo

(Brazil)

In reply to Jean-Michel Védrine

Re: Track Certificate

Marcio Henrique Zuchini發表於

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

In reply to Marcio Henrique Zuchini

Re: Track Certificate

Jean-Michel Védrine發表於

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 微笑

評比平均分數:Useful (2)
In reply to Jean-Michel Védrine

Re: Track Certificate

REYNALDO LOPEZ發表於

I have install Moodle 2.3.2+. You have the Verify Certificate update for this kind of version? 

I have the certificate working good. But i can install the Verify Certificate

 

In reply to REYNALDO LOPEZ

Re: Track Certificate

Jean-Michel Védrine發表於

Hello Reynaldo,

The reason of your problem is visible on your screen copy :  you have installed it in the wrong place : verify_certificate is a block not a module so it should go into the /blocks subdirectory not in the /mod subdirectory.

評比平均分數:Useful (1)
In reply to Jean-Michel Védrine

Re: Track Certificate

Alexandre Pereira發表於

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

附件 notice.JPG
In reply to Alexandre Pereira

Re: Track Certificate

Jean-Michel Védrine發表於

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.

In reply to Jean-Michel Védrine

Re: Track Certificate

Jean-Michel Védrine發表於

Hello,

Here is a version of the verify_certificate block updated for the latest versions of the certificate module.

It was done rather quickly so report any problem because tersting has been rather minimal 微笑.

In reply to Jean-Michel Védrine

Re: Track Certificate

Alexandre Pereira發表於

Hello Jean-Michel,

The block worked perfectly.
Again thank you for attention and quick reply.

Sincerely,
Alexandre Pereira

In reply to Jean-Michel Védrine

Re: Track Certificate

Matteo Scaramuccia發表於

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:

  1. define the minimum Moodle required version, here 2.2 (more at http://docs.moodle.org/dev/Releases)
  2. define the full name of the block, helping Moodle to eventually warn the user about the wrong installation folder
  3. add an explicit dependency to the first version of mod_certificate working without studentname/classname/reportgrade from the certificate_issues table

Refs.: http://docs.moodle.org/dev/version.php

HTH,
Matteo

In reply to Matteo Scaramuccia

Re: Track Certificate

Jean-Michel Védrine發表於

Hi Matteo,

You are right

In fact I did a 2.x version of this plugin

  • because someone on this forum asked for it and it was a really small work
  • because I looked at the 1.9 version and was shocked to see such a lack of security (the code entered by the visitor in the block was injected directly in a sql query without any sanitization !!)

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.

In reply to Jean-Michel Védrine

Re: Track Certificate

Jean-Michel Védrine發表於

Heree is a version of the verify_certificate block with an improved version.php as suggested by Matteo.

I increased version number as I made small adjustments to some lang strings.

Of course it would be better to use AMOS for all non en lang strings ...

In reply to Jean-Michel Védrine

Re: Track Certificate

Jean-Michel Védrine發表於

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.

In reply to Jean-Michel Védrine

Re: Track Certificate

Marcio Henrique Zuchini發表於

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.

In reply to Marcio Henrique Zuchini

Re: Track Certificate

Roberto Ribeiro dos Santos發表於

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!

In reply to Ricardo Groiso

Re: Track Certificate

Mary Beth發表於

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()

2.4.3 (Build: 20130318) 
I tried uninstalling and reinstalling.  It's at the top of all admin pages.  It does appear to verify, but won't stay on the left side, as I go from page to page. How can I fix this?

 

In reply to Mary Beth

Re: Track Certificate

Jean-Michel Védrine發表於

Hello Mary,

I have an updated version  of the verify_certificate block but I forgot to upload it, sorry.

Find it attached to this message

In reply to Jean-Michel Védrine

Re: Track Certificate

Jean-Michel Védrine發表於

Stupid me !

Just before uploading the new version I decided to increment the version number to be sure capabilities will be upgraded. Unfortunately while doing that I introduced a typo that crash Moodle 傷心

Here is a corrected version.

 

In reply to Jean-Michel Védrine

Re: Track Certificate

Michael F發表於

Dear Jean,

Thanks a lot for your effort... it's working very nice.

What if I want to get the certificate itself!, I want to view the certificate instead of the plain text...

I'm a newbie here could you help me, or to but me on the right way.

 

Thanks alot.

King regards

In reply to Michael F

Re: Track Certificate

Jean-Michel Védrine發表於

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.

In reply to Jean-Michel Védrine

Re: Track Certificate

Michael F發表於

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 微笑

 

In reply to Michael F

Re: Track Certificate

Jean-Michel Védrine發表於

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 ?

In reply to Jean-Michel Védrine

Re: Track Certificate

Michael F發表於

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

In reply to Jean-Michel Védrine

Re: Track Certificate

Rudá Almeida發表於

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!

In reply to Rudá Almeida

Re: Track Certificate

Jean-Michel Védrine發表於

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.

評比平均分數:Useful (2)
In reply to Jean-Michel Védrine

Re: Track Certificate

Manieer Chhettri發表於

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

In reply to Jean-Michel Védrine

Re: Track Certificate

Wilmer Alexis Triana Barajas發表於

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"