New Block: Simple Certificate

New Block: Simple Certificate

by Carlos Alexandre Fonseca -
Number of replies: 16
Picture of Plugin developers
This block list users certificates,
https://moodle.org/plugins/view/block_simple_certificate

if this block is inside a course only issued certificate of the course will be listed, and if the block is on dashboard  all issued certificate will be listed


(Edited by David Mudrák - original submission Wednesday, 25 November 2015, 7:16 PM) - fixed the URL of the plugin page

Average of ratings: -
In reply to Carlos Alexandre Fonseca

Re: New Block: Simple Certificate

by Daniel Groulx -

Hi Carlos, could it be possible to add a re-certification date, like in 3 years.

I create a small pocket size certificate, 

The student take the course and if they passed they received there certificate, but they need to re -passe the course in 3 years.

I print on the certificate there First and Last Name and the issue Date, but I need to print a re-certification date,

Could you help with that.

Regards

Daniel.

In reply to Carlos Alexandre Fonseca

Simple Certificate - Cousename too long

by JAVIER NOVOA -

Dear Sir

Many  thanks for your contributions.  we have a problem becuase our coursenames are too long and normally uses 2 lines. We have a problem becuase we dont know  how to set a  left and right margin  in order to center the coursename

we have  tested several  solutions but  they dont run


Please see the image attached

Can you help  me with the suitable html code for this parte of  certificate?

Many thanks

JAVIER NOVOA


Attachment SIMPLE CERTIF.JPG
In reply to JAVIER NOVOA

Re: Simple Certificate - Cousename too long

by Carlos Alexandre Fonseca -
Picture of Plugin developers

Hello Javier,

This question  is posted in wrong forum,  this forum is for simple certificate BLOCK  plugin, not  the ACTIVITY plugin

The right forum is:
https://moodle.org/mod/forum/discuss.php?d=222296


Ok,  you can use html tables to margin and adjust text position,  and some in-line css (text-aling)  to center the text.  Most of html tags  can be use to  format and set text position, and some css can be use also.



In reply to Carlos Alexandre Fonseca

Re: Simple Certificate - Cousename too long

by Marko Marko -

Hi Carlos,

Beautiful block! Is there a way where you can display the certificates expanded by default rather than collapsed?

Thanks!

In reply to Marko Marko

Re: Simple Certificate - Cousename too long

by Carlos Alexandre Fonseca -
Picture of Plugin developers

No, there isn't, only by changing the code

In reply to Carlos Alexandre Fonseca

Re: Simple Certificate - Cousename too long

by Educantel Educantel -

Hola Carlos, disculpa te moleste, pero instalamos la versión 3.4 de moodle y no nos está funcionando el bloque de certificados simple que ustedes diseñaron hasta la versión 3.3 de moodle. ¿Podrías ayudarnos? Somos de Educantel. Gracias

In reply to Educantel Educantel

Re: Simple Certificate - Cousename too long

by Carlos Alexandre Fonseca -
Picture of Plugin developers

Esse bloco pade ser intalado no moodle 3..4  sem problemas,  desde que tenham instalado anteriormente o plugin de certificado simples

In reply to Carlos Alexandre Fonseca

Re: Simple Certificate - Cousename too long

by Educantel Educantel -

En primer lugar gracias Carlos por tu respuesta.

Seguimos los pasos como tu dices, primero instalamos el plugin de la actividad certificado simple y luego el del bloque certificado simple.

Cuando queremos que ese bloque se muestre en la pàgina, para poder agregarlo al área personal nos aparece una pantalla en blanco con un recuadro con el siguiente texto:   Excepción - Cannot use string offset as an array

Quizá sea algo simple y no lo estamos notando, pero si te ha pasado te agradecemos la ayuda.

Saludos

In reply to Carlos Alexandre Fonseca

Re: Simple Certificate - Cousename too long

by Educantel Educantel -

Cuando queremos agregar el bloque nos sale este error. ¿qué podrá estar pasando?

Tenemos instalado moodle 3.4 y php 7

Hicimos tal como dijiste, primero instalamos plugin de cetificados simple y luego plugin de bloque simple_certificate.

Muchas gracias por la ayuda


Warning: Illegal string offset 'courses' in /opt/apps/moodle/blocks/simple_certificate/renderer.php on line 145

Excepción - Cannot use string offset as an array
Debug info:
Error code: generalexceptionmessage
Stack trace:
  • line 145 of /blocks/simple_certificate/renderer.php: Error thrown
  • line 120 of /blocks/simple_certificate/renderer.php: call to simple_certificate_tree->get_certs_tree()
  • line 37 of /blocks/simple_certificate/renderer.php: call to simple_certificate_tree->__construct()
  • line 114 of /blocks/simple_certificate/block_simple_certificate.php: call to block_simple_certificate_renderer->block_simple_certificate_tree()
  • line 288 of /blocks/moodleblock.class.php: call to block_simple_certificate->get_content()
  • line 230 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
  • line 1210 of /lib/blocklib.php: call to block_base->get_content_for_output()
  • line 1262 of /lib/blocklib.php: call to block_manager->create_block_contents()
  • line 579 of /lib/outputrenderers.php: call to block_manager->ensure_content_created()
  • line 39 of /theme/bootstrapbase/renderers/core_renderer.php: call to core_renderer->standard_head_html()
  • line 44 of /theme/clean/layout/columns3.php: call to theme_bootstrapbase_core_renderer->standard_head_html()
  • line 1261 of /lib/outputrenderers.php: call to include()
  • line 1191 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
  • line 164 of /my/index.php: call to core_renderer->header()
In reply to Educantel Educantel

Re: Simple Certificate - Cousename too long

by Carlos Alexandre Fonseca -
Picture of Plugin developers

i think the problem is php7,  some codes breaks in php7  and i don't test in php7

In reply to Carlos Alexandre Fonseca

Re: Simple Certificate - Cousename too long

by Educantel Educantel -

Entonces Carlos, ¿será imposible trabajar con el bloque Certificados con 3.4.3 que requiere phh 7.2.4 y 5?


In reply to Educantel Educantel

Re: Simple Certificate - Cousename too long

by Carlos Alexandre Fonseca -
Picture of Plugin developers

I don't know, i still don't  check it

As you may know  this is a unsupported open source work, and i don't  have much time to verify and fix  that for now!!!!!!! 

So i don't know




In reply to Carlos Alexandre Fonseca

Re: Simple Certificate - Cousename too long

by Educantel Educantel -
I understand the situation.
The module has been very useful for us and we intend to maintain its continuity combined with the corresponding block.
We will look for possible solutions and share with the community


Average of ratings: Useful (1)
In reply to Educantel Educantel

Re: Simple Certificate - Cousename too long

by Educantel Educantel -

We solve this by changing the following lines in the renderer.php code:

Line 131: change what is by: $ result = array ();

Line 100: where html_writer appears write html_writer :: label ($ url, $ image. $ Certname.) And leave the rest as is.


Average of ratings: Useful (1)
In reply to Carlos Alexandre Fonseca

Re: New Block: Simple Certificate

by Carlos Alexandre Fonseca -
Picture of Plugin developers

New plugin version for moodle 3.5,  fixing the problem with php 7,   thanks  to Educantel Educantel