Dave,
I am using version 1 and its been working fine so far is there any need for me to upgrade to 1.1 (ie what changes have been made).
Also where did you get the certificate borders? I would like to add in a few or maybe make my own and was wondering what the specifications were.
Thanks a lot
Jared
Jared,
Version 1.0 and 1.1 are identical, I just commented out the activity locking, so people have to uncomment those lines to use activity locking. It seemed like the best approach since some people are not using activity locking and I am getting alot of mail why there are getting errors.
The borders were scanned by me from my own certificates, and some posted on moodle forum. So, I dont know where to send you for more....
Dave.
Hi David,
Even though in version 1.1 of the Certificate module the activity locking is commented out do I still have to have the Activity Locking module installed in order to use the Certificate module? (sorry if this is a dumb question)
I installed the Certificate module and am getting errors. The database tables installed OK but then I ran into problems with line 4 of the lib.php. Any thoughts?
Cheers,
Jeff
Dave,
The error message I'm getting is (using moodle 1.52+)
-------------------
Warning: main(/home/waiteru/public_html/elearning/lib/locklib.php): failed to open stream: No such file or directory in /home/waiteru/public_html/elearning/mod/certificate/lib.php on line 4
-------------------
What I've done so far is download Certificate 1.1. Then I Uploaded the certificate folder under the mod folder in your zip file into my moodle mod folder. (Does that make sense Then I went to the admin page. The tables installed OK.
Thanks for your help Dave!!
Cheers,
Jeff
Thanks for all your hard work with this module!
I'd like to configure this so that it throws me an email whenever a student reaches the Certificate stage. I'm just using php's mail() function in the view.php file, but I'm not sure which variables to include to get the email to tell me the users name, course name, date of completion.
I've noticed some functions in the lib.php file that are used to add to the log reports, could I use the variables in these functions or should I create some new variables for the fields that I require.
Any help greatly appreciated.
Regards
Brett Drinkwater
Brett,
If you want an email sent everytime a certificate if viewed, you can place that in the view.php file. If you want to send an email everytime a certificate is created(the first viewing), you need to place it in the lib.php.
I think you want the latter. In the lib.php, the last function, check_cert_exists, in the else{} switch, place your code to send email. You can use the following variables:
$user->firstname user first name
$user->lastname user last name
$view_time certificate date
$course->fullname course name
Dave.
I am quite surprise. I can't understand.
- Why do I always get a field to enter the name of the student?
- Why don't I get the button only if I access the module as a student? Moodle already should know my name.
- Why don't I get a menu list of my course students in order to create a certificate for them if I access the module as teacher?
uuummmmm

Daniele,
It sounds like you have a custom version of the certificate module, that asks for the name to put on the certificate. I created this for a specific person/use.
You should get the general download at http://whatalife.com/certificate_1.1.zip
Dave.
Good work by the way David. Any thought about it being linked with the e-Portfolio module?
Hi,
I really like this module! Good work! Just one wish: I would like the certificate to open in a new window; now when a student clicks the link the certificate is shown in the browserwindow itself (in IE that is) and I loose all navigation. The only way to get back to my site is to hit the Back button of the browser..
thanks for your hard work making this good addition to Moodle
when i click on a certificate link on main page (after admin login) i get following errors
Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in c:\program files\easyphp1-8\www\moodle\mod\certificate\view.php on line 101
Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\moodle\mod\certificate\view.php:101) in c:\program files\easyphp1-8\www\moodle\mod\certificate\fpdf\fpdf.php on line 1022
FPDF error: Some data has already been output to browser, can't send PDF file
any comments
regards.
syed
Hi David,


You'll have to customize certificate/view.php. To change the color of the title, you can use the SetTextColor() function. To make the title red (and then go back to black for the rest of the text) you would put this code in the case in the switch() that stands for the certificate type you want to change:
$pdf->SetTextColor(255,0,0);
cert_printtext(170, 125, 'C', 'Helvetica', 'B', 30, get_string("title".$type, "certificate"));
$pdf->SetTextColor(0);
that should do the trick
I'm having the same problem. I have the certificate module working beautifully, but when I try to change logos or seals. I get the same error message.
I created png files, but when I look at them on cpanel, they show they are 8 bit rgba instead of 8 bit colormap. How do I change this? I even copied some of the existing png files and changed them and they still say the same thing.
Stella Maris
Warning: main(../../lib/fpdf/fpdf.php): failed to open stream: No such file or directory in /home/school/public_html/School/mod/certificate/view.php on line 13
Warning: main(../../lib/fpdf/fpdf.php): failed to open stream: No such file or directory in /home/school/public_html/School/mod/certificate/view.php on line 13
Warning: main(): Failed opening '../../lib/fpdf/fpdf.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/school/public_html/School/mod/certificate/view.php on line 13
Warning: main(../../lib/fpdf/fpdfprotection.php): failed to open stream: No such file or directory in /home/school/public_html/School/mod/certificate/view.php on line 14
Warning: main(../../lib/fpdf/fpdfprotection.php): failed to open stream: No such file or directory in /home/school/public_html/School/mod/certificate/view.php on line 14
Warning: main(): Failed opening '../../lib/fpdf/fpdfprotection.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/school/public_html/School/mod/certificate/view.php on line 14
Fatal error: Cannot instantiate non-existent class: fpdf_protection in /home/school/public_html/School/mod/certificate/view.php on line 145
When i want to look at a cert. i have created
Im also haveing an issue with modulename on any new mod i add.
本讨论区帖子已移除
本讨论区帖子已移除
On occasion, we have a user who misspells their name (yes, seriously) and we need to edit the certificate to show the correct name. I used to download the certificate in PDF and correct it using Adobe Professional or Illustrator. Since upgrading to 1.6.4 and the corresponding Certificate module, opening the files for editing requires a password.
Where do I find the password to change the files? It is not the site admin, the database or the user's password from my trials and errors.
Thanks
Any help you can give would be most appreciated!
Thanks.
Winston...here's the answers to the email you sent that also relate to this post. I hope this information helps!
Winston - I'm sorry it took me so long to get back to you. I don't log in to the main site often and just got this. For Question 1, you need to add the 'verify certificate' block to whichever page you want on your site that people can enter the certificate number into to verify it. I have this on my main page so that people can verify certificates without having to log in or be enrolled in courses.
2. Verify_Certificate folder should be installed in moodle/blocks as it is a block.
3. Putting it in the block folder and removing it from your mod folder and then installing it through the moodle/admin screen should take care of problem #3. I have permissions at 755 in my block folder.
This works off of the 'certificate issues' table in your database which is (I think) the same table the 'report' function of the certificate module itself works off of so assuming the certificate MODULE is installed correctly, this 'verify certificate' BLOCK should work correctly as well.
I hope this info helps. I will post in the forum too just to be sure you receive this.
Thanks, Fran
My Moodle hosting service has installed the Certificate module in my environment, but I need to know how to make access to the certificates conditional on achieving an 85% or higher grade on a final test (quiz).
I've read through a lot of stuff about conditional activities, activity locking, score locking, etc., but some of these techniques are hacks that are version specific and cannot be upgraded and none explain how they might be used in conjunction with the Certificate module.
This seems pretty fundamental to the concept of a certificate, namely, receiving a certificate *only* upon successful completion as demonstrated by test performance. Step by step tips or links to relevant documentation would be appreciated.
Thanks,
P.S. A couple of other, less critical questions that I would appreciate some help on are:
- How can I add new signatures to Certificates?
- How can I add new logo images to Certificates?
Verne Morland
Managing Partner
ROI Learning Services
Dayton, OH USA
You provider probably is offering certificate module from moodle CVS, in this case you will get a code equivalent to Chardelle’s certificate 3.2.
Certificate 4.1 FAT offers this functionality, try to install that version.
To add logo and signatures you will need to place new logo and signature file inside proper folder.
Im trying to give a user a certificate on completion of a quiz, i used the lesson dependency trick where i linked the certificate activity to a dummy lesson mentioned here
http://docs.moodle.org/en/Certificate_module
But when i click on the lesson to view the certificate activity it displays a message saying
Navigation: first page not found
It should ideally display the certificate in a drop down. Can u help me out?
I am able to generate Certificates, however, I am now unable to delete them from the list of course activities. I hit the delete icon...then I am asked If I'm sure I want to delete the certificate..then I'm hung at /moodle/course/mod.php. I'm using Certificate 3.2 on Moodle 1.8. Any help would be greatly appreciated.
I want to say that the certificate module is great! I am wondering, is there any way to have a new certificate generated every time the course is passed? Right now once a user completes the course and gets their certificate, no matter how many times they take the course again they never receive a new certificate.
I would love to be able to have it NOT remember who has obtained a certificate and just issue a new certificate every time.
Thanks,
Ben
ERROR: Could not instantiate mail function. ERROR: Could not instantiate mail function. FPDF error: Some data has already been output to browser, can't send PDF file
Any suggestion are welcome
Cheers