General plugins

New activity: Simple Certificate

 
 
Picture of Carlos Alexandre Fonseca
New activity: Simple Certificate
 

I have released a new 'Simple Certificate' activity module, which can be found in the plugins database here: https://moodle.org/plugins/view.php?plugin=mod_simplecertificate

This module is based on certificate module, maintained by Mark Nelson, but simpler to use, no needs to change any code to add a new certificate format, and moodle's administrator don't need to upload image files or change language variables. The certificate text are full customisable, using special text marks that will be replaced by variables (like student name, course name, grade, ...).


Feel free to let me know about any bugs or improvements (preferably via the Bugs & Issues link, on the page linked above).

 
Average of ratings:Useful (5)
Picture of German Valero
Re: New activity: Simple Certificate
Group Documentation writersGroup Particularly helpful MoodlersGroup Translators

Hi Carlos,

I translated the simple certificate language strings into Mexican spanish at AMOS (http://lang.moodle.org/). I will try it in my local server and report to you.

It certainly looks very nice and useful.

 

 
Average of ratings:Useful (1)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

That is great, thanks

 
Average of ratings: -
Picture of Marta Lopes
Re: New activity: Simple Certificate
 

Hello Carlos,

I'm using the Simple Certificate plugin and accurate paste text and a picture on the back of the certificate on page 02.

 
Average of ratings: -
Picture of Marta Lopes
Re: New activity: Simple Certificate
 

Carlos, I find the code below, the file generated QRCode locallib.php referring to on page 02 of the single certificate, but each course to the back of the certificate must contain a list of course topics and signature of the school principal.

There is a possibility I ensirir an image, PDF or text on page 02?

  / / Add code certificade using QRcode, in a new page (to print in the back)
         $ pdf-> AddPage ();
         $ style = array (
             'border' => 2,
             'vpadding' => 'auto',
             'hpadding' => 'auto',
             'fgcolor' => array (0,0,0),
             'bgcolor' => false, / / array (255,255,255)
             'module_width' => 1, / / width of a single module in points
             'module_height' => 1 / / height of a single module in points
         );
         $ codeurl = "$ CFG-> wwwroot / mod / simplecertificate / verify.php? issuecert-$ code => code";
         $ pdf-> write2DBarcode ($ codeurl 'QRCODE, H', 10, 10, 50, 50, $ style, 'N');
         $ pdf-> SetFontSize (10);
         $ pdf-> setFontStretching (75);
         $ pdf-> Text (9, 60, $ issuecert-> code);

         return $ pdf;
     }

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

In this plugin it's not possible to do that, put an image on page 2.

You can  create an image with all you needs ( borders, signature, ...)  and puts on page one, or put the course topics in certificate text.

I think you the Mark Nelson's certificate module  will be better to you, because it's more simple to modify a certificate php code.

Mark Nelson's and my plugin uses TCPDF lib, and it's not difficult to use it, has many examples

 

 

 

 
Average of ratings:Useful (1)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Marta, porque estamos escrevendo em  inglês ???  smile

 

 
Average of ratings: -
Picture of Marta Lopes
Re: New activity: Simple Certificate
 

 
Carlos, eu achei que era possível, visto que, no arquivo mod_form.php poderia acrescentar um campo 'imagem_back' semelhante ao da pagína 01 onde o administrador do curso faz upload de uma  imagem de fundo do certificado e no arquivo locallib.php direcionar a impressão para essa imagem, ou seja, ao invés de imprimir o QRCode imprimiria essa imagem.

Seria tudo de bom...pois o seu plugin é mais fácil para manusear.

Obrigada pelo retorno.

Abraços

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Possível é,  só que esse plugin não faz isso, não na versão atual, quem sabe no futuro.

Assim como é possível colocar a image e o QR code juntos,  vou colocar como uma melhoria futura.

 
Average of ratings: -
Picture of Marta Lopes
Re: New activity: Simple Certificate
 

Carlos, só não mencionei a impressão do  QR Code Junto com os demais itens do verso do certificado, porque não usamos a impressão do QR Code,inclusive a impressão do QR Code poderia ser opcional.

Após fazer várias pesquisas com colegas que trabalham com o moodle, constatei que 99%  dos orgãos públicos trabalham com a emissão de certificado,contendo frente e verso e, no verso há apenas descrição dos tópicos abordados no curso e assinatura do diretor.Atualmente a maior parte das pessoas ainda emitem certificados fora do moodle.

Portanto, o ideal é que duplique dois campos o certificateimage (certificateimageback) e o certificatetext(certificatetextback) e dessa forma poderiamos fazer upload da imagem,incluisve com as assinaturas que desejamos, e manusear o texto do verso com a mesma facilidade do texto da primeira página.No certificate.php imprimir o arquivo com  a imagem e texto informados no mod_form.php na segunda página no verso.

Vou aguardar uma versão futura..rss

 

 

 

 

 

 

 

 

 

 

 

 

 
Average of ratings: -
Picture of Alberto García Gómez
Re: New activity: Simple Certificate
 
Hi Carlos, I have downloaded Simple Certificate for Moodle 2.3 and I think it is a great contribution. Thank you very much.

However I have been a problem with the QR code: I get an error when I access the link generated by the QR code:

error/Invalide certificate code

If the QR code is: f345c4e0-8182-11e2-afa8-4b7df1272463 it generates de folowing link:

http://[our_url_moodle_server]/mod/simplecertificate/verify.php?code=f345c4e0-8182-11e2-afa8-4b7df1272463

Can I disable the QR page in the certificate?
---
Alberto García Gómez
This is odd, because i have tested it, the code is the same that was printed below QR code picture? it's the same at mod/simplecertificate/report.php ? (column code). 
In this version you can't disable it, may be in future version.
---
Carlos, when I launch mod/simplecertificate/report.php I obtain this message:

There are no certificates that have been issued

I'll test version 1.2.3 for Moodle 2.4 and I'll tell you if it works fine.

 ---

Hi Carlos, I have tested simple certificate 1.2.3 in Moodle 2.4 and it occurs the same error with the QR code...

I have attached some captures.

 
Picture of Marta Lopes
Re: New activity: Simple Certificate
 

Hi Alberto, I use the Simple Certificate and Certificate and the two work perfectly, but my version is current and working with Moodle 2.4

As for your question Can I disable the QR page in the certificate?

Yes, you can open the file moodle / mod / simplescertificate / locallib.php and place the passage (lines 513-528) in comments below:

/ * Add code certificade using QRcode, in a new page (to print in the back)
       $ pdf-> AddPage ();
         $ style = array (
             'border' => 2,
             'vpadding' => 'auto',
             'hpadding' => 'auto',
             'fgcolor' => array (0,0,0),
             'bgcolor' => false, / / array (255,255,255)
             'module_width' => 1, / / width of a single module in points
             'module_height' => 1 / / height of a single module in points
         );
         $ codeurl = "$ CFG-> wwwroot / mod / simplecertificate / verify.php? issuecert-$ code => code";
         $ pdf-> write2DBarcode ($ codeurl 'QRCODE, H', 10, 10, 50, 50, $ style, 'N');
         $ pdf-> SetFontSize (10);
         $ pdf-> setFontStretching (75);
         $ pdf-> Text (9, 60, $ issuecert-> code) * /

Hope this helps you ...

 
Average of ratings:Useful (1)
Picture of Alberto García Gómez
Re: New activity: Simple Certificate
 

Thank you very much Marta. It works perfectly for me. I'll continue testing the module to find the problem...

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Alberto, do this, please:

  1. Assign a student to your course;
  2. Login as this student account (can use "login as" function);
  3. Get the certificate;
  4. Verify the QR code;
  5. Logoff and login as moodle Admin (as administrator);
  6. Go to report page and you should see the issueds certificate list;


This module don't save Admin's certificate

 
Average of ratings: -
Picture of Alberto García Gómez
Re: New activity: Simple Certificate
 

Thank you Carlos! Indeed, everything worked fine when I enrolled as a student.

I thought I had tested this option as a student, but I was enrolled as a non-editing teacher (I should change my role in any of the tests)... thoughtful

Sorry about the time I made ​​you lose. 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

No problem

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Alberto, this isn't an error, you don't has issued any certificate (as a student)! Admin certificates are not saved.

May be this is the cause your QR code error!

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Please, vote in this module in Moodle Tracker,  to the moodle admin give me edit access to tracker, so i can use it to put improvements tasks and any one can report a bug (in moodle tracker).
https://tracker.moodle.org/browse/CONTRIB-4120

 
Average of ratings: -
Picture of Steve Giesel
Re: New activity: Simple Certificate
 

Hi Carlos,

This may be an ignorant question but do I understand this module to allow for custom certificate?  I mean can I create a custom cert. in a PDF with appropriate spaces for customizable text, and just upload it into the system?

Thanks in advance, Steve

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

No, this module will create a PDF file, you must upload an image (background) with all stuff that not change  in certificate (like  signature, certificate title, watermark, seal, logos, .....). And you can write and a custom text with special marks that will be replaced by moodle's variables:

Imaging you are a student making the course "Advanced XTPO", and you generate your certificate, and the text of your certificate is:


Certificate

for

Advanced XPTO

to

Steve Giesel

March, 21 2013

In certificate configuration, in the certificate text  option will be :


Certificate

for

{COURSENAME}

to

{USERNAME}

{DATE}

This modules has other options like Certificate size,  text position, date format, ...

 
Average of ratings:Useful (1)
Picture of Steve Giesel
Re: New activity: Simple Certificate
 

Thank you Carlos.  That isn't significantly different from the built-in certificate is it?

Steve

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Which built in certificate ?  moodle don't have any built in certificate in your core code (as i know).

There is an another plugin called certificate,  maintained by Mark Nelson, as written in my documentation, and has a huge difference, in certificate module you must change php files (programatic) and upload it to change certificate format, and if you want a new border, watermark, you must upload it out side of moodle, the module configuration don't have this possibility and because this, backup don't work very well (i think).

But Mark Nelson has new ideas to a new certificate module, so i think the certificate module will be discontinued in future (again)!

 

 

 

 
Average of ratings:Useful (1)
Picture of Greg Sweeney
Re: New activity: Simple Certificate
 

Works great with 2.4.3 so far.  Thanks for doing the mods.  One question: Is there a way I can add variables other than the ones you've listed in the module help?  Info from other global or custom fields?  I added a couple of unique fields to the user profile area and I need the info displayed on the cert.

Thanks,

Greg

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

In version 2.0 of this mod will be possible to add any user fields, including user custom fields, and has others enhancements, sugestions made here, like disabling QR code,  image and text in certificate back page.

You can see the progress at:

https://github.com/bozoh/moodle-mod_simplecertificate/issues?milestone=1&state=open

sorry, but until now i don't have an moodle tracker write access,  so i use github

 

 

 
Average of ratings: -
Picture of Luiggi Sansonetti
Re: New activity: Simple Certificate
 

hi

just for information, french language file (thanks to Daniel Methot) is updated in AMOS system for all Moodle 2.x versions.

cheers.

 
Average of ratings:Useful (1)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

That's great!

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

More than 1000 downloads,  that's great,  thanks for all

 
Average of ratings: -
Picture of max max
Re: New activity: Simple Certificate
 

you can add in the certificate list of fully equipped Scorm with the completion date?
something like the attached file


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

No you can't

 
Average of ratings: -
Picture of Alberto García Gómez
Re: New activity: Simple Certificate
 

Hello again Carlos, I think I found a little bug in this module.

With the module installed, if I try to launch an activity report I get an error message that says it can not access the table "simple_certificate" (in debug mode).

I tried to copy the table "simplecertificate" into a new table called "simple_certificate" and the error has been fixed.

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Added in issue tracker, thanks

 
Average of ratings: -
Picture of Alberto García Gómez
Re: New activity: Simple Certificate
 

Thanks to you!

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

it's fixed in version 2.0.0

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

New version has come,  version 2.0.0,  with many improvements like:

  • 2-side certificate with text and image;
  • disabling QR code;
  • user's profile fields (user custom fields too)

Enjoy

 
Average of ratings:Useful (1)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

This plugin is now available to moodle 2.5

 

 
Average of ratings: -
Picture of Toshihiro KITA
Re: New activity: Simple Certificate
 
Thank you very much for releasing this great plugin and updating it for moodle 2.5!

As i tried to include Japanese characters in the cerficate, i found a way to do that.
i just added the description to http://docs.moodle.org/24/en/Simple_certificate_module#Languages_with_special_character .
 
Average of ratings:Useful (1)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I see your modifications in docs, thanks, 

this an TCPDF problem  which don't use only complete UTF-8 charset fonts !,  so you must install a new one.

 More about this problem: http://stackoverflow.com/questions/5333702/tcpdf-utf-8-problem

Solutions: Install new fonts in TCPDF folder, in moodle lib (lib/tcpdf/fonts/)
http://www.tcpdf.org/fonts.php
http://sandeepverma.wordpress.com/2009/12/10/create-tcpdf-php-fonts/

On-line converter (not tested)
http://www.xml-convert.com/en/convert-tff-font-to-afm-pfa-fpdf-tcpdf

 
Average of ratings:Useful (1)
B.Havel
Re: New activity: Simple Certificate
Group Particularly helpful MoodlersGroup Translators

Thanks, well done, local font solved.

Bohus

 
Average of ratings: -
Picture of Mark Watson
Re: New activity: Simple Certificate
 

Hi Carlos, I've installed Simple Certificate 2.02 (2013070501) into Moodle 2.5.1 (20130712). I can get the text to appear in the Certificate (provided the only <p></p> surrounds all the HTML) but I cannot get the font face and size to change.

My installation is on WIndows Server 2008 with IIS 7.5, PHP 5.5.0, MySQL 5.6.12.2.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

you must install fonts in tcpdf folder in moodle (lib/tcpdf/fonts) ,  moodle provided by default a small numbers of fonts to reduce "moodle size"

Try to use <H1> tags,  and do not use css files or class,  use <span> tags

 

 

 
Average of ratings: -
Picture of Sikandar Hayat
Re: New activity: Simple Certificate
 

Hi,

I am new to moodle and my first add-on is simple certificate and found it very useful and easy. Just one suggestion if can be consider to add a unique certificate number (auto generated) and provided a variable of the same so it can be displayed on the certificate.

 

thanks

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

This plugin already has this function,  the QR code does just that.

All  issued certificates has an unique auto generated code, and when the certificate is issued a barcode (QR type) and the textual code are shown on the second page.

The certificate can be verified in URL   http://<YOUR MOODLE URL>/mod/simplecertificate/verify.php

I think you asking to put textual code without QRcode, like {CERTIFICATECODE} text mark,  ok i could do that in next version

 
Average of ratings: -
Picture of Sikandar Hayat
Re: New activity: Simple Certificate
 

Hi,

Yes you understood perfectly,

"I think you asking to put textual code without QRcode, like {CERTIFICATECODE} text mark,  ok i could do that in next version"

this is the feature I am looking for. tks sikandar

 
Average of ratings:Useful (1)
Picture of Romulo Afonso
Re: New activity: Simple Certificate
 

Olá Carlos,

É possível neste módulo realizar a liberação do certificado apenas quando o aluno atingir uma nota X (60% por exemplo)?

Caso seja possível, como eu poderia configurar esta opção?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Romulo, esse fórum é em inglês, o fórum em português é https://moodle.org/mod/forum/discuss.php?d=230459, mas tudo bem eu traduzo aqui.

O moodle que oferece isso para qualquer tipo de plugin, acredito que tenha que ativar algo na configuração do curso , procure por conditional activities, algo assim

 

--- Romulo Afonso

Hello Carlos,
This plugin can only issue certificate only if the student reaches a score X (for example 60%​​)?

If possible, how can I set this option?

--- Anwser

Moodle has this function to all modules, i think you must enable something in the course settings, look for Conditional Activities.

 
Average of ratings: -
Picture of Romulo Afonso
Re: New activity: Simple Certificate
 

Obrigado pela resposta Carlos,

Contudo, esta opção conditional activities ficava dentro do módulo de certificado anterior. Ou seja, era configurada diretamente no certificado qual atividade o aluno deveria fazer para liberar o certificado ou qual a nota final do curso. O seu módulo não dispõe desta opção?

 

--Thanks for the reply Carlos,

However, this option was conditional activities within the module of the previous certificate. Ie was configured directly on the certificate which activity the student must do to release the certificate or where the final course grade. Your module does not have this option?

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
Average of ratings: -
Picture of Alfredo Ruiz
Re: New activity: Simple Certificate
 

Hi, Carlos. Nice Job with the plugin.

I've installed and tested it and i really like it. There's some issue that i'd like to tell you about: When you use an empty parragraph tag in the text box, the whole text disappears. I mean that if i use <p></p> in the html code, the whole text get lost, whereas using </br> tags works fine. I've tried in different browsers with the same behavoir. It's not a big deal, just a bit odd.

Does it happen to you, or should it be something about my theme, browser, or whatever?

Thanks.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I didn't understand where the text disappears,  in the textbox or in the certificate file  (PDF )?

If in PDF file, it's never happen with me, and it's first time someone report it.

if in Textbox:
I use the same textbox used by many others plugins, it's part of moodle's libs, so try to use textbox of others activity, like forum , if you have the same problems it's something wrong with your browser, or at your moodle installation.

There is some plugins in the browser can help you ,  like firebug for firefox


 
Average of ratings: -
Picture of Alfredo Ruiz
Re: New activity: Simple Certificate
 

It's in the pdf. The textbox works fine, but when you generate the certificate, it shows only the background image without any text.

I'll try to find out if it's browser related or something in my moodle installation.

Thanks smile

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

OK,  put your moodle in debug mode, could help,  anyone more has this issue ?

Verify your html code, tcpdf has a limited HTML support, so don't use too much elaborated HTML,  verify text position,  alignment , tables work better for text position with TCPDF.

 

 

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

New plug-in version available

  • plug-in version for moodle2.2 is now fixed (it's was broken);
  • some deprecated warnings is now fixed;

 
Average of ratings: -
Picture of Ismail Aksoy
Ynt: Re: New activity: Simple Certificate
 

Hi Carlos,

How can i add course score to the left top corner and course completion date to right top corner?

 
Average of ratings: -
Picture of Petr Váňa
Re: Ynt: Re: New activity: Simple Certificate
 

I found your add-on very usefull for me , but I have problem I need to insert into text new empty line. I try add <br> or empty paragraph and after this is certificate empty - only backround picture. Without "empty lines" is everythin OK. I need to add some text into right bottom corner too, is this possible?

 
Average of ratings: -
Picture of Alfredo Ruiz
Re: Ynt: Re: New activity: Simple Certificate
 

Petr, i haven't looked into it yet, but i had the same problem. Any time a i used <p></p> empty tags, it dissapeared. It must be something about my moodle theme or moodle installation. Anyway, my point is that maybe if you just use <br> for spacing, instead of <p></p> it would work.

Good luck.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Ynt: Re: New activity: Simple Certificate
 

What theme are you using ? this is very strange

 

 
Average of ratings: -
Picture of Ismail Aksoy
Ynt: Re: Ynt: Re: New activity: Simple Certificate
 

Dear Carlos,

Is it possible to make certificates can only be created and printed by admins for the students? If not, it's a feature request smile

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Ynt: Re: Ynt: Re: New activity: Simple Certificate
 

Like bulk certificate creation, for all students (or other roles)?, in this version, no

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Ynt: Re: Ynt: Re: New activity: Simple Certificate
 

bulk certificate creation, for all students (or other roles), some problems:

  1. Select which roles to do this, or only students (or student like)
  2. certificates with conditional activities
  3. put all certificate in one big pdf or separate files (separate pdfs i thinks is better)
  4. if separate, creating a zip file with all pdf... maybe to download all certificates at once

but why not let the students issue their own certificates?  you want to print it and send to your students ? ,  if no i don't see any benefit to do that.

 

 
Average of ratings: -
Picture of Ismail Aksoy
Ynt: Re: Ynt: Re: Ynt: Re: New activity: Simple Certificate
 

No I don't want bulk certificate creation. I want to see the students who completed the course or exam then create certificate one by one. Print them to special papers and sign them. 

 
Average of ratings:Useful (1)
Picture of Carlos Alexandre Fonseca
Re: Ynt: Re: Ynt: Re: Ynt: Re: New activity: Simple Certificate
 

To print, this request makes sense.

so, what i think about this request:

  1. put a new option in "issue options", something like , 'not issue, user will recive this certificate using others ways', and put a new option which will be displayed to user  something like 'issue instruction' or 'issue text'
  2. in issued certificate list, add a button to issue all certificate (only students that reach the end of course conditions), with this you can download and print one by one;
  3. a button to download all issued certificate (separate files) and another to download one big pdf file with all issued certificate, it's good for printing

 

for now, you can create a certificate activity and use "login as" to download the certificate.

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Ynt: Re: Ynt: Re: Ynt: Re: New activity: Simple Certificate
 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Ynt: Re: New activity: Simple Certificate
 

try to use html tables, works better for text positioning,   and use the options certificatetextx  and certificatetexty  to positioning the text (in more option or advanced options)

http://docs.moodle.org/24/en/Simple_certificate_module

 

 
Average of ratings: -
Picture of Petr Váňa
Re: Ynt: Re: New activity: Simple Certificate
 

Thnx, this really helps me. Html table works like a charm

 

 
Average of ratings: -
Mark
Re: New activity: Simple Certificate
 

Hi Carlos,

I am having difficulty with the certificate size.

I would like to create an A4 size "portrait" certificate.

When I change the landscape A4 size to portrait it seems to have no effect.

I am using a Simple Certificate that I downloaded a month ago so not sure if my issue exists in the new version.

Hope you can assist.

Mark

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

this plugin don't have portrait or landscape option, it has height and width sizes, but i think you made this right ....

i will test this, but it was working

 

 

 
Average of ratings: -
Picture of Nikola Ivanovic
Re: New activity: Simple Certificate
 

Hi Carlos,

great module, simple and easy to use!

 

1. Is there a way to put QR code on the same page with other info (front page)?

2. Is there a way to generate unique code/number printed on certificate for each student?

 

Many thanks,

Nikola

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

1- Until now no, QR code only in the second page (back of certificate),  but i can create an option to do that, something like "Which page QR code will be printed?", with option (Front page, Back page), with back page as default;

2- As i say before,  only the unique code, without QR barcode is not possible, but it will be in the next version;

 

 

 
Average of ratings: -
Picture of Nikola Ivanovic
Re: New activity: Simple Certificate
 

Hi, that would be very good - to create a page selection for QR code, and position as well.

Nikola

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Positing QR code it's possible in current version, but not in frontpage, i put your suggestion in  my github

you can follow it at  https://github.com/bozoh/moodle-mod_simplecertificate/issues/23

 
Average of ratings: -
Picture of mariah lewis
Re: New activity: Simple Certificate
 

"Hi, that would be very good - to create a page selection for QR code, and position as well.  "

but how to place with barcode?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Why use barcode ?,  QR code can be read by any webcam, cellphone cameras,.... I don't see any advantage to put in barcode.

QR code is more appropriate to "encode" URL

 

 
Average of ratings: -
Picture of mariah lewis
Re: New activity: Simple Certificate
 

how to encode url into qr code ?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

the  TCPDF lib has support to QR code,  but a simple google search i found

 

http://raidenii.net/files/datasheets/misc/qr_code.pdf

http://www.thonky.com/qr-code-tutorial/

 

 
Average of ratings: -
Daniel
Re: New activity: Simple Certificate
 

Bonjour,

I have this error message :

Notice: Undefined property: stdClass::$numsections in /home2/elearnin/public_html/formations/mod/simplecertificate/lib.php on line 615

Moodle 2.5.1

Daniel

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

i didn't try in moodle 2.5.1, but i tested it in 2.5, and this warnings were removed, you get the latest version?

This is not an error it's only a notice, try to disable the debug mode.

 
Average of ratings: -
Picture of Petr Váňa
Re: New activity: Simple Certificate
 

I have similar problem after swap height and width size no change on certificate appear. I have problome with other choices too, if I disable QR or change vertical or horizontal text position - still no change. May be problem is that I use only Save and Display to check certificate. May be result is cached somwhere or what?

Thanks for Answer

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Swapping height and width, making an portrait certificate,  i wasn't tested,  but i think it's ok, i will test this, but disable QR code and change text position is tested and works ok, many people use this, especially disable QR code

For text position  i recommend to use tables,  the pdf lib which come with moodle (TCPDF) works better with table

 
Average of ratings: -
Picture of Ian Johnstone
Re: New activity: Simple Certificate
 
Hi Carlos - I am looking for a way to create a single page certificate that displays a learners results (quiz names and scores of approx. 6 quizzes) from a single course on the one certificate. Is there a way to do this with this plug in?
 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Until now it's not possible,  you can display only the course grade (results).

I can put this as a new feature, but i don't think it be ready at next version.

 
Average of ratings: -
Picture of Matthew heddle
Re: New activity: Simple Certificate
 

Okay, so forgive me because I am a newbie. I have installed this plugin and everything checks out. My question is how does the certificate get implemented? Does the certificate become available when the user completes the course within the conditions set for completion? Does the Teacher/Administrator have to make it or send it to them? There is no indication of a certificate when someone completes my course. The only place where there is anything about a certificate is in the Site Admin >Plugins >Simple Certificate. I don't see it anywhere in the Course Administration or in the user settings when they complete it. Please help.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I think i understand your question

Do you want know how to use this plugin.

All activity plugins works in the same way,  you must create an activity in your course to use it , like a forum, chat ...

For this plugin you must create an activity called simple certificate, and when you do this, the configuration page will show up and you can edit the options to create a custom certificate to that course.

 

 

 
Average of ratings: -
Picture of Matthew heddle
Re: New activity: Simple Certificate
 

When I install the plugin, it does create an Activity Module called Simple Certificate. I don't see anywhere to add an activity to my course. There is currently only one activity showing in my course via my SCORM package uploaded with my course.

I think that my issue is with Moodle not marking my course complete when someone passes the test. The test is the only measuing stick by which the course is marked complete, however, even though I have the course set to be marked complete when any of the conditions occur (complete activity of passing grade on test), it doesn't mark my course complete, and if I understand how your plugin works, it would trigger the ability for the certificate to be printed.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

The plugin works like any other activity module,  if you must create it in your course to work !, and the user must click in the activity to get the certificate, it's not automatic !

If in you course you can only see SCORM upload  there is something wrong with moodle installation or you set your course format as SCORM,  try to change to topics, or weeks

Read more about moodle at:

http://docs.moodle.org/25/en/?lang=en

 

 
Average of ratings: -
Picture of Matthew heddle
Re: New activity: Simple Certificate
 

My course is not a Moodle course. It is a Flash course that uses JavaScript to send SCORM calls to an LMS. It is working properly as far a Activity(SCORM) and Course Completion tracking. It sounds as though the course must be one created in Moodle and will not work with something like this or something like an Articulate course. Is that right?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

This plugin must be used in a moodle course, and you have one,  it's where SCORM activity is located.

Your SCORM packages has a sort of "webservice",  sending data to another LMS, and i think you use course completion webservice interface too.

This plugin don't have any webservice support, it can have in future ...

 
Average of ratings: -
Picture of Matthew heddle
Re: New activity: Simple Certificate
 

The SCORM calls from my FLASH course are basic LMS calls (initiate,complete, passed, score, etc). Is there some sort of call I can make in my JavaScript file to call the Certificate?  I guess I am confused on how this all works. How do I add the activity into my course, if at all? I can call non-SCORM functions from my JavaScript, but that won't work if Moodle doesn't recognize there is an Activity called "Certificate", right? You said "This plugin must be used in a Moodle coures", How do I use it IN my Moodle course?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Explanation "how moodle works" and "how using moodle" it's out of scope of this forum, who can find it at:

http://docs.moodle.org/25/en/Using_Moodle_book

https://moodle.org/course/view.php?id=5

https://moodle.org/mod/forum/index.php?id=5

But it's the same way you used to create a SCORM activity , but you must choose "Simple certificate"

 

 

 
Average of ratings: -
Picture of Gary Lyon
Re: New activity: Simple Certificate
 

I recently upgraded to Moodle 2.5 and upgraded to your most recent version of Simple Certificate. When I print a certificate using the {DATE} option see (Screen Capture 1) the certificate  prints the numeral '1' where I've specified the date should appear.

In your previous response you referred me to http://www.php.net/manual/en/function.date.php for additional information on how to format the {DATE} variable but no matter how I try to implement your recommendation I do not get a date. As the 'help' for the certificate does not provide additional information, please provide some examples of how I would use the {DATE} variable. 

Thank you


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

here, my certificate and certificate configuration



 
Average of ratings: -
Picture of Gary Lyon
Re: New activity: Simple Certificate
 

Thank you very much...if it had been any more obvious I would have tripped over it. wink - Cheers!

 
Average of ratings: -
Picture of Kindah Brennan
Re: New activity: Simple Certificate
 

Hi, thank you for this plugin.  Your hard work is very much appreciated.  I have installed it on a 2.2 version of Moodle.  All works great except for the custom fields that I have created.  The certificate is not pulling the information from the short names created under Administration > Site administration > Users
> Accounts > User profile fields
.  I have tried all different combinations (i.e. PROFILE_PHOTOID, profile_photoid, profile_field_photoid, etc.)

Some of my fields below (custom ones not working):

Proof of Completion Certificate is presented to:
Name:  {USERNAME}    <--- works
Type of Photo ID:  {profile_field_photoid}  <--- no (custom)
ID Number:  {PROFILE_IDNUMBER}  <--- no (custom)
ID Expiration Date:  {PROFILE_IDEXPIRATION}   <--- no (custom)
Completion Date: {DATE}  <--- works
for Completion of {COURSENAME}.  <-- works

Any help would be appreciated. Thanks!

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

It depends on what shorname you used in your custom fields,  
if you created a custom field like:

  • Name: Birth Day
  • Shortname: birthday
  • Type: Date

In certificate you must use  {PROFILE_BIRTHDAY}

PS:

  1. User's Photo/image will not be displayed;
  2. IDnumer field is not a custom profile field (Only if you created one with same shortname);

 

 

 
Average of ratings:Useful (1)
Picture of adn ali
Re: New activity: Simple Certificate
 

hi carlos and thank u for this great plugin.

i followed your instruction below :

It depends on what shorname you used in your custom fields,  
if you created a custom field like:

  • Name: Birth Day
  • Shortname: birthday
  • Type: Date

In certificate you must use  {PROFILE_BIRTHDAY} "

 

but i'm still facing problem , any other hints which can help .

my moodle is 2.4

many regards

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

And what's problem do you have ?!?!?

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
New Version Released - v.2.1.0
 

New version is released, 2.1.0

and i will not apply new stuffs in this plugin for moodle 2.3 and 2.2, this is the last version for them

Changes:

version - 2.1.0
-Put code in a text mark (#17)
-Bulk Operations (#21)
-QR Code in frontpage (#22)
-Background images not required item (#27)

---FIXED BUGS
-Issue options send as email: conding_excetpion thrown (#22)-slabrador

see at:
https://github.com/bozoh/moodle-mod_simplecertificate/issues?milestone=4&page=1&state=closed


 
Average of ratings: -
Picture of Kate Hayes
Re: New Version Released - v.2.1.0
 

Hi Carlos

I've been using your earlier Simple Certificate with great results and thought that I'd upgrade to your newly released version as I've had a request for the QR code to be on the frontpage.

Having got the new version, I am now getting an error message of 'No Users Found'.    I'm hoping that you might be able to assist.

Regards

Kate

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New Version Released - v.2.1.0
 

And when you get that, trying to do what ?

 
Average of ratings: -
Picture of Ken Task
Re: New activity: Simple Certificate
Group Particularly helpful Moodlers

Just attempted upgrading via Moodle Interface for upgrading plugins.

Got to the screen for upgrading the DB for the plugin.  Clicked continue and blank screen after that. Purged all caches, cleared APC opcode cache, removed browser cookie.   Could login again, but ... white screen of death (wsod) kicked in again.

Turned on debugging via config file as all screens were wsod.

Parse error: syntax error, unexpected T_VARIABLE in /..../mod/simplecertificate/settings.php on line 36

CentOS release 6.4, PHP 5.3.3

Moodle: 2.4.6+ (Build: 20130913)

Line 38 of code contains:

tings->add(new admin_setting_configcheckbox('simplecertificate/disablecode',

To recover and be able to use the system, renamed the mod/simplecertificate folder to .simplecertificate (dot in front hides it from Moodle).  But, the one simplecert used is, of course, broken.

Fix?

Corrupted lines ... downloaded the plugin from plugins at Moodle.org.  Unzipped the zip locally, pulled up settings.php file in local text file, and copied the un-corrputed code into the settings.php file on server via terminal/nano.

Everything works now.

'spirit of sharing', Ken

 
Average of ratings:Useful (1)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Thanks for sharing, may help someone.

I thing moodle has to improve this interface for upgrading,  like put an checksum to verify the downloaded file before install,  so corrupted download will be avoid.

i  open a ticket with your post

https://tracker.moodle.org/browse/MDL-42063

 
Average of ratings: -
Picture of Ken Task
Re: New activity: Simple Certificate
Group Particularly helpful Moodlers

Am assuming the links found in plugins via web and the updates point to the same .zip file.  From reply sounds like that's true and the package doesn't contain corrupted settings.php file.  The corruption occurred either on download or during the upgrade process ... which has to unzip the package.

Think vr 2.5.x does do some checking for validity of package/ downloads/etc.  Will check with that version when I find some time.  The version used with the issue was the highest 2.4.x.

'spirit of sharing', Ken

 
Average of ratings: -
Picture of jeroen Arends
Re: New activity: Simple Certificate
 

after upgrading to 2.1.1 the plugin does not work anymore. When a student tries to download a certificate they only get a blank screen.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Which moodle version?

The user Ken Task had the same problem, try this:

https://moodle.org/mod/forum/discuss.php?d=222296#p1043264

 
Average of ratings: -
Picture of jeroen Arends
Re: New activity: Simple Certificate
 

i am using moodle 2.2

I don't have the same problem as ken. i can still access the site only the plugin does not function for the students. 

 
Average of ratings: -
Picture of Ken Task
Re: New activity: Simple Certificate
Group Particularly helpful Moodlers

@jeroen Arends

Am running all moodles at 2.4 or 2.5 right now so don't know if 2.2 has this in the admin menu or not, but something to check

Site Admin - Users - Permissions - Capability overview

Set to student then search with the term 'simple'.

The 'mod/simplecertificate:view' should be allowed.

If you do NOT have that admin tool in 2.2, check the permissions on role of student.   Looking for the same above ... set to allow.

'spirit of sharing', Ken

 
Average of ratings:Useful (1)
Picture of jeroen Arends
Re: New activity: Simple Certificate
 

permissions are set correctly. 

 
Average of ratings: -
Picture of Ken Task
Re: New activity: Simple Certificate
Group Particularly helpful Moodlers

Well, then ????

Are you using login as 'student' when testing or do you have a true test student account?

Are you using completion criteria ...  ie, student must do A, B, C before they can get Certificate?  Is the activity set for groups?

Blank pages does indicate a problem, obviously ... the only other thing I could suggest is to turn on debugging and then login as a test student.

'spirit of sharing', Ken

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

My bad, there is a BUG in this versions, it fixed in github,  soon i will release a new version with bug correction and some improvements

 

 
Average of ratings: -
Picture of Ken Task
Re: New activity: Simple Certificate
Group Particularly helpful Moodlers

Reporting another issue ... latest version of simplecert installed ... Moodle 2.4.highest - CentOS PHP 5.3.3.

Using latest FireFox.

[Wed Oct 09 18:00:53 2013] [error] [client IPADDRESSofclient] PHP Fatal error:  Call to undefined method core_renderer::tabtree() in /var/www/html/mod/simplecertificate/locallib.php on line 1083, referer: http://site/course/view.php?id=4

After setting up a simplecert, when clicking the link to it, get blank page with only header of the moodle site and the beginning of the rest of the page (blocks/content/etc are gone).  There is a 'box' started with certificate in the content area.  Switching themes made no diff.

Commented out the line referenced above: 1083

//      echo $OUTPUT->tabtree($tabs, $tab);

Now renders and can click links to acquire cert, but there might be some other functionality now broken ... don't know and really don't have the time right now to investigate more.

'spirit of sharing', Ken

 
Average of ratings: -
Picture of Colin Croft
Re: New activity: Simple Certificate
 

Hi Carlos. First off, great plugin. Quick question for you. If I'm logged in as a user called Training Manager. When I navigate to the Issued Certificates tab for a course it lists the users who have certificates just fine. However, if I click on the PDF link, it opens up in a new browser window and instead of the {username} variable saying John Doe like it should it says Training Manager. If I navigate to Bulk Operations tab and download the certificate it has the correct name on it, John Doe.

Did I do something wrong? Maybe I have a configuration setting wrong?

I attached a screenshot and spliced the two screens so you can see that the certificate was awarded to John Doe but comes up as Training Manager.


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Hi Colling,  seems  it's reissuing the certificate to current user (Traning Manager) than only download the generated certificate file.
Looks like a bug,  i will verify that

 

 

 

 
Average of ratings: -
Picture of Colin Croft
Re: New activity: Simple Certificate
 

Ok. I have some more info on how to reproduce the problem.

From memory, I logged in as Training Manager (which has the non-editing teacher role and can manage and view simple certificate) and before I went to 'issued certificates' and clicked on John Doe pdf link, I clicked on 'issue a test certificate' and Get Certificate. I then went to 'Issued certificates' and clicked on John Doe in which case I got Training Manager on the certificate not John Doe. So if you follow that process it will reproduce my problem.

Here is how I got it to work properly. I loaded a fresh moodledata and db and went a different route. This time, instead of Training Manager going to 'Issue a test certificate' I went directly to 'Issued certificates' and clicked on the link to John Doe pdf link. Everything displays as it should. It works! However, once the Training Manager clicks 'issue a test certificate' and 'Get Certificate' it looks to reissue the certificate using the Training Manager {USERNAME} not John Doe and the problem exists again. Once that happens John Doe never displays again correctly from the link inside 'issued certificates'.

Anyways, I can't find a way to disable the 'issue a test certificate' tab so I await your next reply. It would be a great addition to have a permission available for 'issue a test certificate' to turn it off because I know users with this role are going to click the 'Get Certificate' link and will not be able to get their students certificates.

Thanks Carlos!

-Colin

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I was going to  asks how you get the bug, because i can't reproduce it, :D, but you has put the steps right now.

It's looks like some cache/temp file problems,

I follow your steps with an admin account and it's working properly, i don't test with non-editing teacher.

and what your moodle version ?

 

 

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I tested with non editing teacher and works fine too

It's look like some tempfile problem, i will try to review my code to put more random strings in test certificate filename, it could avoid this problem

 

 
Average of ratings: -
Picture of Colin Croft
Re: New activity: Simple Certificate
 

I'm running 2013092800 with Moodle 2.5.2+ (Build: 20130913)

Is there a safe way to just comment out 'issue a test certificate' so the user with these permissions can't click 'Get Certificate' ?

Or maybe a file I can clean up in moodledata?

 
Average of ratings: -
Picture of Colin Croft
Re: New activity: Simple Certificate
 

I started with a fresh db and moodledata again and flushed the cache before doing any certificate generation. John Doe is coming up like it should even if I 'issue a test certificate' first using Training Manager. I'm still interested in turning on/off 'issue a test certificate' though in the permissions. I guess a feature request at this point. Thanks for checking on this though. Thanks Carlos.

 
Average of ratings: -
Picture of Steve Witehira
Re: New activity: Simple Certificate
 

Hi there,  

I am having a problem with the certificate issue. When a user finishes the course the certificate link becomes available.  But when the certificate is clicked I get the message: "The certificate can't be issued, because the user hasn't reached the course objectives" The objectives is 100 score completion and student even shows as passed. It is the same settings used with the previous version that works.  I have just updated to the latest Simple Certificate version, then when i got the error, tried to uninstall the module and re install it. Are there any ideas as to what might be causing the issue? I am running the latest version of 2.5.2+.

Cheers

Steve

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

this plugin checks Completion params and access restriction params, i think there is some completion configuration in your certificate activity (in Activity completion section)

 
Average of ratings: -
Picture of Kate Rhodes
Re: New activity: Simple Certificate
 

Hi there, I'm having the same trouble as Steve. I get the message "The certificate can't be issued, because the user hasn't reached the course objectives"... and I don't know how to fix it.

The certificate shows as being completed by the Activity completion, but it doesn't actually issue any certificates.

Help Please!!

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Moodle has  conditional activities and activity completion ,  and this certificate has Required minutes in course too

1-Verify if there is no "conditional rules" to access he certificate;

2-Verify Activity completion section;

3-Verify Required minutes in course

 

 

 
Average of ratings: -
Picture of Javier Angeles
Re: New activity: Simple Certificate
 

Hi Kate...! did you solve this issue ?? I'm getting exactly the sama as you are.  Please give me some feedback. Thanks!!!!

 
Average of ratings: -
Picture of John Anderson
Re: New activity: Simple Certificate
 

Hi, I am seeing this issue too. I use 'activity completion' and 'completion tracking' all the time. But seems the S.C. might have a bug.

My certificate is set to "Student must view this activity to complete it", They click the SC link, viewing the SC activity, and there by complete it (it shows up completed in the course completion report block)

- but the page tells them:

The certificate can't be issued, because the user hasn't reached the course objectives.

Seems like the activity completion is being tested on issuing the certificate rather that viewing the view.php page, that lets the learner trigger the certificate ? I'm making a somewhat tested guess.

After I remove the activity completion setting "Student must view this activity to complete it",
learners can get to it just fine, let's then click "Get Certificate"

 

I'll try to compare code to the other certificate mod...

 

 

 

 

 

 

 

 

 

 

 
Average of ratings: -
Picture of Aaron Bookvich
Re: New activity: Simple Certificate
 

For some reason the {TEACHERS} variable does not show up any values on the certificate but the other variables are working fine? Any help is appreciated. I am running Moodle 2.5. Thanks!

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

It's works fine here, which moodle version ?

how many teachers ?

it's a non-editing teachers ?

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

New simplecertificate version v.2.1.2

Fixed BUGS:

  1. #39 No certificate are displayed in moodle 2.2 bug
  2. #42 Fatal error: Call to undefined method core_renderer::tabtree() in /home/elo.ja.nl/www/mod/simplecertificate/locallib.php on line 1083 on moodle 2.4 bug
  3. #43 Error when upgrading - Moodle 2.4 branch bug
  4. #46 Bulk operations : Doesn't write the grade on pdf bug
  5. #47 Front text is printed in front and in back page, back text is ignored bug

Enhancements:

  1. #41 improve {TEACHERS}
  2. #44 Add "send to e-mail" in bulk operation
  3. #48 Create a test case checklist
  4. #49 put a white background in QR code
 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

 

Plugin version for moodle 2.6 is release !

 

 
Average of ratings:Useful (2)
Picture of Hugh Edwards
Re: New activity: Simple Certificate
 

Hi Carlos. 

Thanks for the plugin, it's exactly what I'm looking for. However, I have a problem with it: i have the issue options selected as Email User the PDF. I do get the email, but no attachement, even though it's coming up on-screen fine. 

Any ideas on howto fix this? Thanks!

Hugh. 

 
Average of ratings: -
Picture of Hugh Edwards
Re: New activity: Simple Certificate
 

Hi Carlos - I meant to say, I'm on Moodle 2.6 with the new version, but it happened in 2.5.1 for me as well exactly the same.....

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

If you have the last plugin version (2.1.2) you could try to send using bulk operations, please test it.
Some e-mail servers has a policy to not accept mail attachments, could be that too,  try other email.

In my test i used my gmail and hotmail accounts without any problem.

 

 

 

 

 
Average of ratings: -
Picture of Hugh Edwards
Re: New activity: Simple Certificate
 

Hi Carlos, 

Version is 2013111900. And as for Bulk Operations, do you mean sending a message to Bulk Users? You can't add file attachments in that. However I can confirm that Moodle is sending me through badges correctly which attach the JPG. I've also spoken to my hosting company and they confirm that there are no restrictions placed on my email sending - it will send email attachements up to 20MB. The PDF's are 1.1MB - and I am getting the email declaring that there is an attachment but there isn't one. 

Any ideas? smile

Hugh.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

---And as for Bulk Operations, do you mean sending a message to Bulk Users?

No, if you access simplecertificate activity as admin, or as editing teacher, you will see an option called "Bulk Operations" (see attachment) , which you can mail the certificate to all users (or selected ones) in the course.

---I've also spoken to my hosting company and they confirm....

This problem is not in your service provide, it's not in sending, it's on service provide of the users which is receiving the e-mail, but you can test that using a another email, as i saying,  my test was made using gmail.com and hotmail.com recipients.


 
Average of ratings: -
Picture of Hugh Edwards
Re: New activity: Simple Certificate
 

Hi Carlos.

Thanks for the reply. I think the problem though is at this end rather than the users. I tested the bulk operations you suggested and again I received the email in exchange, and hotmail with no attachment. 

I turned verbose debugging on though and I have errors. Here are the issues in the log I can see which might be causing the problem - What do you think? ....I've commented at the end of the debug message btw.....

Debug:

Could not access file: E:\web\gravyforthe\htdocs\moodle\App_Data/E:\web\gravyforthe\htdocs\moodle\App_Data\temp\mod_simplecertificate\Tes8A1F.tmp

SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "220 sm10.internetmailserver.net

"SMTP -> get_lines(): $data is "220 sm10.internetmailserver.net

"SMTP -> FROM SERVER:220 sm10.internetmailserver.net

CLIENT -> SMTP: EHLO www.gravyforthebrain.com

-----blah blah blah------

"SMTP -> get_lines(): $data is "250 OK

"SMTP -> FROM SERVER:250 OK

CLIENT -> SMTP: QUIT

SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "221 Service closing transmission channel

"SMTP -> get_lines(): $data is "221 Service closing transmission channel

"SMTP -> FROM SERVER:221 Service closing transmission channel

TCPDF ERROR: Some data has already been output, can't send PDF file

-----

My guess is that this is a bug as it is trying to find:  

E:\web\gravyforthe\htdocs\moodle\App_Data/E:\web\gravyforthe\htdocs\moodle\App_Data\temp\mod_simplecertificate\Tes8A1F.tmp

....when it should be trying to find:

E:\web\gravyforthe\htdocs\moodle\App_Data\temp\mod_simplecertificate\Tes8A1F.tmp

I'd be grateful for your help on trying to fix this... smile

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Could not access file: E:\web\gravyforthe\htdocs\moodle\App_Data/E:\web\gravyforthe\htdocs\moodle\App_Data\temp\mod_simplecertificate\Tes8A1F.tmp

It's a bug for windows environment only.

It's cause by  "folder separation string". I'm using linux , and this string is  '/' and in windows is '\', i will fix that

 

thanks for report!

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Apply this patch ,  and try again, i think it's fix the problem

 

to apply the patch (must have git installed):

1-Download patch file;

2-copy to you moodle  mod/simplecertificate folder

3-use the command:  git am -3 0102-fixed-57.patch

4- remove 0102-fixed-57.patch

 

 

 
Picture of Hugh Edwards
Re: New activity: Simple Certificate
 

Hi Carlos. 

Thank you for your time and effort. Unfortunately I'm on a hosted server and I recieved this from my support guys:

"GIT is a sofisticated version control software. We are not running GIT in our production shared environment, therefore, it is not possible to update/patch your moodle application running on our server with git. You can do so only in your local / development environment. "

Is there anyway you could send me the files I need so I can upload them? I have access to the back end db a well if necessary..

Thank you so much! smile 

Hugh.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Humm, send the file will be not possible, because has others modifications, i still developing it :D

but i will send am walkthrough (it's simple) to you:

in file mod/simplecertificate/locallib.php

inside function send_certificade_email($issuecert)

in lines (698 and 699):

$relativefilepath = str_replace($CFG->dataroot . '/', "", $fullfilepath);
            
            if (strpos($relativefilepath, '/', 1) === 0)

change to:

$relativefilepath = str_replace($CFG->dataroot . DIRECTORY_SEPARATOR, "", $fullfilepath);
            
            if (strpos($relativefilepath, DIRECTORY_SEPARATOR, 1) === 0)

make a backup of the file before changes

 
Average of ratings: -
Mark
Re: New activity: Simple Certificate
 

Hi Carlos,

I notice that your certificate can be emailed to the student.

Would it be possible to re-notify the student via email that based on the certificate date that the course needed to be done again?  For example an annual Fire Safety compliance course. It would be good to be able to set the number of days between certificate issue and the reminder.

I hope this is possible smile

Cheers

Mark

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I think this could be done with course completion settings , but i don't know if has an automatic way to do that.
I know a site which do this sort of thing :

http://alfred.cc/

It's a system that interacts with moodle, and sends, automatically, all kind of alerts to users, like:
- Users that not participate for more than X days;
- An activity near to expire and user must participate (sends only to user that not has completed the activity);
- New items in course;

 

 

 

 
Average of ratings: -
Picture of Hugh Edwards
Re: New activity: Simple Certificate
 

Hi Carlos, 

I've popped this into a different thread - I hope this is ok. Is there a way to edit the text/subject in the email that is sent to users? An XML file of something similar or is it hard-coded?

Thanks!

Hugh.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Yes, there is,  in  moodle translate tool you can do that

'emailstudentsubject' and 'emailstudenttext'

 
Average of ratings: -
Picture of Ronnie Goodpaster
Re: New activity: Simple Certificate
 

I installed the module in 2.6.  I can add Simple Certificate as an activity to a test course in weekly format.  However, when I login as a student, I can see all activities except for the certificate activity.  I have no restricted access or completion requirements set.  Am I missing something?  If I login with the admin account, the certificate activity displays appropriately.

 
Average of ratings: -
Picture of Emma Richardson
Re: New activity: Simple Certificate
Group Particularly helpful Moodlers

Check your student permissions.

 
Average of ratings:Useful (1)
Picture of Ronnie Goodpaster
Re: New activity: Simple Certificate
 

Thanks!  I spent an entire day on this.  Such a simple fix.  smile

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Thanks for help, Emma

 
Average of ratings: -
Picture of Yurov Ardyy
Re: New activity: Simple Certificate
 

Hi, 

I just installed simple certificate the latest version just now, on a moodle 2.6 install on linux. 

I was wanting to know how do i get the certificate to appear when the student has completed the work. but not before.. is this possible. 

 

Many thanks for your help. 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I think it's possible using moodle completion framework

See

http://docs.moodle.org/26/en/Category:Completion

 

 
Average of ratings: -
Picture of Hugh Edwards
Re: New activity: Simple Certificate
 

Hi Carlos, 

All is working brilliantly with this plugin - thanks for creating it. I've tried to change the text in the Lang>En>simplecertificate.php file for one of my on-screen messages - however this isn't reflected on-screen. Any ideas what I might be doing wrong? Is this caching somewhere etc?!

Thanks. 

Hugh.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Could be lang cache made by moodle,  it's good thing for production sites, but for developing ... ,  try to disabling it, o purge all caches. If doesn't work send me the page and the text you are trying to change, i can forgot to put it in lang "format".

 

 
Average of ratings: -
Picture of Sarah Smith
Re: New activity: Simple Certificate
 

Is there a way to have a fraction of an hour or a decimal in the Hours in course field?  Whenever I put something like .5 or 0.5 the hours field is blank on the certificate.  If I put in 1/2, it shows as 1 hour on the certificate.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Today, it's not possible to put a fraction , decimal hours

This option it's only to put how many hours this course is design for,
it's an 40 hours course, is 300 hours course ... and so on.

In my country this is a important information, for example MBA courses must have at least 240 hours. It's optional field (can leave it blank) and if you don't put {HOURS} in your certificate text, it don't display nothing.

In future versions this variable will not exists anymore, because you can simple substitute it by a text in your certificate, like  "Course duration (workload): 30 minutes"

 

 

 
Average of ratings: -
Picture of Sarah Smith
Re: New activity: Simple Certificate
 

Ok, thanks for the information.  We are using Moodle to track Continuing Education hours and some courses are only 30 minutes long.  I'll pass this along to my instructors.

 
Average of ratings: -
Picture of Gary Lyon
Re: New activity: Simple Certificate
 

Moodle v.2.5.1 + Oracle 11.2.0.1.0

Simple Certificate version 2013111200

------------------------------------------------

I have a course with four tests, and a certificate associated with each test. As configured, the certificates are only available when the related test is passed with a grade of 70% or higher. Each certificate is also configured to email the certificate to the student and notify the course administrator when the certificate is completed. I am experiencing a problem with messages being sent to the course administrator for two certificates when the link on the course main page is selected, and no message is being sent to the course administrator for one certificate when the 'get certificate' button is selected. The following are the exact symptoms for each situation

 

When I select the certificate link on the course home page

When I select ‘Get Certificate’

Category I Certificate

No message is sent to the course administrator.

 

(This is what I expect should  happen.)

Certificate is sent to the ‘student’ but no  message is sent to the course administrator.

(Why isn’t a message sent to the course administrator?)

Category II Certificate

Message is sent to the course administrator:

 

SYSTEM ADMINISTRATOR has received their certificate: 'Certificate of Completion-Category II'

for P.O.S.T. State Certification Exams.

 

You can review it here:

  

https://nvelearn.nv.gov/moodle/mod/simplecertificate/view.php?id=10041&amp;tab=1

 

(Why is a message sent when the link to the certificate page is selected?)

Certificate is sent to the ‘student’ and the course administrator receives the following message:

 

SYSTEM ADMINISTRATOR has received their certificate: 'Certificate of Completion-Category II'

for P.O.S.T. State Certification Exams.

 

You can review it here:

  

https://nvelearn.nv.gov/moodle/mod/simplecertificate/view.php?id=10041&amp;tab=1

 

(This is what I expect would  happen.)

Reserve Certificate

Message is sent to the course administrator:

 

SYSTEM ADMINISTRATOR has received their certificate: 'Certificate of Completion-Reserve'

for P.O.S.T. State Certification Exams.

 

You can review it here:

 

https://nvelearn.nv.gov/moodle/mod/simplecertificate/view.php?id=10043&amp;tab=1

 

(Why is a message sent when the link to the certificate page is selected?)

Certificate is sent to the ‘student’ and the course administrator receives the following message:

 

SYSTEM ADMINISTRATOR has received their certificate: 'Certificate of Completion-Reserve'

for P.O.S.T. State Certification Exams.

    

You can review it here:

  

https://nvelearn.nv.gov/moodle/mod/simplecertificate/view.php?id=10043&amp;tab=1

 

(This is what I expect would  happen.)

 

Here is how the course main page is set up...

 

Here is how each Certificate is configured with the exception of the 'Certificate Text' field which is different for each test that is associated with each Certificate.

 

Thank you for any assistance.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

The notification messages should be sent  only when the user clicks in "get certificate", and only one time, even if user clicks many times in get certificate ...

The certificate sent to user's mail, should be sent every time the users clicks in "get certificate"

Anything different it's wrong and can be a bug,  i will test it, buti don't know when i will do it, if anyone can test it trying to reproduce this bug, will help me a lot.


 

 

 
Average of ratings: -
Picture of John Anderson
Re: New activity: Simple Certificate
 

Thank you for this great certificate module! I got it working just fine. One question:

 

If I set certlifetime = 0 will my certificates stay ? I want to keep our certificates

(Keep issued certificates for: (in Months) simplecertificate | certlifetime)

 

Thanks again 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Yes, if you put 0 or less deactivate certificate clean up during cron process

 

 
Average of ratings: -
Picture of Michael Milette
Re: New activity: Simple Certificate
Group DevelopersGroup Particularly helpful Moodlers

Hi Carlos! As requested, here are my suggestions...

If you don't mind, I have a few suggestions for a future release of this wonderful plugin. Would it be possible to:

1) Update the description page so that it indicates that your plugin is compatible with Moodle 2.6? The Download versions page indicates that it is compatible with Moodle 2.6 but the Description page says it is only compatible up to Moodle 2.5. Can you ?

2) Have Moodle filter support? We run a bilingual (English/French) site where users would want their certificates to be created the in the current site language. The functions format_string() and format_text() would need to be applied. For more information, see http://docs.moodle.org/dev/Output_functions.

3) Have a dropdown menu containing a list of certificate templates so that they would not have to be re-created each time someone creates a course? That way one could load a certificate and then just make minor changes as needed.


4) Expand the fonts? No matter what I do, the font always seems to be narrow. I was also going to ask if it would also be possible to add more sizes so that I could make fonts larger but then realized that I could probably do that in HTML. Still, it would be nice to have sizes available up to 72 pt.

5) Make the QR code in the Test Certificate verifiable? Either that or include a message somewhere that says it can't be verified. I spent some time testing the QR code with my phone only to eventually realize that it wasn't the Captcha I was typing that wasn't working.

6) Give the code below the QR Code image a solid background colour in case it is printed over an image?

That's it for now. Thanks again for all your great work!

Best regards,

Michael Milette

 
Average of ratings:Useful (1)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Thanks to post here:

Here we go:

  1.     Descriptions are old,  but installation instructions not changed, it's the same.
  2. I don't read this moodle doc yet, but i don't know how moodle framework can translate the certificate text, an images, to English, French , and so on i don't know if it is possible, it's better to do is create 2 certificate activities one with French other in English
  3. Template could be a good idea, user can configure and save as template, for now you can create a backup only with certificate activity, and you will have a "template" file
  4. I think it's possible, the problem is TCPF lib in moodle don't have  too many fonts,  you can install it in your moodle and use this http://docs.moodle.org/24/en/Simple_certificate_module#Languages_with_special_character
    for size you can use html font size
  5. Administrator certificates are not saved, so can't be verified. The only way is using QR URL, see if code variable in URL is the same written below QR code image
  6. HUmm, i will fix that,  putting as bug in the issue track, next version will be fixed

 

 

 
Average of ratings: -
Picture of Michael Milette
Re: New activity: Simple Certificate
Group DevelopersGroup Particularly helpful Moodlers

Thanks for the quick response Carlos.

2. You can create certificates that will work in any language by not having any text in the image and using Moodle's Multi-language content filter, included with Moodle, or the Multi-lingual Content filter which I find easier to use. Moodle supports many other filters to help transform information besides those used for multiple languages.

Our site makes extensive use of these to make strings appear in the users language. For example, using the Multi-lingual Content filter, the following would be inserted into a certificate to make the title appear in the correct language:

{mlang en}Certificate of Achievement{mlang}{mlang pt}Certificado de acordo{mlang}

(I don't speak Portuguese... hope I translated that correctly. I actually use English and French)

When the above string is processed through the format_string() or format_text() functions, it would filter out text tagged in languages other than the current language. This enables you to create a single certificate that works in any number of languages.

I noticed you are already using format_string() function in many places throughout the source code. I took a look at your code and noticed that there were just a few spots where a few more instances of the function in the locallib.php file is required.

For your convenience, I've submitted a pull request containing a few fixes:

https://github.com/bozoh/moodle-mod_simplecertificate/pull/68

Hope it helps. Feel free to ask if you have any questions regarding any of the changes.

Best regards,

Michael Milette

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Ok, will do that, it's a good thing to plugin,  but for images it's not possible, could be, but very very difficult task

For now i don't have munch time to plugin (that's a shame), but i will in future.

 

Thanks for the suggestion, if you have more, fill free to post here

 

PS:  In Portuguese is: Certificado de Conclusão  :D

 

 

 

 

 
Average of ratings: -
Picture of Gisele Brugger
Re: New activity: Simple Certificate
 

Olá Carlos, 

Parabéns pelo excelente módulo desenvolvido. A facilidade de edição realmente ficou muito simples.

Estava fazendo uns testes e me deparei com uma dúvida( que também tem no módulo certificate original)

Se uso os métodos de autenticação: correio eletrônico e redes sociais em meu curso, por padrão os campos Firstname e Lastname são destravados e consequentemente o usuário consegue editar a qualquer momento o seu nome e sobrenome.

Finalizei um curso e fui fazer um teste: o usuário poderá emitir quantos certificados ele quiser para várias pessoas apenas alterando o nome e sobrenome.

Vi que o QRcode será sempre o mesmo, assim como o código gerado no módulo certificate também, mas o nome sempre será o registrado na base de dados.

Se eu bloquear o campo nome e sobrenome os próximos a fazerem inscrição no moodle não conseguem se cadastrar.

Por enquanto não vi outra solução a não ser contar com o bom senso do aluno.

O que acha? já passou por algo similar?

 

até breve

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Olá Gisele,

Fico muito feliz em ver brasileiros participando e mostrando mais interesse.

Esse plugin, a partir da versão 2.1.2 (eu acho) ou a partir da próxima versão (2.2.1) a troca de nome do usuário não vai interferir em nada pois depois que o arquivo do certificado é gerado o plugin não o gera mais, ele verifica se o arquivo já existe, e se existir envia para o aluno.

A única forma dele regerar o certificado é se algum tutor fizer um update na atividade certificado. Isso evita qualquer tentativa de gerar certificados com outro nome por exemplo

----

Só mais uma coisa Gisele,  esse fórum é em inglês, criei um fórum especialmente para postagem em português, pode continuar usar esse aqui, mas tem que traduzir para inglês ok 

https://moodle.org/mod/forum/discuss.php?d=230459

 

 
Average of ratings: -
Picture of Mayang Farala
Re: New activity: Simple Certificate
 

Hi smile Is there any possibility to have a variable for the user picture so that it can be used to display/print in the certificate also?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I think about this issue for a long time, how to solve it, i think i get it, i will try something for 2.2.1 version of this plugin. so stay tuned :D

 

 
Average of ratings: -
Picture of Mayang Farala
Re: New activity: Simple Certificate
 

Ok thanks big grin looking forward to that version .. 

 
Average of ratings: -
Picture of Rodrigo Calado
Re: New activity: Simple Certificate
 

Olá Carlos

Criei alguns campos personalizados para meus alunos (como RG e CPF), e gostaria de exibir estes campos no certificado. Tentei usar no certificado algo como {nome_do_campo} mas não funcionou.

Há alguma forma de utilizar meus campos personalizados no certificado?

Obrigado!

 

 

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

See the post:

https://moodle.org/mod/forum/discuss.php?d=222296#p1031427

And please, this is english forum,  for Portuguese posts use this forum:

https://moodle.org/mod/forum/discuss.php?d=230459

 
Average of ratings: -
Picture of Rodrigo Calado
Re: New activity: Simple Certificate
 

Carlos

I'm sorry about that.

That is exactly what i needed

thank you!

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

New Version release:

v2.1.3 - 2014030100

Changes and fixes:


#66 Put white background color in code text (below QRcode picture)
#62 paging in Bulk operations doesn't work correctly
#60 Clear not set variables
#57 folder separation string
#55 Manager certificate is not removed
#54 certdatefmt left with old values after upgrade
#53 Fix some tables parameters
#65 Verify completation

 
Average of ratings: -
Picture of Marius Jugariu
Re: New activity: Simple Certificate
 

Hi Carlos. I installed it on my 2.6.1 Moodle and after the screen where it says "installation successful" and coming to add new settings I get the following error:

It is not allowed to set the property cm_info::$courseid

  • line 1249 of /lib/modinfolib.php: call to debugging()
  • line 591 of /mod/simplecertificate/lib.php: call to cm_info->__set()
  • line 617 of /mod/simplecertificate/lib.php: call to simplecertificate_get_mods()
  • line 30 of /mod/simplecertificate/settings.php: call to simplecertificate_get_date_options()
  • line 89 of /lib/classes/plugininfo/mod.php: call to include()
  • line 35 of /admin/settings/plugins.php: call to core\plugininfo\mod->load_settings()
  • line 6389 of /lib/adminlib.php: call to require()
  • line 22 of /admin/upgradesettings.php: call to admin_get_root()

Had to uninstall it.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

which plugin version, last one ?

2.1.3 ?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

i get this error now,  but  certificate was created and issued, i will fix it

 
Average of ratings: -
Picture of Marius Jugariu
Re: New activity: Simple Certificate
 

Works ok now after installing the updated version. Many thanks!

Marius

 
Average of ratings: -
Picture of Instituto IFIC
Re: New activity: Simple Certificate
 

Hello Carlos,

Thank you so much for this wonderful plugin, it has really made my life so much easier!

I would like to focus on the certificate verification part, it works like a charm as it is but I would like to extend its functionality: to send an email notification to the student every time someone verifies his/her certificate. Could you direct me to the right direction in order to implement this? I'm still a newbie in moodle development but if you direct me more or less I can figure it out.


Thank you in advance,

Thalia

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Best place to start is just after add_to_log function call in verify.php



 
Average of ratings: -
Picture of Christian Molter
PHP catchable fatal error
 

Hi Carlos,

first of all, thanks for simple certificate. It surely takes a lot of time and passion to keep it up & running.

I am thinking about switching from ILIAS to Moodle, got a fresh installation of moodle with certificate and simple certificate for testings.

The plugin certificate works fine, including the creating of certificates. But it is from my point of view way hard to customize, especially if you offer more than one course. The plugin simple certificate unfortunately creates here an error if I want to get a certificate created: PHP catchable fatal error. That was surprising for me, too. So I turned on the debug and maybe this can help to sort it out:

---boc---

Notice: Undefined property: stdClass::$numsections in /var/www/.../moodle/mod/simplecertificate/lib.php on line 567

Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result

    line 451 of /lib/pagelib.php: call to debugging()
    line 734 of /lib/pagelib.php: call to moodle_page->magic_get_context()
    line 1394 of /lib/weblib.php: call to moodle_page->__get()
    line 1259 of /lib/grade/grade_item.php: call to format_string()
    line 575 of /lib/conditionlib.php: call to grade_item->get_name()
    line 525 of /lib/conditionlib.php: call to condition_info_base::get_grade_name()
    line 131 of /lib/conditionlib.php: call to condition_info_base::fill_availability_conditions_inner()
    line 1065 of /course/lib.php: call to condition_info::fill_availability_conditions()
    line 617 of /lib/modinfolib.php: call to get_array_of_activities()
    line 450 of /lib/modinfolib.php: call to course_modinfo::build_course_cache()
    line 411 of /lib/modinfolib.php: call to course_modinfo->__construct()
    line 2003 of /lib/modinfolib.php: call to course_modinfo::instance()
    line 2842 of /lib/moodlelib.php: call to get_fast_modinfo()
    line 39 of /mod/simplecertificate/view.php: call to require_login()

---eoc---

I read about some themes creating that error, tried every theme that comes along with moodle. No effect, the "PHP catchable fatal error" is resistant to that.

Any advice or anything I can send to solve this?


Thanks for your patience,

Chris

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: PHP catchable fatal error
 

which moodle and plugin versions, last one ?

2.1.3 ?

 
Average of ratings: -
Picture of Christian Molter
Re: PHP catchable fatal error
 

Those should be the latest versions, I downloaded them just a few days ago. Moodle 2.6.1+ and Simple Certificate 2014030100 (version number copied from Plugins Overview).

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: PHP catchable fatal error
 
Average of ratings:Useful (2)
Picture of Christian Molter
Re: PHP catchable fatal error
 

Thanks a lot Carlos, it works.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: PHP catchable fatal error
 

what a shame, i "tested" the new version without enabling the debug mode clown

the fix are coming very soon

i must test other version too

 
Average of ratings: -
Picture of Digital Blues
Re: New activity: Simple Certificate
 

Hi Carlos!

I have a question... On the display of the certificate To "GET CERTIFICATE" is it possible to remove the summary of marks from this page? My client doesn't like how it shows up before the get certificate button and would like it removed. But there is no option to "hide" it and i was unsure where to start to remove it displaying from the code.

If you need more information please let me know.
Thank you for your help in advance.

Nicole.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Possibles of course it is, but not without a change,  because ther is no options for that. 

This code is in view.php,  you can change it, or try to hide things using CSS ....

 

 
Average of ratings: -
Picture of Drew LaChapelle
Re: New activity: Simple Certificate
 

Hi Carlos,

Thanks for creating this activity.  I was wondering if you could add a modulename_help language string for the component mod_simplecertificate so that a description will appear in the right side of the Activity chooser when Simple Certificate is selected.  Many of the activities have this help string and without one it just says "There is currently no help associated with this resource or activity". 

Maybe something like:

The simple certificate activity module enables the teacher to create a custom certificate that can be issued to participants who have completed the teacher’s specified requirements.

This would help promote this module to our users.

Thank you for your consideration and your work on this module.

Drew

 
Average of ratings:Useful (1)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Ok, i can do that, in the next version

 

you can follow the progress at:

https://github.com/bozoh/moodle-mod_simplecertificate/issues?milestone=6&state=open

 
Average of ratings: -
Picture of Drew LaChapelle
Re: New activity: Simple Certificate
 

Thanks Carlos!

 
Average of ratings: -
Picture of Antonio de Simone
Re: New activity: Simple Certificate
 

Hello Carlos,

really thanks for this great moodle module!
I have an answer:

using {FIRSTNAME} tag you can display the student name,
using {LASTNAME} tag you can display the surname,
using {USERNAME} tag you can display both of them

but is possible display the username, that used to log in?

Thank you in advanced,

Antonio

 

P.S. Today I started to translate the module in my language, the italian.

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Sure there is, but not with {USERNAME}  text mark

I will create a new one,  i think something like {LOGIN}, but only in new versions.

and thanks for translation

 

 

 
Average of ratings:Useful (1)
Picture of Antonio de Simone
Re: New activity: Simple Certificate
 

Great!

Can you tell me approximately when the new version will be available? big grin

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Very hard to say, since i only work on this when i have some free time

but you can see the progress here:

https://github.com/bozoh/moodle-mod_simplecertificate/issues?milestone=6&state=open

 

 
Average of ratings:Useful (1)
Picture of Antonio de Simone
Re: New activity: Simple Certificate
 

OK, thanks again for your work!

It's possibile to do a little change in this module files about the definition of the "username" variable?

I can obtain fullname using fistname and lastname and i could use username variable to display $user->username... (the change would concern a single file)

I can't find something about your module's license, let me know if it's possible to do this little change waiting for your new version (that will surely be great!)

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I can not do this due to the legacy support.
Many people use this certificate with this text mark to display the full name, so change it to display login username will make all certificates becomes wrong.

It could change it in update script, but would not be something easy to do, and there is any benefits on this.
The text marks are well documented, so create a new one it's not a problem at all.

The module license is in the source code
GNU GPL v3

 

 

 

 

 

 
Average of ratings: -
Sketch...
Re: New activity: Simple Certificate
Group Particularly helpful Moodlers

Carlos,

Line 1237 in the \mod\simplecertificate\locallib.php page of your Simple Certificate activity contains:

    $limitsql = " LIMIT $perpage" . " OFFSET " . $page * $perpage ;

which adds a "LIMIT ... OFFSET ..." parameter to the $issedusers SQL:

    $issedusers = $DB->get_records_sql("SELECT u.*, ci.code, ci.timecreated
    FROM {user} u
    INNER JOIN {simplecertificate_issues} ci
    ON u.id = ci.userid
    WHERE u.deleted = 0
    AND ci.certificateid = :certificateid
    AND timedeleted IS NULL
    ORDER BY {$sort} {$limitsql}", array('certificateid' => $this->id));

SQL Server does not support "LIMIT" and "OFFSET" so that "LIMIT ... OFFSET ..." parameter effectively breaks the plugin on MS SQL Server:

Default exception handler: Error reading from database Debug: SQLState: 42000<br>
Error Code: 102<br>
Message: [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'LIMIT'.<br>

SELECT u.*, ci.code, ci.timecreated
				FROM mdl_user u
				INNER JOIN mdl_simplecertificate_issues ci
				ON u.id = ci.userid
				WHERE u.deleted = 0
				AND ci.certificateid = '1'
				AND timedeleted IS NULL
				ORDER BY   CAST(firstname AS NVARCHAR(255))  +  CAST(' ' AS NVARCHAR(255))  +  CAST(lastname AS NVARCHAR(255))    LIMIT 30 OFFSET 0
[array (
  0 => '1',
)]
Error code: dmlreadexception
* line 423 of \lib\dml\moodle_database.php: dml_read_exception thrown
* line 260 of \lib\dml\sqlsrv_native_moodle_database.php: call to moodle_database->query_end()
* line 367 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->query_end()
* line 788 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->do_query()
* line 836 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->get_recordset_sql()
* line 1248 of \mod\simplecertificate\locallib.php: call to sqlsrv_native_moodle_database->get_records_sql()
* line 1338 of \mod\simplecertificate\locallib.php: call to simplecertificate->get_issued_certificate_users()
* line 83 of \mod\simplecertificate\view.php: call to simplecertificate->view_issued_certificates()

Is there a way to build that $issedusers SQL without using LIMIT ... OFFSET... so that your plugin works on SQL Server hsoted Moodle sites?

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: New activity: Simple Certificate
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

Read the PHPdoc for get_records_sql

https://github.com/moodle/moodle/blob/master/lib/dml/moodle_database.php#L1308

This is what the $limitfrom and $limitnum arguments are for.

 
Average of ratings:Useful (2)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Thanks, that will save a lot of time

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

This is an old code, and i has sure there is a way to do this without limit/offset,  i just need to study how to do this,  i think i can "steal" the code from others mods, or from grade framework.

 

 

 
Average of ratings: -
Picture of Mayang Farala
Re: New activity: Simple Certificate
 

Hi there smile can I modify the QR code based on our own format? Also where can I see the code for that ? Thanks 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

yes you can change it,  but i use a lib to generate QR code, so there is no code (implemented by me) to generate it, only function calls

As you can see in:

https://github.com/bozoh/moodle-mod_simplecertificate/blob/MOODLE_26/locallib.php#L621

 
Average of ratings: -
SpBit
Re: New activity: Simple Certificate
 

Hi!!


And congratulations for your work. 


I would like to use the "digital signature certification" option of TCPDF library (see an example of use in http://www.tcpdf.org/examples/example_052.phps).


Is it possible?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Possible i think it is, but this plugin don't do that, so you must change the code to do this


I can add as a feature request, but will not be available soon

 
Average of ratings: -
Picture of luciano biondo
Re: New activity: Simple Certificate
 
When I save my text, debugger says:

Warning: mysqli::real_escape_string() expects parameter 1 to be string, array given in /Library/Server/Web/Data/Sites/www.unipocle.it/lib/dml/mysqli_native_moodle_database.php on line 859 Warning: mysqli::real_escape_string() expects parameter 1 to be string, array given in /Library/Server/Web/Data/Sites/www.unipocle.it/lib/dml/mysqli_native_moodle_database.php on line 859

Really the certificate results blank. Can somebody explain me what I can do?

Moodle 2.6.2 simplecertificate 2.1.3 theme elegance

Thanks
 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
I don't know about this errors,  i don't use mysql,  and there is no reference in debug info to the plugin files or functions,  but seems like a encoding problem

Some users has reported problems with some themes,  you can test this switching to default theme and trying again
 
Average of ratings: -
Picture of Gustavo Ramos
Re: New activity: Simple Certificate
 

Hi Carlos

i Try to use SimpleCertificate in Moodle 2.7. Installation its ok,  but when i try to add a new custom certificate after complete all fields i have this error and debug info

Debug info:
Error code: codingerror
Stack trace:
  • line 111 of \lib\classes\event\calendar_event_created.php: coding_exception thrown
  • line 252 of \lib\classes\event\base.php: call to core\event\calendar_event_created->validate_data()
  • line 2255 of \calendar\lib.php: call to core\event\base::create()
  • line 2647 of \calendar\lib.php: call to calendar_event->update()
  • line 535 of \mod\simplecertificate\lib.php: call to calendar_event::create()
  • line 97 of \mod\simplecertificate\lib.php: call to simplecertificate_send_event()
  • line 113 of \course\modlib.php: call to simplecertificate_add_instance()
  • line 268 of \course\modedit.php: call to add_moduleinfo()
Output buffer: <br />< b>Warning</b>: mysqli::real_escape_string() expects parameter 1 to be string, array given in <b>C:\xampp\htdocs\capacitacion\lib\dml\mysqli_native_moodle_database.php</b> on line <b>881</b><br />< br />< b>Notice</b>: Undefined property: stdClass::$timestart in <b>C:\xampp\htdocs\capacitacion\calendar\lib.php</b> on line <b>2183</b><br /> 


Any chance to solve or upgrade to be compatible with 2.7 version of Moodle?


Thanks in advance

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
it's not compatiple with moodle 2.7 yet, and i don't know when i will do that, i think in june
but it was in plan

as you can see in :
https://github.com/bozoh/moodle-mod_simplecertificate/issues/82



 
Average of ratings: -
Picture of Gennady Kucheruk
Re: New activity: Simple Certificate
 

Hi Carlos,
Thank you so much for the certificate module, it works great. Could you please let us know how we may send email with the certificate automatically, once student completed the quiz in the course? Do you plan to add such a functionality in the nearest future?

Thank you,
Gennady

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

It can send e-mail to users (in bulk operations), but not automatically.

I don't know if it's possible,  moodle framework must give a support to do that,  something like, when quiz finished it's send a event which my plugin (and others)  could do what needed, in the case, send certificate to user email.


Something like observer design pattern





 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
what shame,  this request it's in my github,  and moodle has a events framework support,  but i don't know when it will be implemented

https://github.com/bozoh/moodle-mod_simplecertificate/issues/85

 
Average of ratings: -
Picture of Gennady Kucheruk
Re: New activity: Simple Certificate
 

Thank you Carlos,

There is Jay Knight's solution, that I'm going to try when I have time:

https://moodle.org/mod/forum/discuss.php?d=190656#p932145

Regards,
Gennady

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

This solution it's  not for simplecertificate plugin, it's for certificate plugin


 
Average of ratings: -
SpBit
Re: New activity: Simple Certificate
 

Hi!!


Two questions about signed simplecertificate PDF file. I've modified the locallib.php file and now the certificates are digitally signed with a *.crt certificate. But:


1. I would like to add one field in the activity form, for telling the app the name of the *.crt file that I want to use for signed the PDF file. How can I add a new field?


2. The "Download certificates in one ZIP file"  and "send by email" options does not produce signed PDF's. The rest of options works fine. How works these options?


Thanks!!


PD: I add my modified locallib file.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I think the better place to put this code is in save_pdf  function.


to add a field in form:

http://docs.moodle.org/dev/Form_API

http://docs.moodle.org/dev/File_API


and remember you must include this file in backup too.


 
Average of ratings: -
SpBit
Re: New activity: Simple Certificate
 

But the "send to email" option does not use the "save_pdf" function ... It doesn't works

 
Average of ratings: -
Picture of Gennady Kucheruk
Re: New activity: Simple Certificate
 

Hi Carlos,

Could you please let us know what would be the easiest way to make "Issued certificates" tab to show certificates ordered by the date with the newest on top?

Thank you,
Gennady

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

it's don't have ordering options yet

 
Average of ratings: -
Picture of Martin Sin
Re: New activity: Simple Certificate: add quiz/student questions/answers
 
Hi,
is it possible to add student's questions/answers to this certificate report? Can you show me right way, or say that, this is too hard to implement, or there is some option to do this..

Best regards and many thanks for your work. wink


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate: add quiz/student questions/answers
 

Possible it is,  but can be very hard,  you can copy the code from quiz/question reports....

i will not implement this in the plugin

 
Average of ratings: -
Picture of Martin Sin
Re: New activity: Simple Certificate: add quiz/student questions/answers
 

Thanks for your information. wink

 
Average of ratings: -
Picture of Mayang Farala
Re: New activity: Simple Certificate
 

Hi Carlos, what do you mean by "Users that met the course objectives" in the Bulk operations; Show dropdown menu? Because everytime I select that option it also lists all the users enrolled in the course/group. Where should I modify the objectives so that it only lists all with the conditions met? Thanks in advance.. 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Means that my english is awful :D,  "Users that met the activity conditions" will be better translation.

If the simplecertificate activity have a condition, or completion, and the users don't met it, will not be in list.
To change that you must enable use conditional activities and completion in your moodle

http://docs.moodle.org/27/en/Conditional_activities

http://docs.moodle.org/27/en/Activity_completion



 
Average of ratings: -
Picture of Antonio de Simone
Re: New activity: Simple Certificate
 
Hello Carlos,

I used your module in 2 courses using moodle 2.6 without problems.
I updated moodle to 2.7 version and everything is working, but if I try to use simplecertificate as new activity or if i try to update the 2 simplecertificate instances now online I obtain this error:

The 'timestart' value must be set in other

Can you help me?

Thanks in advanced!


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

This plugin is not compatible with moodle 2.7 yet

 
Average of ratings: -
Picture of Louie Oestreicher
Re: New activity: Simple Certificate
 

When will this be compatible with Moodle 2.7 Carlos? Will it work if we update to 2.9?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

There is  2.7 and 2.9  version of this plugin, you only need to choose.

https://moodle.org/plugins/pluginversions.php?plugin=mod_simplecertificate


 
Average of ratings: -
Picture of Richard Zenarosa
Re: New activity: Simple Certificate
 


Hi Carlos,

We just installed Simple Certificate for Moodle 2.7 (with Totara). We placed it in a course with a SCORM object. However when we click on Issue a Test Certificate as an admin or view as a learner, we get a gray area where the certificate is supposed to be. I have attached screenshots for reference.

 



 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Turn on debug mode, or see the logs,  without it i can't help

 
Average of ratings: -
Picture of Sam McCullough
Re: New activity: Simple Certificate
 

Hi Carlos,

I work for Richard. I did as you asked an turned on Debugging Mode. The error reported is:

Fatal error: Cannot redeclare class UUID in/home/icbc/public_html/totara/mod/simplecertificate/lib/lib.uuid.php on line 39

I took a look through the code of the plugin, you have used require_once() when calling the UUID class. I'm curious if there could be a conflict with another installed plugin?

We are using Totara 2.7.1 based on Moodle 2.7.7. 

Sam

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

i don't know about torata, but this lib is only use to caculate  an UUID for certificade code,  try to to change to require  not require_once

 
Average of ratings: -
Picture of Louie Oestreicher
Re: New activity: Simple Certificate
 

Thank you for your help Carlos, this has been resolved.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

So share the problem and the result of it, can help other people


 
Average of ratings: -
Picture of Manoj Killedar
Re: New activity: Simple Certificate
 
When you are scheduling to release new updated version of "Simple Certificate" module for "Moodle 2.7" ?

If we install "Simple Certificate" module for "Moodle 2.6" in "Moodle 2.7", it reports coding error.

Thanks in anticipation.


 
Average of ratings:Useful (1)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Invitation to test the new version of the plugin


Hello all,

A new plugin version is available (v2.2.0) only at github for now, because its a RC version (Release Candidate) to test if it's ok.

here the links:

Moodle 2.7:

https://github.com/bozoh/moodle-mod_simplecertificate/tree/MOODLE_27_RC

Moodle 2.6

https://github.com/bozoh/moodle-mod_simplecertificate/tree/MOODLE_26_RC

Moodle 2.5

https://github.com/bozoh/moodle-mod_simplecertificate/tree/MOODLE_25_RC

All this versions has passed in php_unit test and the basic operations are ok .
And i will not support older versions anymore (for moodle 2.4 and below), so, please, download and test it, and if it's allright the new version will be release in july 1st
 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
It could be easier to test  if i post how to install  using git.

First, install git, following  this guide:
http://git-scm.com/book/en/Getting-Started-Installing-Git

After install go to terminal screen and go to your moodle root folder, and execute these commands:

cd mod
git clone https://github.com/bozoh/moodle-mod_simplecertificate.git simplecertificate
cd simplecertificate
git checkout MOODLE_27_RC

Note, in the last command you must put the appropriate branch. In this example it's for moodle 2.7
Now login with admin account and the installation (or update) should starts,  if not, you must go to the page admin/index.php
And  you are ready to test.  
If you find a bug,  you can report here, but if you open a issue in github will be better (and quicker)

https://github.com/bozoh/moodle-mod_simplecertificate/issues

To update any changes/fixs in the code, go to terminal screen go to moodle root folder and type:

cd mod
cd simplecertificate
git pull

Do you not use this in production sites


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Hello all,  this is plugin twitter, please follow it to knows the latest news

@smplcertificade

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Opss

Wrong twitter user, the right on is

@smplcertificate

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
New plugin version has just release

version 2.2.0

Improvements:
#87 Add ordering options in issued certificate page
#81 Being able to remove uploaded images in settings page
#70 Multilang certiticate text , with  multilingual content filter (https://moodle.org/plugins/view.php?plugin=filter_multilangsecond):
#59 Refactoring lib.php and locallib.php , will improve test units
#58 Put time in course in completation rule
#26 & #56 Only re-create a pdf file if certificate changes
#36 Put watermark in dowloaded certificates in verify page, if user don't match
#29 Webservice support
#89 Timestart date fmt

Text Marks:
#73 Enrollment start date text mark
#72 User Role Name in course Text Mark
#69 User image text mark
#61 Remove coursehours text mark
#25 Students Results in course Text Mark

Fixed bugs:
#93 wssendfile does not check haschange flag bug
#76 Fix LIMIT ... OFFSET ... breaks this plugin in MSSQL
#75 Add modulename_help in language files
 
Average of ratings: -
Picture of moe tsao
Re: New activity: Simple Certificate
 

When trying to upgrade on a moodle 2.7 site, the DB update throws error..

Current versoin is 2014031000. ( I know it is not for 2.7, but I tried it anyway.. )


Is there good way to fix this error? Or should I try to purge related table and clean install?


Error as follows:

====================

mod_simplecertificate

DDL sql execution error

More information about this error

Debug info: Unknown column 'haschange' in 'mdl_simplecertificate_issues'
ALTER TABLE mdl_simplecertificate_issues ADD pathnamehash VARCHAR(40) CHARACTER SET utf8 COLLATE utf8_general_ci AFTER haschange
Error code: ddlexecuteerror
Stack trace:
  • line 449 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
  • line 839 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 76 of /lib/ddl/database_manager.php: call to mysqli_native_moodle_database->change_database_structure()
  • line 533 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
  • line 301 of /mod/simplecertificate/db/upgrade.php: call to database_manager->add_field()
  • line 697 of /lib/upgradelib.php: call to xmldb_simplecertificate_upgrade()
  • line 420 of /lib/upgradelib.php: call to upgrade_plugins_modules()
  • line 1615 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 432 of /admin/index.php: call to upgrade_noncore()
 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

This is a old build, not compatible to moodle 2.7, you must uninstall and install the new version, 2014060100, v2.2.0, it's compatible with 2.7


 
Average of ratings: -
Picture of moe tsao
Re: New activity: Simple Certificate
 
Thanks for the suggestion.. it is working now.
 
Average of ratings: -
Picture of luciano biondo
Re: New activity: Simple Certificate
 
I have installed it on moodle 2.7 receiving the following message:

=====
mod_simplecertificate

Si è verificato un errore durante l'esecuzione di DDL sql

Maggiori informazioni su questo errore

Debug info: Unknown column 'haschange' in 'mdl_simplecertificate_issues'
ALTER TABLE mdl_simplecertificate_issues ADD pathnamehash VARCHAR(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci AFTER haschange
Error code: ddlexecuteerror
Stack trace:
line 449 of /lib/dml/moodle_database.php: ddl_change_structure_exception thrown
line 839 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 76 of /lib/ddl/database_manager.php: call to mysqli_native_moodle_database->change_database_structure()
line 533 of /lib/ddl/database_manager.php: call to database_manager->execute_sql_arr()
line 301 of /mod/simplecertificate/db/upgrade.php: call to database_manager->add_field()
line 697 of /lib/upgradelib.php: call to xmldb_simplecertificate_upgrade()
line 420 of /lib/upgradelib.php: call to upgrade_plugins_modules()
line 1615 of /lib/upgradelib.php: call to upgrade_plugins()
line 434 of /admin/index.php: call to upgrade_noncore()

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

are you trying to update the certificate plugin ?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

It's a bug

i attach 3 patch file, download the specific version and apply it


How to apply (only for linux)

go to your moodle root folder and follow:

cd mod/simplecertificate
cp <PATCH FILE> .
patch -p1 <PATCH FILE>
rm <PATH FILE>

For example (moodle 2.7)

Donwload moodle27.pacth and save in my home folder

cd /var/www/moodle
cd mod/simplecertificate
cp ~/moodle27.pacth .
patch -p1 moodle27.pacth
rm moodle27.pacth

You can download and install the fixed version too (2014070500)


Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

moodle 2.5 patch file

 
Average of ratings: -
Mark
Re: New activity: Simple Certificate
 

Hi Carlos,

I am having difficulty getting past the validation when trying to install your new plugin.

I wonder if it is associated with this discussion... 

https://moodle.org/mod/forum/discuss.php?d=264130


 Please see the images below that indicate the wrong version of Moodle and my Moodle info.

Validation failed image

Moodle version info...

Moodle version

I hope you are able to assist.

Cheers

Mark

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Hello mark,

   You are trying to install a moodle 2.7 plugin version into moodle 2.6. 

Please download and install the correct plugin version

Here is the correct link:

https://moodle.org/plugins/download.php/6455/mod_simplecertificate_moodle26_2014070500.zip

 
Average of ratings: -
Mark
Re: New activity: Simple Certificate
 

Thanks Carlos !

I have used your link to manually add the simplecertificate to my Mod folder.

I rechecked ... it would appear that the Moodle org plugins identified my install as 2.6 but took me to the 2.7 plugin.

Thank you for your help.


 
Average of ratings: -
Picture of Ellen Reisinger
Re: New activity: Simple Certificate
 

Hi Carlos,

Can I ask a quick question (hopefullysmile is the {timestart} field populated with the timesart field from mdl_user_enrolments table?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Users enrollment start date,  as in the documentation

https://docs.moodle.org/24/en/Simple_certificate_module

 
Average of ratings: -
Picture of Kevin Rodriguez
Blank Certificate Issue
 

Hello,

I am having an issue with the plugin; the latest version is installed on our 2.5.4+ server.


I have a course in the topics format, with a SCORM course (activity 1) with Activity Completion turned on, and it is completed, but the certificate (activity 2) is that it generates is blank. I can't seem to figure out why.


Even when I didn't have the activity completion turn on, the certificate that was generated was blank.


Also, what are the supported image type for Cert Image File? I can't find any information in the plugin documentation.


Thank you for any help.


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Blank Certificate Issue
 

I don't know why is generate a blank certificate, please try to activate debug mod for more information.

This plugin only has a support of Completion Framework (and conditional activity framework too), it can't  void or grant access to an activity, this is Completion Framework jobs.  Something wrong with completion data, try to reset it



 
Average of ratings: -
Picture of Kevin Rodriguez
Re: Blank Certificate Issue
 
The certificate is the final portion of the course, so nothing will depend on it being 'complete'.


I will go ahead and look at the completion settings for the activity above it.


Also, I ran into two errors while looking around the options, I have attached the screenshots of the errors.




 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Blank Certificate Issue
 

What's your moodle version?, 
and plugin version?

 
Average of ratings: -
Picture of Kevin Rodriguez
Re: Blank Certificate Issue
 

Moodle version is 2.5.4+ (Build: 20140207)

Plug-in version is Build: 2014070500

 
Average of ratings: -
Picture of Instituto IFIC
adding last name
 

Hello,


First of all I want to thank you for this great module! It's easy to use and highly customizable. Nevertheless, I cannot find how to add the student's last name in the certificate generated. Only their first name appears. Is there an option or do I have to edit some file?


I'm using Moodle 2.6.2 and Simple Certificate 2.1.3.


Regards,

Thalia

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: adding last name
 

Hi Thalia, 

A list with all Text marks can be found at  http://docs.moodle.org/24/en/Simple_certificate_module.

To show  lastname ONLY,  the text mark is {LASTNAME} ,  but users must fill this information in users profile fields.
To show Full user name,  (firstname + lastname or lastname + firstname, depending on your moodle configuration)  you can use {USERNAME} text mark.




 
Average of ratings: -
Picture of Instituto IFIC
Re: adding last name
 

Thank you for your quick answer!


Where should I place this text mark?


Regards,

Thalia

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: adding last name
 

Hi Thalia,  i think you don't understand how simple certificate works.

This plug-in has many textmarks that you put in your certificate text (first page or back page),  and the plug-in will replace this textmarks to the right text.
See this sample

https://moodle.org/mod/forum/discuss.php?d=222296#p1023668

The {USERNAME} textmark  will be replaced to full user name, for example

 
Average of ratings:Useful (1)
Picture of Instituto IFIC
Re: adding last name
 
Thanks a lot, now I understand how to do it!


I have a couple more doubts you might be able to help me with.

1) I have added the certificate activity in a course and I want to copy it to another. To achieve this I export the activity and import it to the other course but then, the {COURSENAME} textmark still gives me the name of the first course. The name of the file also keeps the name of the first course. Is there a way to change this?

2) Can I make the QR code smaller?


Thank you again.

Thalia

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: adding last name
 

1) There is a field in activity setting called Alternative course name,  check it please (advanced settings)

2) no, you can't, but you can disable it, and reposition it

 
Average of ratings: -
Picture of Instituto IFIC
Re: adding last name
 

1) I can't find this field.. I've checked in the settings of the activity, of the course and any other setting I could find.. Where is it exactly? 

2) Thanks! ;)

 
Average of ratings: -
Picture of Instituto IFIC
Re: adding last name
 
1) I can't find this field.. I've checked in the settings of the activity, of the course and any other setting I could find.. Where is it exactly? 2) Thanks! ;)
 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: adding last name
 

it's an advance settings in activity setting, so it's hide. You must enable "show all settings ",  and find "'Alternative Course Name"


 
Average of ratings: -
Randy Thornton
Re: adding last name
Group Documentation writers


In Moodle 2.7 you will find this if you 1) open the Others Options area, then 2) click the Show more... link at the bottom of the section. This will expand to show other hidden settings.

Alternative Course name will then show up as the first setting in the section.



 
Average of ratings: -
Picture of Luis Pinheiro
Re: New activity: Simple Certificate
 

Oi, Carlos.

Thanks for your module. It is incredible!

I'm running  2.2.0 (2014070500)

Even though it is working on my 2.7.1 installation, I get the following error messages:

The condition_info class is deprecated; change to \core_availability\info_module
  • line 125 of \lib\conditionlib.php: call to debugging()
  • line 1639 of \mod\simplecertificate\locallib.php: call to condition_info->__construct()
  • line 1698 of \mod\simplecertificate\locallib.php: call to simplecertificate->can_issue()
  • line 94 of \mod\simplecertificate\view.php: call to simplecertificate->view_default()
condition_info*::is_available() is deprecated, replace with new \core_availability\info_module($cm)->is_available()
  • line 482 of \lib\conditionlib.php: call to debugging()
  • line 1640 of \mod\simplecertificate\locallib.php: call to condition_info_base->is_available()
  • line 1698 of \mod\simplecertificate\locallib.php: call to simplecertificate->can_issue()
  • line 94 of \mod\simplecertificate\view.php: call to simplecertificate->view_default()

add_to_log() has been deprecated, please rewrite your code to the new events API

  • line 48 of \lib\deprecatedlib.php: call to debugging()
  • line 1715 of \mod\simplecertificate\locallib.php: call to add_to_log()
  • line 94 of \mod\simplecertificate\view.php: call to simplecertificate->view_default()

Any chance you can help me fix this?

Obrigado!

Luis

 
Average of ratings: -
Picture of luciano biondo
Text moved at right
 
Hello, thanks for your very useful module.

I have a simple certficate template I made some time ago, it prints well.

Now I need an other one. I copied the content from the prevoius module, changing the course name. The text block is printed some cm at right.

In module setting I changed the x-position from 50 to 0, but it gived no result. I tried to write 0 instead of 50 in setting.php, with no result.

What can I do?

Moodle 2.7.1 build 20140807 simple certificate 2014070500

Thanks for help.
Luciano

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Text moved at right
 

Hello,

I don't understand where you change this settings, in plugin settings (in admins pages) or in activity settings (inside a course).
If you change in admins pages this is expected, since  the admins pages only set the default values and don't change any existing certificate activity, otherwise, may be a bug.

The new version (2.2.0) has a functionality to only issue a new certificate if:

the user  hasn't issued it  yet (of course)
There is a change in ACTIVITY SETTINGS

If there is no changes, and user has issued previously the plugin only send a copy.



 
Average of ratings: -
Picture of luciano biondo
Re: Text moved at right
 
With your help I solved, thanks. I suggest not to "hide" the activity position settings in next version (put them at the end, if you prefer!)

Luciano
 
Average of ratings: -
Picture of Roberto Arrial
Re: New activity: Simple Certificate
 

Hi Carlos! Hope everything is fine.

We are users of the Certificate, everything works fine (Moodle 2.6.1, Certificate 2.2.0), all fields work except for the Profile_fields.

We have the following custom profile field: 

Fullname: matricula

shortname: matricula

type: text

On the certificate, all fields work fine, but when we try {PROFILE_matricula} or {PROFILE_FIELD_matricula}, none of them work. We get a blank space where the field should be filled (as if the module did not understand the syntax and simply ignored the field). All other fields, logos, etc display just fine.

Are we doing something wrong?

Can you help us?

Thanks a lot!

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
try
{PROFILE_MATRICULA}

and user must fill this profile field
 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

you don't  put , in shortname, something like matrícula,  i don't know about words with accentuation in shorname

 
Average of ratings: -
Picture of Roberto Arrial
Re: New activity: Simple Certificate
 
Thanks, Carlos, that did it.

The field matricula did not had any accentuation (it was "matricula", not "matrícula"). The field name is still lowercase, but oddly enough, the certificate could only read the field when we changed on the certificate, as you suggested, to {PROFILE_MATRICULA}. Otherwise, it worked flawlessly. Thanks for your always prompt and helpful support!

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

ok, puting in bugtrack

 
Average of ratings: -
Picture of Aaron Bookvich
Error generating a test cert
 

Hello.

I recently updated to Moodle 2.6.4+ from 2.6.3 and now when I edit a simple cert and then try to generate a test cert I get the following error below but when I DO NOT edit and try to generate a test file it works? 


Can not create file "28458/mod_simplecertificate/issues/0/ADHD_amp;_Trauma-ADHD_amp;_Trauma_CE_Certificate_of_Completion_0.pdf"


Any help is appreciated. Thanks! 


-Aaron

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Error generating a test cert
 

Moodle don't have a good file name string format, to clean strings that will be use as filename

there is something in the file name ( amp; ),

i will try do change the way i get the file name to avoid this problem

 
Average of ratings: -
Picture of Aaron Bookvich
Re: Error generating a test cert
 

Thanks! 


 
Average of ratings: -
Picture of Aaron Bookvich
Re: Error generating a test cert
 

Actually, I am not sure if has to do with the (amp;) as I get this problem with courses that don't include it in the title. 


See: 


Can not create file "28462/mod_simplecertificate/issues/0/Adolescent_Grief-Adolescent_Grief_CE_Certificate_of_Completion_0.pdf"


Thanks for any and all help! 


Best,


Aaron

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Error generating a test cert
 

It's could be a file permission problem, to create a new file


 
Average of ratings: -
Picture of Aaron Bookvich
Re: Error generating a test cert
 

Do you know what directory might not have the right file permission for this error to occur? Thanks.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Error generating a test cert
 

moodle's data root directory  and sub directories

 
Average of ratings: -
Picture of Roberto Arrial
Re: New activity: Simple Certificate
 

Hi, Carlos! 

I believe I've run into a bug. Here's how to reproduce the issue:

1. Create a course with a name like TESTE_CERTIFICADO

2. Create a certificate in this course and use placeholder {COURSENAME}, which will correctly display "TESTE_CERTIFICADO" on the certificate.

3. Create a course named "CURSO PRODUCAO"

4. On the "CURSO PRODUCAO", import from the course "TESTE_CERTIFICADO" only the certificate, but don't change anything on the certificate

5. Now ask to generate a certificate. The {COURSENAME}  will display "TESTE_CERTIFICADO" instead of "CURSO PRODUCAO". That is, the placeholder "remembers" the course from which it was imported. This can also be repeated on a third course if you import the certificate from CURSO PRODUCAO.

Moodle v.2.6.1, Certificate 2.2.0

Help?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Yes it is a bug, and was reported here recently , and with a solution

See:

https://moodle.org/mod/forum/discuss.php?d=222296#p1152204


 
Average of ratings: -
Picture of Steven Peterson
Re: New activity: Simple Certificate
 

I am having real trouble trying to modify the module to suit my needs. I am focused on the verification page. We are a non-profit agency that provides certified training and then we find people quit shortly after the certification process and they get their certificates. We recently changed our hiring practices so that we can help alleviate some of the abuse to the system. We need to be able to revoke the certificate and then have that shown on the verification page when a potential new employer performs the certificate validation on our site. The problem I am having is (1) I am unable to revoke a certificate, (2) if I delete the certificate from our database, we get a generic invalid certificate error, and (3) I cannot find out how to edit the verbiage on the error page to reflect that the certificate number is invalid or has been revoked.

Any help is appreciated.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

In this version there is no such thing, like Revoke a certificate,  could be a new feature to future versions (https://github.com/bozoh/moodle-mod_simplecertificate/issues/104)

You may do that via database, not removing certificate but changing certificate code to  -1, and change error message when code is invalid (invalidcode)


 
Average of ratings: -
Picture of Steven Peterson
Re: New activity: Simple Certificate
 

Ya I know about changing the certificate code to -1 to make it invalid. I have not had any luck chasing down the file where I can change the error message (invalidcode)

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
do not need change any file,  use moodle language customization  tool
https://docs.moodle.org/27/en/Language_customization


 
Average of ratings: -
Picture of Gemma Lesterhuis
Re: New activity: Simple Certificate
 

Hello Carlos,

Am wondering if you already tested - or anyone else - how this pluging works on Moodle 2.8.x version or maybe you already know when a new version will be released?

Thank you

Gemma

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I don't test yet, and i don't know when will be released,

i don't have much time to spend on this plugin


 
Average of ratings: -
Picture of Weber Ribeiro
Re: New activity: Simple Certificate
 

Hello Carlos, boy first would like to thank for the great contribution. This plugin is really very good.

I would like to help, if possible of course. In its plugin are reserved words {DATE} and {TIMESTART} am using both the certificate from the body text to say the period of the course, but I needed a third date with the day that you generated the certificate, so I would to know which file I can edit to insert a PHP code that will generate that date or else where to create more a reserved word.


Sorry for translation...

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
 
Average of ratings: -
Picture of Ellen Reisinger
Re: New activity: Simple Certificate
 
Hi Carlos,  The Simple Certificate is so configurable from the front-end, and I'm enjoying exploring it's functionality. I am trying to determine whether this or the other Certificate module is better for my clients (educators in a government department). 

I have a question though and it centres around the following requirement: we need to give our Educators the option when creating their  certificates with  the course start date. That is, the date that is populated to the Enrolment methods table when a user creates an Enrolment method instance and enables course a Start Date. 

For us, it would be neat to have the option to pull the custom name of the enrolment method too. 

So like user profile, subfields from enrolment methods table. 

Is this possible now with the exiting version? If not, is it a reasonable development suggestion?

(Ps thank you again for this plugin, what you guys - mark et al - do in this space is exceptionally clever & extremely useful! )

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Hi Ellen,

The main goals of this plugin is:
  1. don't need know php the create a custom certificate;
  2. don't need to upload files to the moodle folders to make a custom certificate works;
  3. it's fully compatible with moodle's backup system.


In this version don't have course start date (creation date?) textmark,  but i think it's easy to get that from code, and this verison don't have enrollments name too.

It's possible to do it? , yes it is.

Your question is very similar to Weber's question (https://moodle.org/mod/forum/discuss.php?d=222296#p1187180), and i don't answered it here, because he made the same question on Portuguese forum (since both speak Portuguese). I translate my answer here:

---

There is a method which get the certificate texts and replace the texts marks to the right value, this method is get_certificate_text (line 1310) in locallib.php file.

In this method have a temp object called $a,  to create a new text mark you must do:

$a->[TEXTMARK NAME],  for example:

$a->coursetime='19 to 20 September';

and put in the certificate texts the text mark {COURSETIME}

Don't change anything after line 1423. It's where the magic happens :D

---

I create a issue request about the dates,  any ideas on it will be great:

https://github.com/bozoh/moodle-mod_simplecertificate/issues/113

 
Average of ratings: -
Picture of Paul McCullough
Re: New activity: Simple Certificate
 

Hi Carlos, Many thanks for your hard work on this great plugin.

I recently upgraded the Simple Certificate plugin in my site (I'm running Moodle 2.6) and at the end of the upgrade, a message came up that said something like " moving files" . From then on, the issued pdf certificates all state "File Not Found".

I have checked that they are in the simplecertificate-issues table, but I am not sure where the pdf files are kept, so I can check these.

I hope this makes sense.

Cheers


Paul

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
It's in user's  private folders
 
Average of ratings: -
Picture of Paul McCullough
Re: New activity: Simple Certificate
 
I have found that if the simple certificate settings are set as ISSUE OPTION: 'download another way' and then a teacher goes to the BULK OPERATIONS tab and tries to <DOWNLOAD AS ONE PDF> the certificate pdf files are not saved.  The work around is to download as a zip file instead.


Is there a simple way of removing the option to 'Download as a pdf' from the dropdown menu to avoid using this option?


Thanks Carlos - this is a great extension.


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
"Download all certificates in a PDF file " option does not create or save certificates, a  bug... can be.

This option exists for the course that print and send all certificates for students. Print one by one, in large courses , will be a nightmare .

I will not remove this option.



 
Average of ratings: -
Picture of Paul McCullough
Re: New activity: Simple Certificate
 

Hi Carlos,

Many thanks for your prompt response - I have found the simple certificate plugin a life saver, and I wouldn't want you to change it. 

I just wanted to stop a client from using the 'download as pdf' choice in the drop down menu, and thought it might be possible for me to hack the code so that it doesn't appear in the drop down menu?(possibly by commenting out that line in the code?)

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

New version 2.2.1 Release candidate is available, in github site, only for moodle v2.8

please download and test it, and report any bugs

Fix issues:

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
Average of ratings: -
Picture of Flavio Shinji Taniguchi
Re: New activity: Simple Certificate
 

Hello Carlos, first I will congratulate you for the awsome plugin.

Second (probably is a newbie question), may I choose the students that I wanna let to print the certificate?

Thanks for help and sorry for bother.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Hello Flavio,

Moodle has this,  for all activities

https://docs.moodle.org/27/en/Conditional_activities_settings


Flavio, this plugin has a Portuguese forum, and i know this forum has more posts, has more people, but we are both brazilians, we can write in ours native language in Portuguese forum.  smile

Here is the link:
https://moodle.org/mod/forum/discuss.php?d=230459

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
Hello All

In 28/01/2015 i' ll release a new version of this plugin, with moodle 2.8 support (without warnings)

If anyone found a bug, please report it.

Tchau!




 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
A special thanks to Safe2Care Training,  for the support (via PayPal donations) , this makes me to continue this work.

thanks again.



 
Average of ratings: -
Picture of Mayang Farala
Re: New activity: Simple Certificate
 
Simple Certificate Bulk Operations No Display

we've been using Simple Certificate module in Moodle since July 2014, the number of enrolled in one of our course is now 2,000+ , since yesterday we encounter a problem with regards to Bulk Operations tab.. the student list can't be displayed.. while I try on other courses with less enrolled students it still works.. is there a max limit for simplecertificate to issue certs? The image below is the only displayed once I click on the bulk operations.. kindly help me with this.. thanks in advance..


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

this problem was solved ?
it's a php memory limit settings


 
Average of ratings: -
Picture of Robert Latz
Re: New activity: Simple Certificate Centering Problem
 

Hello.

We are in final testing of our Moodle site using 2.8.3 (Build 20150202) and Essential Theme version 2014122400 (with plans to update this theme this week). We are using Simple Certificate version 2015013028   2.2.1.


Our problem: When attempting to get the certificate to print correctly with the 'Centered' option, the verbiage is slightly off centered to the right of the certificate. An example is attached.

For clarification, on the 'design' screen, everything appears centered. The problem comes when the adobe version of the certificate comes up. (We are using  Adobe Reader XI.


What might we need to do to fix this odd formating?

Thank you.

Robert Latz


https://moodle.org/pluginfile.php/154/mod_forum/post/1208200/Sample%20Certificate%20BB%20Pathogen.pdf

 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate Centering Problem
 

I always recommend to use tables to fix
alignment problems

An 3 cols tables,  putting the text in de middle column and try to adjust the left/right column


 
Average of ratings: -
Picture of marcello vitali
Re: New activity: Simple Certificate
 

Hi thanks for the great plugin.

I noticed that wmsendfile.php expects the parameter sessionkey to be appended to the url along with the certificate id.

Sending session keys via the url does not seem to me to be a good idea, especially because apparently it is simply obtained with the regular moodle function session_key().

Any particular reason for doing that?

Why not simply extracts it directly from wmsendfile.php itself?  

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
wmsendfile.php  ->  Stamp a Watermark and Send file

if you are not the owner of certificate or not  a course admin,  the certificate will be stamped with "COPY " watermark, for example.

the sk  has the same idea  when you remove a course in moodle. Moodle ask for confirmation (moodle adds a sk variable to confirm the action), it's only to have sure it's not an accidental call to wmsendfile.php with a valid id.





 
Average of ratings: -
Picture of marcello vitali
Re: New activity: Simple Certificate
 

Yup but I believe the same condition (having a valid session id) would be achieved like this:


require_once (dirname(dirname(dirname(__FILE__))) . '/config.php');
$id = required_param('id', PARAM_INTEGER); 
$sk = sesskey();

if (confirm_sesskey($sk)) {

    if (!$issuedcert = $DB->get_record("simplecertificate_issues", array('id' => $id))) {      

        print_error(get_string('issuedcertificatenotfound', 'simplecertificate'));

    }

    watermark_and_sent($issuedcert);

} else {

    print_error('invalidsesskey');

}

thus allowing to easily build a link for example in configurable_reports plugin.
It also  would protect from cached or saved urls I think.
But surely you know better how this plugin works ;)


 
Average of ratings: -
Picture of Nano A
Re: New activity: Simple Certificate
 

Hello Carlos,

Thank you for your plugin.  It's working great!  

I wanted to ask you if there is a way to make a couple of additions to it.

1) The possibilty to delete certificates manually so they can be re-issued.  Or... the capability to edit name. This is because some users don't realise that their name when they register is going to be printed in the certificate so sometimes they enter everything in lower case.  I can edit their names in the system, but the certificate doesn't change when they click on it again.

2) Maybe also it would be useful to add a filter at the top  "name / surname" (same as in reports/Course completion) so we can find users easily, instead of having to browse pages.


Thank you for your feedback.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Hi, thanks for improvements suggestion

1-The manual removing is planned to next version

2-You can add an completion rule in certificate to users must verify his name and surname

3- CRTL+F in browser do the job :D

 
Average of ratings: -
Picture of Nano A
Re: New activity: Simple Certificate
 

Thanks for your reply Carlos.

1. Great news smile

2. I didn't think of that.  I'll give it a go smile

3. surprise ... but we have 132 pages!  

Screenshot


 
Average of ratings: -
Picture of jefferson canez
Re: New activity: Simple Certificate
 

ola Carlos, instalei o seu plugin mas só aparece a imagem de fundo e o texto do campo "Texto do certificado".

O nome do aluno, curso, data de conclusão não aparecem.

Meu moodle é 2.6.1, como faço para funcionar?

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
Average of ratings: -
Picture of romano gino
Re: New activity: Simple Certificate
 

Hello Everybody

Only a suggestion. As administrator using Moodle with young and not young tearchers, it would be good if the system could give them a certificate similar to students, when they create a set of activities for students, so we can motivate the learning process in some way, according to the educative model. So, if the portfolio has reading, writing, quiz, wiki, forum and other, we are stimulating and recognizing teachers approach.

Greetings.

 
Average of ratings: -
Picture of Leandro Caetano
Re: New activity: Simple Certificate
 

Hi,

I've a problem with Bulk Operations, it is not filtering students who achieved the requirements for issuing the certificate. 

Can you help me?

 
Average of ratings: -
Picture of Matjaž Mozetič
Re: New activity: Simple Certificate
 

Hello Carlos,


Is it possible to make the exported PDF "PDF/A" compliant? As I read tcpdf supports this option.

Here is one example: http://www.tcpdf.org/examples/example_065.phps

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

i thinks it could be, but

you can tell what's the advantage (or disadvantage) of that? , difference between pdf/a to common pdf ?


 
Average of ratings: -
Picture of Matjaž Mozetič
Re: New activity: Simple Certificate
 

In short...PDF/A ensures reliable access to PDF documents, making PDF ideal for long-term archiving. In many companies it is a requirement.

Here is the info from PDF Association and Wikipedia:

http://www.pdfa.org/publication/pdfa-flyer/

https://en.wikipedia.org/wiki/PDF/A

 
Average of ratings:Useful (2)
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Thanks for the explanation,  there is some restrictions that must be tested.
if there is any issues i will make  this a default,  if any, it can be an option !


The main tests are:

  • Open type fonts supports, for  languages with special chars (Russian, Japanese ...)
  • Transparency, could be an issue (i think it's not)
  • Digital signature,  it's planned to be support this in 2.3 version

I will put this in git hub as an improvement. 

https://github.com/bozoh/moodle-mod_simplecertificate/issues/129





 
Average of ratings: -
Picture of Peter Richardson
Re: New activity: Simple Certificate
 

Hi Carlos,

In my case, my teachers need to upload learner's certificates to an internal system, Is it possible to have both the student AND the teacher emailed the certificate when the student finishes a course? 

I know that the teacher can log into moodle to find the certificate, but it would be great if they could have the certificate delivered to their inbox...

Thanks,

Peter.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 
it's could be done,  but will send to all teacher
it will be good if people votes for this kind of improvements


https://github.com/bozoh/moodle-mod_simplecertificate/issues/130
 
Average of ratings: -
Picture of Andrew Robinson
Re: New activity: Simple Certificate
 

Hi Carlos,

I have just upgraded to moodle 2.9.1 and upgraded simplecertificate also.

I can edit certificate settings, but when going into the certificate module (ie. ....../mod/simplecertificate/view.php?id=XX), I am redirected to the moodle home page (not even just the course where the initial request originated).

Any thoughts on this please?

Thanks,

Andrew

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Turn on the DEBUG mode,  to find more errors messages


 
Average of ratings: -
Mark
Re: New activity: Simple Certificate
 

Re-issue certificate question,

I have an existing Simple Certificate that has been working fine since it was setup at the beginning of the year.

Our managers have instructed all staff to re-do the assessments and present the updated  certificate with a new date.

Is it possible to re-issue certificates with an updated date?

I have located the "Keep issued certificates for: 60 months" default site Admin setting.

  • if I reduce this time to 1 month... most issued certificates will be automatically deleted.
    • can the user then "get certificate" again with a new date? 
    • OR are they prevented from getting it again?


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

I don't know your version, 
but, as discussed here before,  you can force a reissue by just editing and change something in the activity, example, put a white space in certificate text, so when the user click in the certificate it will be reissued



 
Average of ratings: -
Mark
Re: New activity: Simple Certificate
 


Thanks Carlos.

My version = 2015061728      2.2.2

Moodle = 2.8.7

I apologise for asking the same question... I did look but only located 2 posts when search on re-issue.

I will add the space as you suggested... very easy.

For my understanding... if the certificate exceeds the time kept in the settings ... can the user still get it by re clicking?

Thanks for your assistance.

Cheers

Mark

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

This is a good question, this time it's only for certificate where course don't exists any more, it's keeped because of certificate verification.

To be more specific,  this only be applied for issued certificate which have timedeleted column different than null, in simplecertificate_issues table. The others certificate will be unchanged.


 
Average of ratings: -
Chris de Prado - True Jedi
Re: Simple Certificate - Change qr code size
 

Hello Carlos,


Thanks for developing this plug-in.  It has really simplified the certificate process.


I am wondering if it is possible now to reduce the size of the QR code.  I've looked all over for the setting without any success.


Thanks


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Simple Certificate - Change qr code size
 

There is some posts here explaining how to do this

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Simple Certificate - Change qr code size
 

My bad, it is in Portuguese forum


Translation:
Carlos, i have change the code in locallib.php files, line 1074 (changes values in bold)

f->write2DBarcode($codeurl->out(false), 'QRCODE,M', $this->get_instance()->codex, $this->get_instance()->codey, 40, 40, //(both was 50 )

                            $style, 'N');

        $pdf->SetXY($this->get_instance()->codex, $this->get_instance()->codey + 39); // (was + 49)

        $pdf->SetFillColor(255, 255, 255);

        $pdf->Cell(40, 0, $code, 'LRB', 0, 'C', true, '', 2);


This is reduce the QRCode size,  now is perfect.
Congrats about your code style, clean, easy to understand sorriso

Tip for the others with same issue


Original Post at:

https://moodle.org/mod/forum/discuss.php?d=230459#p1239480


Imagem de Silvio Lucas
Re: plugin simple certificade
 

Oi Carlos, alterei o codigo no arquivo locallib.php nas seguntes linhas iniciando na linha 1074 (em negrito os valores alterados):


 $pdf->write2DBarcode($codeurl->out(false), 'QRCODE,M', $this->get_instance()->codex, $this->get_instance()->codey, 40, 40, //(era 50 ambos)

                            $style, 'N');

        $pdf->SetXY($this->get_instance()->codex, $this->get_instance()->codey + 39); // (era + 49)

        $pdf->SetFillColor(255, 255, 255);

        $pdf->Cell(40, 0, $code, 'LRB', 0, 'C', true, '', 2);


Com isso diminui o codigo e ficou excelente o tamanho! Parabens pois o seu codigo esta limpo e fácil de entender sorriso

Fica a dica para os demais!


 
Average of ratings: -
Chris de Prado - True Jedi
Re: Simple Certificate - Change qr code size
 

Thanks for the update in english.  My Portuguese is non-existent.


I will give it a try.  Thanks again.


Chris



 
Average of ratings: -
Chris de Prado - True Jedi
Re: Simple Certificate - Change qr code size
 

That worked!  I was able to changed the qr code so that the overall box was about 3 centimeters square. 

I was also able to remove the numeric display of the qr code that appeared underneath

My settings are here Beginning on  line 1074  of "locallib.php"

     $pdf->write2DBarcode($codeurl->out(false), 'QRCODE,M', $this->get_instance()->codex, $this->get_instance()->codey, 30, 30,
                            $style, 'N');
                             /* changed values from 50 to 30 for sizing*/
        $pdf->SetXY($this->get_instance()->codex, $this->get_instance()->codey + 29); /* changed values from 49 to 29 for sizing*/
        $pdf->SetFillColor(255, 255, 255);
        //$pdf->Cell(30, 0, $code, 'LRB', 0, 'C', false, '', 2);
        /* Commented out above line to remove the numeric value of the qr code */

    }




 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: Simple Certificate - Change qr code size
 

don't forget to test if QR code could still be recognized, from a cell phone
for example

 
Average of ratings: -
Picture of Hugh Edwards
Re: New activity: Simple Certificate
 

Hi Carlos, 

Thanks again for the plugin - I've been using it for about 2 years now and it's worked like a charm. I have a new course now which is slightly different in that I've compiled 10 courses into one, and each existing course is now one of 10 topics. The overall course is a subscription area where my users can get access to all the courses we offer - the problem I now have though is that the overall course will only complete once all of the 10 topics are completed. This therefore means that my users have to complete all 10 courses before they can get their certificate for any of them, and they all come in at once. 


Is there any way that this could be modified so that it could pick up on the completion of a specific activity, in the same way as course completion works (i.e., select a specific, or multiple Scorm activities to be complete and then the certificate becomes available), or in the way that badges do?


Thank you for your help! smile 


Hugh.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Moodle have 2 API to help you in this task,  Activity completion API and conditional activity API, now called Availability API

This 2 API are supported by this plugin, there is no need to change anything,  you must turn it on, site wide and in the course configuration to used it

 
Average of ratings: -
Picture of Hugh Edwards
Re: New activity: Simple Certificate
 

Hi Carlos, 

I'm not 100% sure that I follow. I'm on Moodle 2.6.2 and I can see that the Availability API starts in V2.7, so it's possible that I just can't see the options in my version of Moodle? 

But please consider my situation: 

I have once course, which has 10 topics. In each topic I have 1 scorm activities. So that's 10 scorm activities in the course. I want to include 10 certificates, one for each scorm activity, and have each certificate only become available once it's corresponding scorm activity is complete. 

Is that possible? As far as I can see (at least in v2.6.2) if I put in 10 certificates I can only configure the course completion to be for all 10 courses, and therefore all 10 certificates will only become active once all 10 scorm activities are complete. 

I'd be very grateful if you could please advise! smile 

Hugh. 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

Without Availability API it's not possible,  Only if you change the code .

 
Average of ratings: -
Picture of Hugh Edwards
Re: New activity: Simple Certificate
 

Hello Carlos, 

Ok thank you - so essentially I can do this if I upgrade?!

Hugh.

 
Average of ratings: -
Picture of Lau Guerreiro
Re: New activity: Simple Certificate
 

Hi Carlos,

I'm having trouble with the [ bulk operations ] tab.
I want to download certificates for the people who have met the appropriate conditions for the certificate.

The problem is that when I select "Users that met the activity conditions"  I expected that the page would auto-refresh and only show me the users that met the activity condition. But it doesn't - it continues to show me everyone who has enrolled in the course.

So then I thought that maybe if I choose "download certificates in a one pdf file" and click [send] that it would only include the certificates for the students that met the criteria. But it doesn't it downloads certificates for everyone.

Is this a bug or am I doing something wrong?

Perhaps I'm not understanding what is meant by "Users that met the activity conditions"? It's ambiguous because it could refer to the conditions in:
1)  "Restrict Access"  This is what I would like it to mean because I can have a SCORM activity or quiz as the first activity in the course and then the second (and last) activity is the Certificate but students can't access that activity until they have met certain criteria such as scoring over 80% in the quiz.

2) "Activity Completion" for the certificate activity. This isn't as useful because I'd have to either get the student to manually mark it as complete or I'd have to get them to view the certificate so that the activity gets marked as complete.

Which of these two does  "Users that met the activity conditions"  refer to?

In any case, I've tested courses with both these conditions and neither one got the bulk actions to work properly.
 

When I go to > Course administration > Reports > Activity Completion
I can see that the quiz activity is marked as complete and the certificate activity is marked as complete.

I'm using moodle 2.8.2 and simple certificate 2.2.1

Thanks in advance for your help.

If you'd like to log into our moodle and check it out for yourself, let me know and I'll give you access.

Man thanks in advance.

regards

Lau


 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
 

It's refers to the both conditions, Restrict Access and Activity Completion,   try to turn on the debug mode , and see if theres any error


 
Average of ratings: -
Picture of Lau Guerreiro
Re: New activity: Simple Certificate
 

Hi Carlos,

I've set > site administration > Development > Debugging 
Debug messages = DEVELOPER

Display debug message = ticked    (because I don't have access to the php_error_logs)
And I've cleared the cache

But I still don't get any error messages showing up on any screen on any page (so I don't know if the logging is working properly).

Anyway, do you provide a service where I can pay you to have a look at this problem for me?

regards

Lau 


 
Average of ratings: -