• Resolved Ari123

    (@ucdguy)


    Hi!

    This is is somewhat of a follow up to this question about forcing the start of the week to be “today”.

    Rather than doing that, is it instead possible to still show past events in the week view (but transparent like fully booked events)?

    For example, in this image, instead of showing all of that grey empty space to a visitor, is it possible to still show the events that occurred on those days, albeit transparent and unclickable?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author yoancutillas

    (@yoancutillas)

    Hello, yes it is!
    Go to Booking Activities > Booking forms > your form > Calendar settings > Avialability tab > Display past events = ON.

    Thread Starter Ari123

    (@ucdguy)

    Hi,

    Thank you for the quick reply!

    I don’t see the “display past events” option on that tab.

    View post on imgur.com

    Is this caused by a plugin conflict, or is there some setting that’s causing it not to show?

    Thanks!

    Plugin Author yoancutillas

    (@yoancutillas)

    Indeed, sorry, it is not compatible with the “At the latest” option.
    The “Display past events” option will appear after you empty the “At the latest” option.

    Thread Starter Ari123

    (@ucdguy)

    Hi,

    Thanks for the clarification!

    So, I can only show past events if I allow for my events to be booked last minute? Is there logic behind that? It seems like it would be quite a trivial thing to allow for it to work with that option enabled – simply redefine a past event as starting before current time - at the latest time difference rather than current time.

    Plugin Author yoancutillas

    (@yoancutillas)

    Not that simple unfortunately, it is not a display problem, but a SQL query problem.
    – by using the “At the latest” option, you tell the system to retrieve events starting in at least n days / hours / minutes
    – by using the “Display past events”, you tell the system to retrieve the past events
    Both instructions cannot be true at the same time.

    Thread Starter Ari123

    (@ucdguy)

    Thanks again for your reply!

    I know nothing about SQL so perhaps the question that I’m about to ask doesn’t make sense.

    “by using the “Display past events”, you tell the system to retrieve the past events”

    Can you not use some conditional statements there to define what is meant by a past event?

    if "display past events = on"{
    
       if “at the latest = on” {
          "retrieve and display events older than n days / hours / minutes as past events"
          "retrieve and display all other events as future events"
       }
    
       else {
          "retrieve and display events that have already started/ended as past events"
          "retrieve and display all other events as future events"
       }
    
    }
    
    else {
    
       if “at the latest = on” {
          "retrieve and display events starting in at least n days / hours / minutes or later as future events"
       }
    
       else {
          "retrieve and display events starting now or later as future events"
       }
    }
    • This reply was modified 2 years, 4 months ago by Ari123.
    Plugin Author yoancutillas

    (@yoancutillas)

    Well sure, it is possible to make these options work together with some code,
    but this feature doesn’t exist yet, I have added your vote for this feature request, thank you!

    Thread Starter Ari123

    (@ucdguy)

    Awesome, I look forward to it hopefully appearing in a future release.

    Thanks again! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Week view – show past events’ is closed to new replies.