Text positioning in certificates

Text positioning in certificates

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)

評比平均分數: -
In reply to Marius Butuc

Re: Text positioning in certificates

Mark Nelson發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片 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

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