module certificate for moodle 2.0

module certificate for moodle 2.0

by marek rode -
Number of replies: 9

Hi,

 

I am testing new moodle 2.0 and I am wondering if any of You mayby tried to make module certificate for this moodle.

First I downloaded zip file HEAD from this site http://docs.moodle.org/en/Development:NEWMODULE_Documentation

After that I tried to fill content of this folder with files included in old certificate. I also change name of new module on newcertificate and changed all text conteining "certificate" on "newcertificate".

When I tried to run there appeared fatal errors that told I use some old functions from older version of moodle so i used this site

http://xref.moodle.org/nav.html?_functions/index.html

to fullfill content of lib.php

Unfortunatelly it still doesn't work beacouse there are more older functions and classes which are not contained in many files.

So, I am asking You if mayby someone tried to make this new module to moodle 2.0 and help me.

Thank You and best regards

Average of ratings: -
In reply to marek rode

Re: module certificate for moodle 2.0

by Stuart Mealor -

The Certificate module developed by Chardelle is very good.

http://moodle.org/mod/data/view.php?d=13&rid=683

It's takes a little time to set-up correctly, but worked well in Moodle 1.8 and 1.9.

Perhaps it's worth talking to Chardelle to see if there are plans to update this module for use in Moodle 2.0?  Heopfully so, because it is a very valuable addition to Moodle for many sites.  Dropping a 1.9 module into Moodle 2.0 is not going to work.

In reply to marek rode

Re: module certificate for moodle 2.0

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Just moving this discussion thread to the certificate module forum...

In reply to Helen Foster

Re: module certificate for moodle 2.0

by Katie Fraser -

Hi, could you tell me where I can find the continuation of this discussion? (I can't seem to find anything aside from this forum). I too am waiting for the 2.0 version to be released and would like to follow this thread. Thank you.

Katie  

In reply to Katie Fraser

Re: module certificate for moodle 2.0

by Guido Hornig -
Picture of Plugin developers

You can test this version:

http://download.moodle.org/plugins/mod/certificate.zip

please report test results to the tracker CONTRIB Project,

http://tracker.moodle.org/browse/CONTRIB-2006

In reply to Guido Hornig

Re: module certificate for moodle 2.0

by David Jaramillo -

Hi friends do you have the certificate module for moodle for 2.1.1? can you post please?

In reply to David Jaramillo

Re: module certificate for moodle 2.0

by Chris Collman -
Picture of Documentation writers

Hi David,

Have you looked at MoodleDocs and the Certificate module page?

I am currently using a version that seems to be monitored by Mark Nielson, but which has ProMoodle (Chardelle) in the commentsection.  It works for me in 2.1. 

I have even been able to tweak my own certificate copy of certificate.php.  It may have bugs when it comes to 2.1 but for what I do, they have not appeared.

Chris

In reply to Chris Collman

Re: module certificate for moodle 2.0

by David Jaramillo -

Thanks Chris, I have installed the certificate module...

I have three questions:

1) I dont want to display in the certified the lines:

CERTIFICATE of ACHIEVEMENT
This is to certify that
has completed the course

I comment this like this:

//$string['title'] = 'CERTIFICATE of ACHIEVEMENT';
//$string['certify'] = 'This is to certify that';
//$string['statement'] = 'has completed the course';

But it continue displaying ...!!!!

the path of the file that I changed is: moodle/mod/certificate/lang/en/certificate.php

2) What is the procedure to follow so the name of the course is not displayed?

3) How can I do for moving the code certificate to the footer right position?

Please Help me!!!!!!!!!

 

In reply to David Jaramillo

Re: module certificate for moodle 2.0

by Chris Collman -
Picture of Documentation writers

Hi David, First which Moodle version are you using. Did you read Certificate customizing
That would tell you to go to a different certificate.php file.   Please uncomment thoselines and then copy a certificate type folder, then look for the certificate.php in the type folder. 

 

The way I would do it is to learn about creating your own unique certificate and leave the defaults types alone.  Thus I would copy one of the existing certificate type folders and rename it David01.   Now look at the certificate.php code.   Since you know the string names you want to commeent out, look for those in the lines of code and comment them out in that file.

This is also the file for adjusting the random code position when the PDF is created.   I am not sure I would put it in the footer, but at the botom of the page.  You are not programming HTML here but a PDF file.  Remember there is both a Portrait and Landscape postion.   The code position variable is $codey in both Landscape and Portrait.  Thnen you are looking for  //add test and something like:

cert_printtext($x, $codey, 'C', 'Times', '', 10, $code);
    $i = 0 ;

This will center the code text on what every line you put for the $codey under landscape or portrait.

The //add text areas is where to comment out stuff ith the //. You sound like the brave sort, so have at it with this file.    Make a backup of the file so you know where you started form.   I may have 5 or 6 type folders, until I get things just right.  

However, if you really want to show a blank, where the words should go, here is how to do it from the interface withouth having to use FTP or some backdoor method.

Go to administration, language, edit the language pack.  Find the certificate .php file.   Change "Certificate of ACheivement" to a blank field, either a space or &NBSP in it. This will create a special file in moodledata/lang/en_local.  If you want to edit the created php file there have at it smile  Next time certificate upgrades, it will not wipe out your edits. This is a best practice. Never edit a language file directly, always edit (or even add an edited language php file) to the new folder you created there with your first edit.

Back to my own homework. It is a Holday today in the USA.

Hope this helps.  Read that MoodleDocpage  .  

 

Chris