Forum Replies Created

Viewing 15 posts - 1 through 15 (of 229 total)
  • Author
    Posts
  • #295015 Score: 4
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    Three steps:

    1. In Lectora, go to “Tools > Resources > Unused tab > Remove all”. This will remove all references to unused images from the title (but will leave the images on your disk).

    2. In Lectora, go to “File > Export > As ZIP file”. Save the zip file somewhere. This will export ONLY the images referenced in your title, none of the unused images will be in the zip archive.

    3. Remove the original /images/ folder and replace it with the /images/ folder from the zip file.

    This post has received 4 votes up.
    #301614 Score: 4
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    You don’t need JQuery for this at all.

    1. As described above, add a class to all non-printable items, let’s say “noprint”.
    2. Create an external HTML object, set it to META TAGS, edit and paste this:

    @media print
    {    
        .noprint, .noprint *
        {
            display: none !important;
        }
    }

    3. Voila.

    All styles marked with “@media print” are only applied when a browser renders the page for printing. You can do A LOT using this technique. E.g. show a copyright / confidential watermark that isn’t visible on computer screen.

    This post has received 4 votes up.
    #294852 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    jk

    🙂

    This post has received 3 votes up.
    #327691 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    And also can we please have monospace font where 1,I,l and O,0,o don’t look the same.

    #developerbrains #monospace #bringtagstocommunity #hashtagabuse

    This post has received 3 votes up.
    #298687 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    Hold ALT button while dragging to only move a single object.

    This post has received 3 votes up.
    #287607 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    Is the course opened in a pop-up from your LMS? If yes, there should be a setting in the LMS to select the popup size.

    However, you can also do in Lectora: On Show > Execute JavaScript > “window.resizeTo(200,200);”. It will load the course and then resize it to 200px by 200px.

    This post has received 3 votes up.
    #308500 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    There are two ways to add external web content to Lectora. For non-technical authors, there’s Web Window. Just insert it, type in the URL, click OK. For more technical people, there’s External HTML Object. Just insert it, set it to Custom Div, type in whatever HTML code you want (e.g. the code for iframe).

    I recorded a 2-minute video for you showing both approaches: https://www.youtube.com/watch?v=3nc7FNzpr1w

    As for PHP, you have to use the <? or <?php format and upload the files to a PHP server before you preview. Lectora’s preview will not execute PHP for you.

    Also, choosing a YouTube link for experimenting with iframe embeds is a bad decision because YouTube does not allow embedding its videos in this way. It will not work in Lectora, outside Lectora, or anywhere else. You should use the following link format: https://www.youtube.com/embed/3nc7FNzpr1w – note the “embed” part in it.

    This post has received 3 votes up.
    #296297 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    Shannon, these new blue buttons are due to the new way Lectora 12 renders buttons. In Lectora 11, invisible buttons were a special class of buttons, which had no images associated with them. In Lectora 12, invisible buttons are exactly the same buttons as other graphical buttons, only set to transparent. So they have these 4 images associated with them, just like normal visible buttons.

    This change from 11 to 12 has zero impact on your course functionality but has upside and downside.

    Upside: less button types means less code and less bugs.
    Downside: publishing takes longer, course size grows a bit and your images in the /images/ folder are now hidden among dozens of auto-generated blue buttons.

    AFAIK Trivantis are aware of that inconvenience and will be looking into solving it one way or another. Possible steps solution (if I were to do it):
    1. No re-rendering of buttons on each publishing (even when “publish only updated pages” is checked)
    2. Moving all button graphics to /images/buttons/ to keep them separate from the rest of the graphics

    However, it never hurts to send a short email to Laura Silver or Daryl Fleary to make sure your voice is heard as well.

    This post has received 3 votes up.
    #296364 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    Lectora does not allow you to process a question more than once unless its value has changed. It detects the value change through the “onchange” and “onkeyup” listeners on the input field. So it marks the question as “processed” right after you first click on ‘Absenden’ and will ignore any further presses on that button. Lectora marks the question as “unprocessed” as soon as you type anything in the field (and thereby trigger onchange/onkeyup). Just setting the text input field to another value does not trigger any of those events. This is why your script won’t work.

    So if you want to manipulate the question through script, you have to add one extra line to your correctanswer() function to make sure the question can be processed again:

    function correctanswer() {
    qu40.hasBeenProcessed = false; //qu40 is your question's unique id in Lectora
    VarFrage_0001.set('1');
    document.getElementById('entry43id').value='1' ;
    }
    This post has received 3 votes up.
    #316464 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    Normal Lectora actions are Play, Pause, Stop and Toggle Play/Pause. So you cannot jump to a random place in a file. If you could jump to a random place in a file, your Event 2 would just need to be set to “Pause”. Okay, let’s build a “jump to a random place” function 🙂

    In Lectora 16.1.x with the new awesome MediaElement player, it is as easy as running one line of code in a Run Javascript action: “mejs.players.mep_0.setCurrentTime(20)”. If you have more than one media player on the page, you might need to change mep_0 to mep_1, mep_2 and so on. And “20” is the time on the playhead in seconds. You can also enter decimals e.g. “20.4”

    Here’s a feature request (ping @support) – “Jump to a point in time” action for audio/video elements.

    This post has received 3 votes up.
    #325890 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    Part 1/5 of Sneaky Lectora Tricks proposes just that, a DevMode button: http://trivantis.com/blog/downright-sneaky-lectora-tricks-part-1-build-backdoor-course/

    This post has received 3 votes up.
    #296520 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    Every Lectora’s page is a separate HTML document. When navigating between pages, all scripts are loaded from scratch, all data is lost. Lectora uses Variable Manager to keep variables between pages. I never looked into how it works exactly, I just trust it to work. I assume it uses cookies (see attached screenshot).

    So whenever I use JS arrays on a page, I serialize them and store in a Lectora variable before navigating away. Then when I need them on a different page, I read that variable and de-serialize the string into an array, using .split() and .join() respectively.

    This post has received 3 votes up.
    #297942 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    It is now “Ctrl+Return” for line breaks in button text.

    Generally speaking, a few biggest improvements in Lectora for me were the ability to place stuff outside the page, the ability to crop and rotate images right in Lectora and the fact that the Preview now runs in what essentially is a built-in Chrome browser, so all extra embedded content, scripts and styles work and everything looks exactly like on the web.

    This post has received 3 votes up.
    #296584 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    Yay, the bug with wrong background when editing textboxes has been nailed!

    This post has received 3 votes up.
    #296827 Score: 3
    Profile photo of Sergey Snegirev
    Sergey Snegirev
    Member
    contributor
    intermediate
    advanced
    friend finder
    lab member
    junior moderator
    advocate
    LUC16
    LUC16 Attendee
    wise owl
    335 pts
    @ssneg

    Hi, I’ve created a free and open-source search engine for Lectora, available on Github: https://github.com/SergeySnegirev/lectora-search-engine (live demo here: http://bit.ly/searchlectora)

    Feel free to use it in any way you want.

    This post has received 3 votes up.
Viewing 15 posts - 1 through 15 (of 229 total)

Sergey Snegirev

Profile picture of Sergey Snegirev

@ssneg

active 10 months, 2 weeks ago