Text positioning in certificates

Text positioning in certificates

by Marius Butuc -
Number of replies: 2

Hi guys,

I'm pretty new to the Certificate module, so I have it installed, but how do I customize the certificates that get generated?

More exactly, the text appears too high relative to the background template; where should go? 

P.S.: I'm using Moodle 2.0.2 (if needed, this is the site)

Average of ratings: -
In reply to Marius Butuc

Re: Text positioning in certificates

by Mark Nelson -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Marius,

To change the location of the text follow these instructions -

1) FTP to your Moodle directory.
2) Edit the file mod/certificate/type/<thetypeyouareusing>.php (you can create your own as well).
3) View the line responsible for the text - eg. "cert_printtext($pdf, $x, $y+36, 'C', 'freesans', '', 30, $studentname);".
4) To move the text to the right simply add a number to $x (eg. $x+10), to move to the left you decrease (eg. $x-10).
5) To move the text down the page increase $y (eg. $y+10), to move up you decrease (eg. $y-10).

Regards,

Mark

In reply to Marius Butuc

Re: Text positioning in certificates

by Sami Hwang -

Hello Marius,

I accidently check your Moodle site. It looks very nice.

If you don't mind, can I ask a couple of questions?

How did you remove all the blocks except navigation?

Also, within the navigation, you only have home and courses, not others.

Could you tell me how you achieve that? It looks pretty neat.

 

Sami