• Resolved rodarby

    (@rodarby)


    Arno:

    Here is a screenshot of my page with the Timed Content short code inserted:
    https://rodarby3.tinytake.com/sf/MjcyODM3Nl84MTgwOTc3

    I am trying to test your plugin, to better educate me how it works. I have it set so it appears 5 seconds after loading and then disappears after 10 seconds. But, nothing is happening. The page loads and displays as normal. Here is a screenshot of the page, which is the URL above:

    https://rodarby3.tinytake.com/sf/MjcyODM4MF84MTgxMDA2

    I am know I am doing something wrong. I am not a coder, so I am pretty ignorant about such matters. Ultimately, I want to insert a Timed Content code on this page and other pages, that disappear after an hour. These pages are being used as an exam with a one hour time limit. Thanks. -Russ

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    Well – in your screenshot there is no content to show at all.

    [timed-content-client show="0:5:0" hide="0:10:0" display="div"][/timed-content-client]

    This is the relevant part. If you want to put content to be displayed, it has be done inside the shortcode:

    [timed-content-client show="0:5:0" hide="0:10:0" display="div"]
    
    Your timed content goes here.
    
    [/timed-content-client]

    Stuff outside the shortcode will just be ignored by the plugin.

    Edit: also note, that the notation is “minutes:seconds:fade-in/out-time” – so “0:5:0” means “after 5 seconds, fade in/out for 0 milliseconds” and “0:10:0” means “after 10 minutes, fade in/out for 0 milliseconds”.

    So if you want to let something disappear after one our it should be “59:59:0” for 59 minutes and 59 seconds.

    Also be aware, that this is all done in JavaScript – so if any of your exam participants just disables JavaScript in their browser, the content will be visible without time limit. Maybe using a website and relying on a browser only for such a task is not the best idea at all. The proper way would be to handle the exam results on the server and check, if the answer was sent in time and to reject it, if it is too old. But this is way out of scope of this plugin.

    • This reply was modified 6 years, 5 months ago by Arno Welzel.
    Thread Starter rodarby

    (@rodarby)

    Thanks for that ultra-quick response Arno. LOL. Makes sense the content should be inside the short code.

    I don’t think the people taking my exam will be knowledgeable enough to disable the javascript. I will be proctoring them anyway and let them know when time is up, so for right now, it should not be an issue.

    Thread Starter rodarby

    (@rodarby)

    Resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t get short code to work’ is closed to new replies.