report.html

Jun 01, 2011

So I have my course built and hosted on our site. I customized my report.html to make a prettified certificate of completion. All is well.

Then it happened... The question...

What if someone copies the URL and emails it to others so they can just print the Certificate and add their name and the date/time?

So... How do I fix that? Is there a way to use the strName Var and an If then Else to do a Close() or Window.Close type function? Or maybe some way to show a watermark image or redirect to a blank page closing it if the score is under 80?

10 Replies
Wendy Murphy

Hi Tony,

I have just completed my project. I managed to edit the report.html page.

I realized that indeed there is a flaw.  A 'resourceful' student could click the 'Print Certificate' button multiple times, and print a copy for all their classmates.

I realize this was a question 7 years ago. Any chance that someone has a solution?

I have knowledge of html, however not much in JavaScript editing.  

I'm wondering if there is a way for the 'quiz' file/window to close once someone clicks 'Print Certificate'?

Tony Ludwikowski

I'll look in my old files and check with a guy that still works there. I
may be able to get my files and give more info from that.

The name field slode was added to the quiz. Then i could save itbas a
variable. I can find a link to info on that to send. The tricky part was
modifying a custom report.html file.

Wendy Murphy

Hi Tony,

Again, thanks for the help. Much appreciated. Being able to incorporate a user-entered-field of their full name in the report.html is my goal.

  • I was able to modify the report.html sufficiently enough.   I included the result 'allow user to print' so that's how I got their name initially. 
    I added some text 'met the requirements for this certificate' where I saw an opportunity. (found a <p> &nbsp;</p>

  • I also added an onscreen print button to the report because not everyone knows how to print from a browser.

    <p><a href="javascript:print();"><img src="_PrintThisPage.jpg" alt="print this page" width="115" height="23" border="0" /></a></p>

  • The helpful piece for me, was editing the Results slide. I disabled the 'Allow user to review the quiz'.  That seemed to eliminate a display of all the questions and answers. I didn't want that anyways, so it cleanly eliminated that text and I did not have to modify the report.html in order to do so

While I would like a 'pretty' certificate, I'm working with little time.  I'll try to make a pretty certificate perhaps in 'phase 2' when I have time in September.

Students have to get 100% on this test and display their certificate in order to go on their field placement.  Stakes are high to get this right (and with no students cheating).

thanks!

 

Tony Ludwikowski

So I haven't been able to get my old files. Sad, because if I could you'd be able to just import them to your project and make some mods. 

I did find my notes though and from what I can work out on paper, what I did was...

Create my my quiz. First slide has a text field that saves the input as "learner". I add "learner" to my variables on the quiz. 

I also add "systemdate" and "quizztitle" as variables. 

Each time I use this, I manually set the quizztitle variable for the name of the course.

systemdate is a script and is set as a slide trigger on the final slide where it calculates and passes everything. (screenshot)

var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var dateString=month + "/" + day + "/" + year
var player = GetPlayer();
player.SetVar("SystemDate",dateString);

Now in report.html you just have to add in the "learner", "quiztitle" and "systemdate" variables as javascript inputs. Mine was done as an overlay using an image of the blank certificate. So it had the img then it was something like...

<p> This certifies that <learner> <br>has completed <br><quiztitle> <br>on <systemdate><br><br><br>  (print button down here)

That's where I really wish I had my report.html file because I really can't remember what that code looked like.  I had really stripped report.html down to maybe 30 lines or less if I remember right. If I can get my hands on it I'll add it here.

Anyhow... I then would set my quiz settings so that people had to take the training over if they failed. Doing it this way it sets the name at the beginning and it's passed as a variable; like the scores. So when you go to the url it comes up blank. Only way to fake it then would be SnagIt/PhotoShop on a screen print and try to match font and font size. 

At one point I had a submit button I was working on to log the completion info to a DB so it could be verified and the list could be passed to the people in Ed/Trng that tracked our mandatory stuff.


Leslie McKerchie

So glad that Tony was able to help you out here Wendy. I appreciate you popping back in with an update.

It looks like your email signature came through when you replied via email. Looks like nothing too revealing, but you can remove that if needed by clicking ‘Edit’ beneath your response. Here’s a quick Peek video if you need help.

I just like to make sure users are aware :) 

Heidi Breslow

I think you have the wrong person’s email.

Heidi Breslow | Instructional Designer | Learning Experience Team
Frontline Education | 1400 Atwater Dr., Malvern, PA 19355 | p: 484.328.4127 | Hbreslow@FrontlineEd.com | www.FrontlineEducation.com
This email may contain information that is confidential or attorney-client privileged and may constitute inside information. The contents of this email are intended only for the recipient(s) listed above. If you are not the intended recipient, you are directed not to read, disclose, distribute or otherwise use this transmission. If you have received this email in error, please notify the sender immediately and delete the transmission. Delivery of this message is not intended to waive any applicable privileges.

This discussion is closed. You can start a new discussion or contact Articulate Support.