Project

General

Profile

Feature #7322

Default certificate template

Added by Yannick Warnier about 5 years ago. Updated about 5 years ago.

Status:
Feature implemented
Priority:
Normal
Assignee:
Category:
Gradebook / Evaluaciones
Target version:
Start date:
11/10/2014
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Preparar una plantilla de certificado HTML para la herramienta gradebook, para que los docentes no tengan que trabajar tanto para usar la herramienta de certificados.


Related issues

Related to Chamilo LMS - Feature #7358: Option for students to generate their certificates in PDF formatFeature implemented29/10/2014

Actions

Associated revisions

Revision d400811e (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Register default certificate - refs #7322

Revision 10ed78e7 (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Add files for default certificate template - refs #7322

Revision 03db46ad (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Add template to fckeditor - refs #7322

Revision 1e2c392e (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Fix certificate template - refs #7322

Revision 40791ff6 (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Generate the default certificate - refs #7322

Revision 2a1985ca (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Fix E_STRICT message - refs #7322

Revision 60332d0d (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Fix template for generate the certificates to PDF - refs #7322

Revision fa47030c (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Delete unnecessary CSS file - refs #7322

Revision 64bdb247 (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Add template thumb - refs #7322

Revision c8892878 (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Fix paths in template - refs #7322

Revision 59fcfd02
Added by Yannick Warnier about 5 years ago

Merge pull request #409 from AngelFQC/7322

Add default certificate - refs #7322

Revision 44d94ef5 (diff)
Added by Yannick Warnier about 5 years ago

Update default text for default certificate - refs #7322

Revision b216e67a (diff)
Added by Yannick Warnier about 5 years ago

Update image names and paths for default certificate - refs #7322

Revision 81c45c62 (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Fix paths in default certificate template - refs #7322

Revision cc31da37 (diff)
Added by Angel Fernando Quiroz Campos about 5 years ago

Fix images path - refs #7322

Revision 0ab13e7c
Added by Yannick Warnier about 5 years ago

Merge pull request #421 from AngelFQC/7322

Fix images path - refs #7322

History

#1

Updated by Yannick Warnier about 5 years ago

  • Assignee changed from Alex Aragon to Angel Quiroz
#2

Updated by Alex Aragon about 5 years ago

  • File certificado.png added

Modelo de plantilla.

#3

Updated by Alex Aragon about 5 years ago

  • File certificado_dos.png added

Modelo según code de llamadas.

((user_firstname))
((user_lastname))
((gradebook_institution))
((gradebook_sitename))
((teacher_firstname))
((teacher_lastname))
((official_code))
((date_certificate))
((date_certificate_no_time))
((course_code))
((course_title))
((gradebook_grade))
((certificate_link))
((certificate_link_html))
((certificate_barcode))

#4

Updated by Alex Aragon about 5 years ago

  • File certified.zip added

Template html certificado.

#5

Updated by Angel Quiroz about 5 years ago

De momento, estoy copiando el template (sólo el html) del certificado dentro del directorio document/certificate de cada curso que se crea. Y registrándolo dentro la tabla c_document. Me falta hacer que se convierta en certificado predeterminado y se pueda editar.

https://github.com/AngelFQC/chamilo-lms/tree/7322

#6

Updated by Angel Quiroz about 5 years ago

  • % Done changed from 0 to 10

Sigo registrando el template del certificado dentro de los cursos
Por otro lado, al agregar la plantilla del certificado para que sea editado con fckeditor, siempre se mostrará, así no se haya estado en la herramienta de certificados

#7

Updated by Angel Quiroz about 5 years ago

Cambié la forma de listar las plantillas en fckeditor. Ya que las plantillas se obtienen desde la base de datos. Para agregar la plantilla del certificado se lee el contenido del archivo html de la plantilla y se agrega como un item más al XML

También actualicé el registro para que cuando se ingrese a la herramientas de certificados, sea ahí que se registre el certificado por defecto (si no se ha definido uno)

Falta comprobar que se genere el certificado con esta nueva plantilla.

#8

Updated by Angel Quiroz about 5 years ago

Se registra el certificado por defecto y aparece listado.

Se generan los certificados de acuerdo a la plantilla. Pero cuando se exporta a PDF las imágenes no aparecen

Rama actualizada: https://github.com/AngelFQC/chamilo-lms/tree/7322

#9

Updated by Daniel Barreto about 5 years ago

Help to find export PDF error

This occurs because the source for stylesheet and images starts with "/main", and this file is generated into user folder
(e.g main/upload/users/3/37/certificate/19ca14e7ea6328a42e0eb13d585e4c22.html).

This could be fixed if add WEB_PATH to sources

#10

Updated by Angel Quiroz about 5 years ago

  • % Done changed from 10 to 40

Corregí el problema de la plantilla al exportar a PDF

PR: https://github.com/chamilo/chamilo-lms/pull/409

#11

Updated by Angel Quiroz about 5 years ago

  • Status changed from Assigned to Needs testing
  • Assignee deleted (Angel Quiroz)
#12

Updated by Angel Quiroz about 5 years ago

PR actualizado para corregir rutas

#13

Updated by Yannick Warnier about 5 years ago

  • Status changed from Needs testing to Assigned
  • Assignee set to Angel Quiroz
  • % Done changed from 40 to 60

He tratado de modificar las rutas para poner las imágenes en main/img/. Se ve bien en la previsualización del certificado, pero al generar un certificado real para un alumno, se generan mal las rutas.

Ejemplo:

                                    <td>
                                        <img src="http://my.chamilo19.nethttp://my.chamilo19.net/main/img/side-bar.png" alt="Side bar">
                                    </td>
                                    <td>
                                        <img src="http://my.chamilo19.nethttp://my.chamilo19.net/main/img/side-top-a.png" alt="Side top element a">
                                    </td>
                                    <td>
                                        <img src="http://my.chamilo19.nethttp://my.chamilo19.net/main/img/certificate-logo.png" alt="Certificate logo">
                                    </td>
                                    <td>
                                        <img src="http://my.chamilo19.nethttp://my.chamilo19.net/main/img/side-top-b.png" alt="Side top element b">

#14

Updated by Yannick Warnier about 5 years ago

Esto sucede únicamente con la plantilla de certificado por defecto. Un certificado nuevo no tiene el problema.

#15

Updated by Angel Quiroz about 5 years ago

Solucioné el problema con las plantillas
Pero en la lista de certificados, cuando se exporta la vista previa del certificado a PDF (sin datos de usuario), la imágenes no se muestran (a excepción del fondo)

https://github.com/angelfqc/chamilo-lms/tree/7322

#17

Updated by Yannick Warnier about 5 years ago

  • Status changed from Assigned to Feature implemented
  • % Done changed from 60 to 100

Checked, merged, and closing. Thanks.

#18

Updated by Yannick Warnier about 5 years ago

  • Subject changed from Plantilla de certificado to Default certificate template
  • Status changed from Feature implemented to Assigned
  • % Done changed from 100 to 80

Angel, estoy re-abriendo esta tarea. En la #7325, un usuario reporta que cuando instala Chamilo en una subcarpeta de su dominio, el PDF se ve bien pero el HTML se rompe (ver captura número 3 en la otra tarea).

#19

Updated by Angel Quiroz about 5 years ago

  • Status changed from Assigned to Needs testing
  • Assignee deleted (Angel Quiroz)
  • % Done changed from 80 to 90
#20

Updated by Tomas Rodrigues about 5 years ago

  • File certificado_alpha.jpg added
  • File certifcado_alpha_pdf.jpg added

Olá,
Realizei as alterações nos arquivos: document.php e gradebook_functions.inc.php o resultado é este.
chamilo alpha.1.
Gerar certificado - esta ok.
Importar certicado em pdf - não.
!!
!!
att.
Marcelo Bassuma

#21

Updated by Yannick Warnier about 5 years ago

  • Status changed from Needs testing to Feature implemented
  • Assignee set to Angel Quiroz
  • % Done changed from 90 to 100

Marcelo Bassuma wrote:

Olá,
Realizei as alterações nos arquivos: document.php e gradebook_functions.inc.php o resultado é este.
chamilo alpha.1.
Gerar certificado - esta ok.
Importar certicado em pdf - não.
!!
!!
att.
Marcelo Bassuma

Importar certificados solo se puede hacer en HTML. No hay opción de PDF, pero puedes registrarlo como una nueva petición/tarea.

#22

Updated by Tomas Rodrigues about 5 years ago

ok

#23

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (certifcado_alpha_pdf.jpg)
#24

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (certificado_alpha.jpg)
#25

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (certified.zip)
#26

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (certificado_dos.png)
#27

Updated by Tomas Rodrigues over 4 years ago

  • File deleted (certificado.png)

Also available in: Atom PDF