• Resolved pawanahluwalia

    (@pawanahluwalia)


    Hi,

    I’ve just installed this plugin and am trying to set up an online timed exam. I want to have timed sections for the test. So, for example, I would like to do the following:

    1. Set the test to start at say, 10:00am.
    2. Section 1 needs to be completed within 15 minutes. So that means I want to show section 1 automatically at 10:00am and hide at 10:15am.
    3. Section 2 starts at 10:15am for 10 minutes – so it is displayed at 10:15 and hides at 10:25am.

    And so on:

    In order to do this, could you please clarify:

    1. Do you need to set an “on” time and “off” time separately?

    2. Is is possible to show/hide the content without refreshing the page?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dave Clements

    (@thewanderingbrit)

    1. Yes, the on time and off time both need to be specified.
    2. Unfortunately not. It will work based on when the page was loaded, so once it loads, if the test is showing, it will keep showing until the person closes the page, or refreshes it.
    Thread Starter pawanahluwalia

    (@pawanahluwalia)

    Thanks Dave for your response.

    For the first point, I was asking whether the on and off times needed to be in different shortcodes, but I have now figured it out. I have used the following format which seems to work:

    [time-restrict on=”2020-04-19 14:50:00″ off=”2020-04-19 15:00:00″]my content[/time-restrict]

    For the second point, I have set up an auto refresh on the page, which does the job.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto display/hide content at specified times’ is closed to new replies.