General plugins

New activity: Simple Certificate

 
 
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
Group Particularly helpful MoodlersGroup Plugin developers

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 Derek Greene
Re: New activity: Simple Certificate
 

When adding a certificate image file, it overwrites the text on the certificate.  removing the image shows the text.  I've even created a PNG web safe (transparent) image to attempt to solve this- any ideas on whats causing this?


Using Latest version of moodle (2.9.2) on windows IIS/PHP 5.5 with Simple certificate 2.2.2.  No weird HTML is in the certificate text.


Due to file upload size restrictions, Example certificates are available to view here: https://www.dropbox.com/s/19oyrqtorb1njxa/Archive.zip?dl=0 


Certificate HTML:

<div style="width:800px; height:600px; padding:20px; text-align:center; border: 10px solid #787878">

<div style="width:750px; height:550px; padding:20px; text-align:center; border: 5px solid #787878"><img 

<span style="font-size: 25px;"><i><b>HOA University</b></i></span><br><br>

       <span style="font-size:50px; font-weight:bold">Certificate of Achievement</span>&nbsp;<br><br>

       <span style="font-size:25px"><i>This is to certify that</i></span>

       <br><br>

       <span style="font-size:30px"><b>{USERNAME}</b></span><br><br>

       <span style="font-size:25px"><i>has completed the course</i></span> <br><br><span style="font-size: 30px;">{COURSENAME}</span><br><br>

       <span style="font-size:20px">with score of <b>{GRADE}</b></span><br><br><p style="text-align: left;">&nbsp; &nbsp; &nbsp;Date Issued: {DATE}<br></p><p style="text-align: left;"><span style="color: rgb(85, 85, 85); font-size: 12px;">&nbsp; &nbsp; &nbsp; Certificate Code: {CERTIFICATECODE}</span><br></p></div>

</div>

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
Group Particularly helpful MoodlersGroup Plugin developers

Someone have this error?, this is very odd

The plugin writes image first and then the text, no need to be transparency , something that may help you:

  • Try to turn on moodle's debug mode
  • Try with Jpeg image

I never test with windows/IIS , so you may find something about tcpdf lib won't write text above images

 
Average of ratings: -