2.5.1 Certificates Module - centering the "Custom Text" box, and adding another field to come from a signup page field box.

2.5.1 Certificates Module - centering the "Custom Text" box, and adding another field to come from a signup page field box.

by Wendi Daniels -
Number of replies: 3

I have 2 questions about the certificate module:

 

1) I cannot seem to center the information in the following field on the certificate:

Certificate > text options > custom text

How do I center it? I have tried this text, but it will not center the information...

*********************************************************************

<!DOCTYPE html>
<html>
<body>

<div align="center">
<h1>My Business Name</h1>
</div>

</body>
</html>

*******************************************************************************

The moodle doc seems to indicate that it may not let me center the information, but surely there is a way...any ideas?

http://docs.moodle.org/20/en/Add/edit_certificate_module#Custom_Text

 

2) I am a chiropractor, and I am teaching other chiropractors for their continuing education credits. I have the certificates programmed to be emailed to both the chiropractor and the licensing boards. I added 2 fields on their signup form: one for the license number, and one for the state in which they are getting licensed (in America). What would be GREAT is if I could program the certificate to include the state and license number. Any ideas on how to do this?

 

Also, if I may add, this is some wonderful background music!  Ignore the strange-looking cover...   http://www.listenonrepeat.com/watch/?v=J0gRc2FMNsU

Average of ratings: -
In reply to Wendi Daniels

Re: 2.5.1 Certificates Module - centering the "Custom Text" box, and adding another field to come from a signup page field box.

by Wendi Daniels -

Is there no one who has an idea of how to do this?

In reply to Wendi Daniels

Re: 2.5.1 Certificates Module - centering the "Custom Text" box, and adding another field to come from a signup page field box.

by Floyd Saner -

Wendi,

The placement of custom text in a certificate is hard coded in file certificate.php located in .../mod/certificate/type/"type_name"  where "type_name" is something like A4_embedded or letter_non_embedded.

I've created quite a few custom certificates and usually end up writing my own certificate.php code or modifying one of the standard files and adding that as another type - just create another subfolder in the .../mod/certificate/type folder and add your custom certificate.php file to that subfolder.

You might want to take Ken's suggestion and look at simple_certificate.  That is designed to accept more formatting code in the custom text area.

Another 'trick' I use is to create a pdf file with all the static text and images I want on the certificate.  Export the pdf as .jpg and place it in .../mod/certificate/borders folder.  Then use that as your border and everything else gets overlaid on the border file.

Floyd