Forum Discussion
Example files: Generating a certificate from Storyline
This example demonstrates how you can take user input and generate a certificate for printing. Any Storyline variable or score can be used to generate the output. The file and file add-ins are both simple and straight forward. This will only work in the Flash based output. This will not work in the iOS output or HTML5.
To replicate this on your end:
1) Modify the story file to your liking.
2) Extract the add-in zip file above (certificate.html and certificateBG.gif)
3) Copy these two files into your published output directory. You'll need to do this each time you publish.
This is a really basic example. You really can do quite a bit with this including adding a print button, extra fields, collecting values from the LMS like the user's first and last name.
** I noticed a bug when playing with this file setup. I initially thought I would be able to include the certificate files as resources to avoid copy / paste surgery after publish. Unfortunately, Storyline mangled the HTML file on publish. Will be submitting this as a bug.
- DanielDavidCommunity Member
Hi,
I am trying to get his work, but can't even make Steve's files work.
This might be silly but which is the "published output directory"? Since SL saves one file and uses only that how can I get it to use a certificate ".html file? I guess I have to break the file, publishing it to web maybe? But how do I convert i back to ".story" file to be able to use it again?
I have no IT background whatsoever, so to change html files or javascript I would have to get a professional to come and help me but I would prefer to find a solution for this myself.
- DaveFulleCommunity Member
Hi Daniel,
I'm a little confused when you say SL only has one file. You'll need to publish the course (to LMS) and then your published output directory is the folder that is created from the publish. There are a bunch of files created. You'll need to put Steve's HTML file and Certificate graphic into that output directory.
I had to go into your HTML file, change learner name get VAR from "learner" to "TextEntry7" since this changes for me with every course created. I also had to change the file name of the graphic from "certificateBG.gif" to "CertificateBG.gif" to match what the HTML file was calling. After doing that, the name was called in properly, the background displayed, and everything printed (on the LMS - not locally)!
You can edit the HTML file in Word, notepad++ or something similar - you shouldn't need a "professional".
I hope this helps.
- DanielDavidCommunity Member
Thank you Dave & Nancy,
It is a lot clearer now. I changed the file name to match what the .html refers to.
I published the file to LMS and copied the files in the published output directory. I have made the changes about the learner name, but now how do I uploaded it to Articulate Online? Online only accepts one file so now I have to change this Published output directory and all it's content into one file that Articulate Online accepts or SL opens.
- NancyWoinoskiSuper Hero
Hi Daniel - I think you just have to zip the published output directory and upload the zipped file to Articulate Online.
- SteveFlowersCommunity Member
For Articulate Online, you can either use the direct publish option or configure SL to enable manual upload. This will generate a .SL file. Change the extension to .ZIP, unzip it. Then do your magical surgery magic (add your post publish files). Then rezip, change the extension back to .SL. Manually upload this package to AO and Bob's your uncle.
- DanielDavidCommunity Member
I will do that.
Thank you once again for your help.
I have found an other way to work this out, so once I put together a step by step guide I will test it and post the guide here. Hopefully by the end of today.
- DanielDavidCommunity Member
Hi,
Asan addition to Steve's solution I have found another one based on the screenerJustin Wilcox recorded for Quizmaker (all credits to Justin). The principle isthe same. I have tested it and it works like a charm in storyline.
Nowthe "report.html" file was modified by somebody else but if you knowhow to write/amend .html files than you can do it yourself. You need to set up instoryline to "Print Results" at the end from the Results screen, thanit will generate a "report.html" file that you can modify.
Pleasefind the steps below on how to do this:
1. Enable Manualupload from Storyline Options. (select “Enable publishing for manual upload toArticulate Online”)
2. Enable manualupload from Articulate Online/Settings/Other Settings/Enable manual uploading(follow this link: http://receptionacademy.articulate-online.com/Settings/?Cust=53896)
3. Download 7zipFile Manager (http://www.7-zip.org/) andinstall to your PC
4. DownloadNotepad++ (http://notepad-plus-plus.org/)and install to your PC
5. After the firstfour steps:
6. Add to resultpage a button with the trigger set “Print results” and style it to your liking
7. Publish thecourse to Articulate Online but with the following changes:
a. Change URL to
b. Specify preferredfolder to publish
c. Publish
d. This willcreate a folder called “ output” including “.sl1”file
8. Right click onthe published file (“.sl1” file) and extract it with 7zip File Manager. Thiswill create a folder called “” including other folders (like story_contentfolder) and other .html files
9. Go to publishedfolder and find story_content/report.html file.
10. Modify thisfile to your preference using Notepad++ (or Any other program, I am sure thereare many more) Please keep in mind that we couldn’t figure out how to changethe course name on the certificate automatically, so you will have to do thismanually every time you post.
a. To change thecourse name in the “report.html” file find this line:
varstrTitle = g_listQuizzes[g_oPrintOptions.strMainQuizId].strQuizName;
b. And change itto this:
varstrTitle = "Course Name";
c. If anybodyknows how this can be solved I would be happy to know
11. Oncereport.html file is modified highlight every file and folder in the folder, right click on it and in 7zip compress it to .zipfile
12. Once compressedchange the file extension from .zip to .sl1 and
13. Ta-Daaaaa youhave your file to manually upload to Articulate Online from ArticulateOnline/Content/Manual upload with your very own certificate.
Hope this is helpful andclear. (This is the first time I am doing this.)
To see the originalscreener from Justin Wilcox https://player.vimeo.com/video/145576223
To see my screener follow this link: https://player.vimeo.com/video/204932053
- Download modified report.html file
- Download .story file
- Download the guide for this
- See it in action
Daniel
- SheraliJiwaniCommunity Member
Is anyone send me PPP samples for Articulate
- SophiaXu1Community Member
Hi Steve:
Great tutorial.
I wonder if you can post some tutorials on how you designed a customized certificate which can be used for this case?
Thank you
Sophia
- KateAtkinsonCommunity Member
Hi everyone, is there any way of pulling the variables from the Storyline project eg: Name, result score directly into the certificate without using an LMS? I am developing a flash published Storyline file that runs of a CD and want the user to be able to print a certificate after passing the end assessment reflecting their results & name.
Any suggestions?