×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Pre Sales Question about Certificates

Pre Sales Question about Certificates 12 years 2 days ago #18425

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hello,

I am offering free workshops. When a user completes a workshop I would like for them to be able to download a PDF Certificate. I see you're application mentions certificate but could not demo it. Please provide me access to a demo if this feature exists so I can test and purchase.

Thank you.

Kaleb

Pre Sales Question about Certificates 12 years 2 days ago #18426

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Kaleb,

the certificate generation is based on (your custom) HTML Code and is not exported to PDF (just print).

Best regards,

Yves

Pre Sales Question about Certificates 12 years 2 days ago #18427

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Html output is fine. Are there tokens that can be added to generate the template? Eg. First Name, Last name and date.
Also, can I configure it so that the user can only print/view the certificate when they complete the seminar/workshop. The admin would mark them complete.

Thanks for the replies.

Pre Sales Question about Certificates 12 years 2 days ago #18428

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Aye you can use tokens like name, mail, date, event name and some more.

The certificate can only be accessed after the event ended and the admin authorized the user todo so (or automatically depending on setting).

You are welcome.

Yves

Pre Sales Question about Certificates 12 years 2 days ago #18429

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Nice! Thanks. Will purchase now.

Pre Sales Question about Certificates 12 years 2 days ago #18430

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hello! Everything works great but I don't see where I can add more certificates. I can only add one.

I have two categories

Workshop 1

Workshop 2

and need a separate certificate for each. Each event may require a separate certificate. Please let me know if this is possible.

I tried to do this with OSG Seminar using their invoice templates. I use the invoice as Certificate instead. It works but I'm unable to get it show up only when the user's status is set to PAID, which for my purpose PAID would be considered Complete.

joomlacode.org/gf/project/com_seminarman...owse&thread_id=24184

I couldn't get it working so I tried your component. Hopefully your component can do this.
Thank you.

Kaleb

Pre Sales Question about Certificates 12 years 2 days ago #18435

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Kaleb,

hmm currently it is only possible to have one certificate template for all events. With one of the next versions, it will be possible to completly customize the certificate for every single event.

But when you have only two categories it is pretty easy to adjust the code for your needs. If you like, you could add me on Skype (yves.hoppe) and i guide you through it.

Best regards,

Yves

Pre Sales Question about Certificates 12 years 2 days ago #18448

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Thank you Yves.

Unfortunately I'll need a total of 5 certificates.

Workshop 1 has one certificate

and

Workshop 2 has four parts and four certificates.

I'm definitely willing to work with you on Skype to resolve this.

If you think it will be faster, maybe you can help me resolve the workaround with OSG. I believe it requires two lines of code. I'm just not good with PHP...yet. Whatever you prefer.

LINK to osg thread

If not, please let me know when you're available on Skype and I'll contact you.

Thank you again for your help. I appreciate your time.

Kaleb

Pre Sales Question about Certificates 11 years 11 months ago #18460

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hello Yves,

Just wondering if you had a chance to look at the certificate solution and if you will have time this weekend or next. Please let me know. Thank you.

Pre Sales Question about Certificates 11 years 11 months ago #18461

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Kaleb,

sorry thought you are going to contact me on Skye (yves.hoppe) - i don't know OSG, but you only need to modify one file for this in Matukio:

components/com_matukio/printeventlist/tmpl/certificate.php

Beginning on line 31 you have to insert some if clauses depending on the category or workshop id. For example:

if ($booking->semid == X) {
$html .= "ZERTIFICATE HTML CODE 1 ";
} else if ($booking->semid == Y) {
$html .= "ZERTIFICATE HTML CODE 2 ";
} ($booking->semid == Z) {
etc.
}

Best regards,

Yves

Pre Sales Question about Certificates 11 years 11 months ago #18462

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Thanks! I may need 5 certificates. So I just add more "else if" statements for additional certificates?

Also, does this code add an extra field in the backend for creating my additional certificates?

Thanks again.

Pre Sales Question about Certificates 11 years 11 months ago #18463

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Aye just add as many else if statements as you need.

No this is not adding extra fields in the backend (you are modifying the frontend) - you have to change / add the certificates html code there.

You are welcome,

Yves

Pre Sales Question about Certificates 11 years 11 months ago #18464

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Ok.

sorry. I'm unclear where to add new certificates then. In Configuration / Advanced there is only one field where I can edit and design my certificate. The field labeled HTML-Code of the certificate.

Where do I create the HTML for the other certificates I'm putting in my if clause?

Pre Sales Question about Certificates 11 years 11 months ago #18465

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Please ignore. I understand it now.

Thanks again!

Pre Sales Question about Certificates 11 years 11 months ago #18499

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hello,

I need a little help with the tokens for the certificate. I'm trying to get the Title, First name and Surname to show up, but it just shows up as

COM_MATUKIO_FIELDS_TITLE COM_MATUKIO_FIELDS_FIRST_NAME COM_MATUKIO_FIELDS_SURNAME

Please let me know how to output these values. Thank you.
/*testing cert script*/
if ($booking->semid == 1) {
$html .= '<div style="position: absolute; top:0; left:0; z-index: 0; height: 811px; width: 1050px; overflow: none;">
<div style="position: absolute; top:0; left:0; z-index: 1; width: 1050px; height: 811px;">
<img src="images/mc.jpg" height="811px" width="1050px" border="0"/>
</div>
<div style="position: absolute; top:0; left:0; z-index: 2; padding-top: 200px; width: 1050px; height: 611px; text-align: center; color: #666666; font-family: Trebuchet MS,sans-serif; ">
<div style="font-size: 36px;">Taller</div>
<div style="font-size: 18px;">en Carolina</div>
<div style="font-size: 20px;">Proyecto Tí­tulo V</div>
<div style="font-size: 15px;">Certificado de Participación otorgado a:</div>
<div style="font-size: 28px;"><br />COM_MATUKIO_FIELDS_TITLE COM_MATUKIO_FIELDS_FIRST_NAME COM_MATUKIO_FIELDS_SURNAME</div>
<div style="font-size: 15px; font-style: italic;"><p>Por su participación en el Taller de Moodle </p>
<p>Plataforma Para Cursos en Lí­nea</p>
<p>1.5 horas</p>
</div>
<div style="position: absolute; bottom: 100px; right: 150px; z-index: 2;" >Nombre del Director,<br />Director</div>
</div>
</div>';
} else if ($booking->semid == 2) {
$html .= 'ZERTIFICATE HTML CODE 2';
} else {
$html .= JTEXT::_('SEM_0056');
 
}

Pre Sales Question about Certificates 11 years 11 months ago #18539

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Just a friendly bump. please help when you can. Thanks in advance.

Pre Sales Question about Certificates 11 years 11 months ago #18541

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi,

sorry over read your question.

If you take a look at the replaceSEMConstants function, which is executed at the end of the file, you can see all available constants.

They are currently all named SEM_*. For the name of the participant (theres only full name, not first- and surname), you can use for example SEM_NAME.

As i said before, with version 2.2 a new certificate template system, where you can use all available user fields etc. is going to be integrated.

Best regards,

Yves

$html = str_replace('SEM_IMAGEDIR', MatukioHelperUtilsBasic::getComponentImagePath(), $html);

$html = str_replace('SEM_BEGIN_EXPR', JTEXT::_('COM_MATUKIO_BEGIN'), $html);
$html = str_replace('SEM_END_EXPR', JTEXT::_('COM_MATUKIO_END'), $html);
$html = str_replace('SEM_LOCATION_EXPR', JTEXT::_('COM_MATUKIO_CITY'), $html);
$html = str_replace('SEM_TUTOR_EXPR', JTEXT::_('COM_MATUKIO_TUTOR'), $html);
$html = str_replace('SEM_DATE_EXPR', JTEXT::_('COM_MATUKIO_DATE'), $html);
$html = str_replace('SEM_TIME_EXPR', JTEXT::_('COM_MATUKIO_TIME'), $html);

$html = str_replace('SEM_COURSE', $row->title, $html);
$html = str_replace('SEM_TITLE', $row->title, $html);
$html = str_replace('SEM_COURSENUMBER', $row->semnum, $html);
$html = str_replace('SEM_NUMBER', $row->semnum, $html);
$html = str_replace('SEM_ID', $row->id, $html);
$html = str_replace('SEM_LOCATION', $row->place, $html);
$html = str_replace('SEM_TEACHER', $row->teacher, $html);
$html = str_replace('SEM_TUTOR', $row->teacher, $html);

$html = str_replace('SEM_BEGIN', JHTML::_('date', $row->begin, MatukioHelperSettings::getSettings('date_format', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_BEGIN_OVERVIEW', JHTML::_('date', $row->begin, MatukioHelperSettings::getSettings('date_format', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_BEGIN_DETAIL', JHTML::_('date', $row->begin, MatukioHelperSettings::getSettings('date_format', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_BEGIN_LIST', JHTML::_('date', $row->begin, MatukioHelperSettings::getSettings('date_format_small', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_BEGIN_DATE', JHTML::_('date', $row->begin, MatukioHelperSettings::getSettings('date_format_without_time', 'd-m-Y')), $html);
$html = str_replace('SEM_BEGIN_TIME', JHTML::_('date', $row->begin, MatukioHelperSettings::getSettings('time_format', 'H:i')), $html);
$html = str_replace('SEM_END', JHTML::_('date', $row->end, MatukioHelperSettings::getSettings('date_format_small', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_END_OVERVIEW', JHTML::_('date', $row->end, MatukioHelperSettings::getSettings('date_format_small', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_END_DETAIL', JHTML::_('date', $row->end, MatukioHelperSettings::getSettings('date_format_small', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_END_LIST', JHTML::_('date', $row->end, MatukioHelperSettings::getSettings('date_format_small', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_END_DATE', JHTML::_('date', $row->end, MatukioHelperSettings::getSettings('date_format_without_time', 'd-m-Y')), $html);
$html = str_replace('SEM_END_TIME', JHTML::_('date', $row->end, MatukioHelperSettings::getSettings('time_format', 'H:i')), $html);
$html = str_replace('SEM_TODAY', JHTML::_('date', $neudatum, MatukioHelperSettings::getSettings('date_format_without_time', 'd-m-Y')), $html);
$html = str_replace('SEM_NOW', JHTML::_('date', $neudatum, MatukioHelperSettings::getSettings('time_format', 'H:i')), $html);
$html = str_replace('SEM_NOW_OVERVIEW', JHTML::_('date', $neudatum, MatukioHelperSettings::getSettings('date_format', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_NOW_DETAIL', JHTML::_('date', $neudatum, MatukioHelperSettings::getSettings('date_format', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_NOW_LIST', JHTML::_('date', $neudatum, MatukioHelperSettings::getSettings('date_format_small', 'd-m-Y, H:i')), $html);
$html = str_replace('SEM_NOW_DATE', JHTML::_('date', $neudatum, MatukioHelperSettings::getSettings('date_format_without_time', 'd-m-Y')), $html);
$html = str_replace('SEM_NOW_TIME', JHTML::_('date', $neudatum, MatukioHelperSettings::getSettings('time_format', 'H:i')), $html);

$html = str_replace('SEM_NAME', $user->name, $html);
$html = str_replace('SEM_EMAIL', $user->email, $html);

Pre Sales Question about Certificates 11 years 11 months ago #18550

  • Kaleb Camacho
  • Kaleb Camacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Thanks again for the help! I'll give that a shot.
  • Page:
  • 1
Time to create page: 0.162 seconds