No description
Find a file
2017-02-01 17:39:27 +08:00
amd #63 Update XY positions in dialogue when moving elements 2017-01-31 11:45:35 +08:00
backup/moodle2 Fixed backup and restore after refactor 2016-04-05 15:56:16 +08:00
classes #71 Added validation for element and template name length 2017-01-31 17:15:49 +08:00
db Fixed the context level for 'mod/customcert:manage' in db/access.php 2017-02-01 17:39:27 +08:00
element #65 Added user picture element 2017-01-31 16:50:52 +08:00
includes #52 Simplified colourpicker form element's code 2016-12-13 10:47:14 +08:00
lang/en Fixed reference to a string present in the mod_certificate activity 2017-02-01 14:43:08 +08:00
pix Huge refactor 2016-02-20 16:35:19 +08:00
yui #64 Fixed incorrect element position after changing reference point 2017-01-30 16:56:53 +08:00
ajax.php Renamed rest.php to ajax.php 2016-06-17 15:49:10 +08:00
edit.php Show a link to manage templates 2016-08-25 18:44:52 +08:00
edit_element.php Huge refactor 2016-02-20 16:35:19 +08:00
index.php Uncapitalised usages of the 'context_*' classes 2016-08-25 17:04:10 +08:00
lib.php Fixed call to undefined function in customcert_user_complete() 2017-02-01 11:39:42 +08:00
load_template.php Huge refactor 2016-02-20 16:35:19 +08:00
manage_templates.php Uncapitalised usages of the 'context_*' classes 2016-08-25 17:04:10 +08:00
mod_form.php Fixed references to non-existent constants 2016-04-23 14:13:28 +08:00
my_certificates.php #44 Added page to view all certificates for a user 2016-12-30 13:40:56 +08:00
README.md Added a tutorial on how to add fonts 2016-08-19 15:29:08 +02:00
rearrange.php #64 Fixed incorrect element position after changing reference point 2017-01-30 16:56:53 +08:00
report.php Removed erroneous passing of $course to footer() 2016-12-29 17:14:14 +08:00
settings.php #41 Add setting to display the position X and Y elements 2016-12-30 13:32:01 +08:00
styles.css Addressed lint warnings 2016-12-29 17:14:09 +08:00
upload_image.php Huge refactor 2016-02-20 16:35:19 +08:00
version.php #71 Increase customcert_templates 'name' column length 2017-01-31 16:54:20 +08:00
view.php Fixed reference to a string present in the mod_certificate activity 2017-02-01 14:43:08 +08:00

QUICK INSTALL

There are two installation methods that are available. Follow one of these, then log into your Moodle site as an administrator and visit the notifications page to complete the install.

==================== MOST RECOMMENDED METHOD - Git ====================

If you do not have git installed, please see the below link. Please note, it is not necessary to set up the SSH Keys. This is only needed if you are going to create a repository of your own on github.com.

Information on installing git - http://help.github.com/set-up-git-redirect/

Once you have git installed, simply visit the Moodle mod directory and clone git://github.com/markn86/moodle-mod_customcert.git, remember to rename the folder to customcert if you do not specify this in the clone command

Eg. Linux command line would be as follow -

git clone git://github.com/markn86/moodle-mod_customcert.git customcert

Use git pull to update this repository periodically to ensure you have the latest version.

==================== Download the customcert module. ====================

Visit https://github.com/markn86/moodle-mod_customcert and download the zip, uncompress this zip and extract the folder. The folder will have a name similar to markn86-moodle-mod_customcert-c9fbadb, you MUST rename this to customcert. Place this folder in your mod folder in your Moodle directory.

nb. The reason this is not the recommended method is due to the fact you have to over-write the contents of this folder to apply any future updates to the customcert module. In the above method there is a simple command to update the files.

Customisation

========================= Add Fonts to TCPDF. =========================

For customization, you have a couple of options in the Custom Certificate module. One of the most common customizations is, adding fonts to the Certificate creator.

Custom Certificate uses a pdf creator called TCPDF, which embeds fonts into the PDF file, so that you can view fonts, even though they are not installed on the target machine. This requires you to tell TCPDF which fonts to take.

Importing Fonts into TCPDF is quite simple:

  1. Convert the font you want embedded into the tcpdf format (for example using http://fonts.snm-portal.com or http://www.xml-convert.com/en/convert-tff-font-to-afm-pfa-fpdf-tcpdf)

  2. Put the converted files into the folder: /path/to/moodle/lib/tcpdf/fonts

  3. Use the font in your certificate builder

  4. Enjoy

Please note that inserting a file into the tcpdf folder is considered a "core hack" and might not be available on some commercially hosted systems. Please check your providers agreement on the topic to make sure this is something you're allowed to do.