How can a teacher upload new signatures or delete existing ones in a course ?
Signatures and seals are bitmaps stored in special folders in the moodle file system (%moodledir%/mod/certificate/pix/seals resp .../signatures). There is no way to upload new signatures or seals via the moodle user interface.
Only an administrator with file-system-access can upload signatures or seals in the appropiate folders (or delete unwanted ones).
If you do not like seals to appear in your certificates, you can delete the seal bitmaps from the seal folder and copy the signatures from the signature folder into the seal folder. You can then pick two signatures appearing on the left and on the right.
Does this answer your second question too?
1. Do you mean that a teacher need to ask the admin to upload a image when ever he needs a signature update ! ! ?
2. Yes i see that i can change the text called "seal" to "signature - right" and remove seals from there to put signature files, but what if i want a seal later on ? !
Can you please tell me how this certificate module works ? so that i can just add another replica of the signature process to the right.
And if no other ways possible i would need to look for options to upload the signature images from the certificate creation process itself.
The signatures are uploaded into the mod/ certificate/images folder which is a server side issue so only someone with ftp to the server can upload them but as far as seals and signatures go you can have as many in the folder as you want, just give them a name that has not been used and that option will appear in the drop down. For example If you upload a signature called janedoe.png into the seal folder it will then show in the seal dropdown. To use it you need only select it and it will appear in the position allocated to seals.
Also it should be noted that the images in certificate are png not bit maps.
Heres what i mean, please cast a vote if you think its valid.
Am already working towards an alternative solution.
I have uploaded several things to the signatures folder, some png and some bitmap, but I can't get them to display on the certificates menu. Any ideas?
Question 2: Several ideas are thinkable. Do you really need to pick from several seals or is only one seal sufficient for you? For the latter you can customize the certificate-type-template to print a hard-coded seal. If you need double signatures and a selectable seal you might consider combining two signatures in one graphics file and have the teacher select one combination (instead of single signatures).
Another Idea is to create a watermark with all the graphical appearance (background, border, seals, signatures, logos, even some static text) and have moodle print only the variable text bits (student name, course name, date, teacher name, code).
Having both two selectable signatures and selectable seals requires a lot of quirking in the certificate module (changing database, user form, certificate files etc.)
How it works: The file certificate.php located in %moodledir%/mod/certificate/types/%typename%/ determines how the certificate of a certain type looks like. It contains code that puts objects onto the certificate paper, "signatures" and "seals" as well. You can customize the certificate by changing this file, e.g. moving around the objects by changing the coordinates. Turning "seals" into a copy of "signatures" is fairly easy. The code for printing the seal just needs the same size info as the signature (width and height), as the copied signature bitmaps should have the same size too.
Putting a (faximile) signature onto an achievement paper that a student retreives in an automatic process is an issue to be well thought of. Does a faximile signature add some appropriate value to the paper? Whose names should appear and why? I use signatures, but only with few teachers and very scarcely.
Thanks for replying, Have sorted this out temporarily,
1. To make the upload and manipulation of signatures possible for teachers i have made the pix folder accessible on site files(sitefiles/certificate/signatures and sitefiles/certificate/seals) and have coded the certificate module to look for the signatures and seals in there.
This way Teachers no need to rely on admin for each and every signature and seal changes, nor need to be educated on ftp moreover the admin can even control the access to the seals and signatures.
2. Regarding having two signatures, as suggested, have changed the seal to act as a signature for now (because right now seal is not being used). but planning to work on this, like if the teacher says how many signatures he needs in the certificate, he will get that many options to choose different signatures and an preview of where the signatures will be placed in the certificate so that teachers can adjust the position of where the signatures are placed in the certificate right then and there and adjust accordingly if needed.
~ ~ ~ Peace - Ravishankar Somasundaram ~ ~ ~
1. Your solution sounds very elegant, but I have one caveat: Be careful when teachers have full access to the signatures folder. The module may show unexpected side effects when a student generates a certificate with a signature that has been deleted. The teacher picks a signature, and the signature name is stored in the database. Deleting the signature file does not affect the data in the database.
My idea for this: provide a folder the teacher uploads his signature into. Then have a cron job move all uploaded files both into the real /signature- and /seal-folder. This way teachers can add and overwrite but not delete signatures.
2. The certificate module is very flexible (for the administrator), but I would not pass all the flexibility on to the teachers. The design of papers like certificates is a matter of corporate (or institutional) identity and should be defined first, with all aspects. Based on this decision the administrator customizes the module and the teacher simply uses it.
Yeah thought about that already, allowing teachers putting the signatures into a folder and running a cron to copy to a another place whereas only a person with admin access can actually delete it, but most of the time the events happen quickly.
Like in a course, people want to create a new certificate or edit a existing certificate with a new signature in it.
So if i were to run a cron i need to run it every half minute or less.
And i thought that might add up severely to the load on the server when we are talking about 5000 concurrent users and 20,000 users overall.
But yes, what you say is a important factor to be considered, will give it a thought and come up with a better model to handle this.
Mean while suggestions welcomed.
But any other perspectives ?
Moodlers need your opinion.
Raymond, it sounds like you know how to do this, but I don't quite understand the instruction...
I have scanned and saved my signature on the hard drive. I know how to save it to "signatures", and I have saved quite a few signatures, but I cannot seem to find them on the certificates when I look at the scroll menu for signatures. They just don't show up there. Please help.