How do I create a custom designed certificate?

How do I create a custom designed certificate?

by Nicole Marcisz -
Number of replies: 20

How do I create a custom designed certificate?

I am running Moodle 1.8.3.

I finally have the updated certificate mod and it seems to be working properly. Now I want to know how can I create a nice looking custom designed certificate?

I'm not real tech savy on the back end of Moodle so please be detailed and specific when you share with me how to do it.

At the very least I want a specific logo on it.

thanks

Nicole

Average of ratings: -
In reply to Nicole Marcisz

Re: How do I create a custom designed certificate?

by Chardelle Busch -
Picture of Core developers
Start by reading these forums and the certificate help files.
In reply to Chardelle Busch

Re: How do I create a custom designed certificate?

by Nicole Marcisz -

Chardelle,

I appreciate your suggestion but I have read the certificate documentation and I have poked around in the forums. I am not seeing the answer that I need. It could be right in front of me but it is not written in a language that I can understand.

I DO see where in the set up of the certificate where it says Design Options: Logo or no Logo. I choose LOGO. but I want my client logo not the generic sample logo. I don't see where it says how to replace the sample logo with my logo. This is not obvious to me.

When I click the ? next to the "seal or logo" I see "You can add your own images to the certificate/pix/seals folder and they will also appear here in the dropdown. "

Where do I find this folder? I looked in site files>moddata>certificate>

Do I make my own folder?

thanks,

Nicole

In reply to Nicole Marcisz

Svar: Re: How do I create a custom designed certificate?

by Gunilla Brattberg -

You find the place to put your logo in: moodle/mod/certificate/pix/seals. Place your logo (png or jpg) in the seal map. When you have done that you can choose your own logo among the default logos.

Gunilla

Average of ratings: Useful (2)
In reply to Gunilla Brattberg

Re: Re: How do I create a custom designed certificate?

by Nicole Marcisz -

Thanks Gunilla, but forgive my ignorance. Exactly, How do I get to that folder?

thanks,

Nicole

In reply to Nicole Marcisz

Re: Re: How do I create a custom designed certificate?

by Chardelle Busch -
Picture of Core developers
First, if your logo is in the png format, you must create it in png 8.

As for getting the image into your folder, you can either do it by uploading it to that folder through your server, for example by having access to Cpanel through your hosting service. Or, if you have ftp access to your server, you can upload it from your computer that way using an html editor program that has ftp such as Dreamweaver, or any other ftp program.


Average of ratings: Useful (2)
In reply to Nicole Marcisz

Svar: Re: Re: How do I create a custom designed certificate?

by Gunilla Brattberg -

Hi Nicole,

If you have Moodle on a server you have to use a FTP-program to upload your logo to the seal folder on your server.

If you have a local application of Moodle you can look for the seal folder in your explorer.

Gunilla

Average of ratings: Useful (2)
In reply to Chardelle Busch

Re: How do I create a custom designed certificate?

by Kerry Blasingim -

Actually, I have a related question: where can I change the default text that is printed on the cert? ("Certificate of Accomplishment" or such; all of the global text strings, basically)

I messed around in the certificate.php file for the types I was working with, explored lib.php and so on, and haven't been able to find where they're defined.

Sorry to be a bother.

In reply to Kerry Blasingim

Re: How do I create a custom designed certificate?

by Chardelle Busch -
Picture of Core developers
You can find the lang strings in the certificate/lang/en_utf8/certificate.php file.
Average of ratings: Useful (2)
In reply to Nicole Marcisz

Re: How do I create a custom designed certificate?

by Bill W -
I modified the background (border image in mod/certificate/pix/borders) to include our logo, seal and all the verbage and disabled everything else that builds the certificate

This was the easiest way for me to customize the cert the way we wanted it to look...

Good luck!
Average of ratings: Useful (2)
In reply to Bill W

Re: How do I create a custom designed certificate?

by Chardelle Busch -
Picture of Core developers
Hi Bill,

Good to know you were able to create your own custom certificate. You should always make a copy of the type folder you are using for your custom certificate, give it your own name, then add that name to the lang file. This way you won't lose your changes when upgrading.
Average of ratings: Useful (2)
In reply to Nicole Marcisz

Re: How do I create a custom designed certificate?

by Kim White -
I've added a custom file to the borders folder, but it doesn't appear in the drop down list. Is there anything else I need to do to get it to show up?
In reply to Kim White

Re: How do I create a custom designed certificate?

by Kim White -
Resolved - make sure your extension (jpg) is in lowercase.
Average of ratings: Useful (1)
In reply to Kim White

Re: How do I create a custom designed certificate?

by satish agrawal -
How to create our own customised border??
In reply to satish agrawal

Re: How do I create a custom designed certificate?

by chua hh -
beside, logo, seal and border. I would like to add another image. How do I do that?
In reply to chua hh

Re: How do I create a custom designed certificate?

by Chardelle Busch -
Picture of Core developers
Read the customizing section in the docs

If you would like to add a 4th image, you could customize a type file that prints the image.

You can visit fpdf.org for more info on this.


Average of ratings: Useful (1)
In reply to Chardelle Busch

Re: How do I create a custom designed certificate?

by E. L. Cooper -
Of course the lazy way is just to create a 'border' that has all of the images in their correct positions and upload it.
In reply to E. L. Cooper

Certificate png seems grainy?

by Keith Murray -

I have modified a custom seal that displays in my certificate but regardless of how clear my original png is it seems to come out grainy in the pdf cert.  Am I missing something?  Do I need to add the exact dimensions of the png in the certificate.php?  Here is my current setting:

// Add images and lines

print_border($certificate->borderstyle, $orientation);

draw_frame($certificate->bordercolor, $orientation);

print_watermark($certificate->printwmark, $orientation, 300, 300, 700, 691);

print_seal($certificate->printseal, $orientation, 620, 425, '', '');

print_signature($certificate->printsignature, $orientation, 130, 440, '', '');

Any information is greatly appreciated!  Thanks, Keith.

I have attached the current png I am using

Attachment CSI_logo.png
In reply to Keith Murray

Re: Certificate png seems grainy?

by Chardelle Busch -
Picture of Core developers
Yes, do that. Following the $orientation variable are 4 variables:

$x, $y, $w, $h

You can change those to any number, e.g. 620, 425, 96, 97

Also, make sure your image has no transparency.
In reply to Chardelle Busch

Re: Certificate png seems grainy?

by Keith Murray -
Thanks so much Chardelle and thanks for all your work on the certificate module!!
In reply to Keith Murray

Re: Certificate png seems grainy?

by Keith Murray -
FYI to anyone also having this issue; I simply created a png logo that was twice the size in dimension as the attributes I set in my certificate.php file and it compress the logo to the attribute size and seemed much clearer.