• Resolved BenjaminT

    (@benjamint)


    Dear All,

    I reported this feature in a separate thread (https://ww.wp.xz.cn/support/topic/strange-behavior-for-an-expanded-event?replies=17) but I am finally not sure what it is the same problem. Hence starting a new thread.

    I designed it a couple a months ago to display my events (for example paintings exhibition) in the following way:
    1. “Du 1/12 au 31/01” (“From 12/1 until 01/31” in french) when the event is not yet started
    2. “Jusqu’au 31/01” (“Until 01/31”) when the event is started. This should appear only once at the top of the list.

    It worked nicely until recently with:
    [if-multi-day] [if-not-started]
    Du [start-date] au [end-date]: [event-title]
    [/if-not-started] [/if-multi-day]
    [if-multi-day][if-started]
    Jusqu’au [end-date] – [event-title]
    [/if-started][/if-multi-day]

    But now, in case #2 ([if-started]), it no longer works.
    If the “multiple day events shown everyday” option is not activated, nothing is displayed.
    If it is activated (as now), one can see an entry in each calendar day:
    http://www.tres-cloitres.org/?page_id=10 (check entry starting on 1st od December)
    But none in the right side bar nor in the list display:
    http://www.tres-cloitres.org/?page_id=209
    http://www.tres-cloitres.org/
    I am using version 2.1.7 with wordpress 3.9.3

    Many thanks for the continuous efficient support,

    Benjamin

    https://ww.wp.xz.cn/plugins/google-calendar-events/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter BenjaminT

    (@benjamint)

    Hi again,

    Short follow up on this.
    I thought having found a solution by requesting a display start date 45 days ago, adding a conditional short code [if-ended] at the beginning of event constructor (and closiing it at the very end) and removing the “Expanded event display each day” option.
    This sounds logical and it almost works:
    http://www.tres-cloitres.org/?page_id=209

    But remains some blank line. I don’t know where it comes from (even checking the text editor).

    If anybody could remove this blank line, I would be delighted.

    Thanks a lot,

    benjamin

    Thread Starter BenjaminT

    (@benjamint)

    Just to avoid confusion. The link stated in first post are no longer relevant, as I switch to the config of the 2nd post that is closer to a solution.
    But if you want to debug on post #1, I can revert the config!

    Thanks

    benjamin

    Plugin Contributor Nick Young

    (@nickyoung87)

    @benjamint,

    Thanks for all the info, I will take what you have given me and see if I can find out what’s going on. I will keep you posted.

    THanks!

    Plugin Contributor Nick Young

    (@nickyoung87)

    @benjamint,

    Sorry for the late reply here. I want to make sure I follow this all correctly. So is the main issue that it is not showing at the top of the list? Or is it more an issue that the event builder shortcodes don’t seem to work?

    Thread Starter BenjaminT

    (@benjamint)

    Dear Nick,

    Many thanks for the follow up. There are indeed two things:
    1. if a multi-day event already started (before today), it no longer appears at the top of the list by default. In my memories, it worked in the past.
    A possible workaround consists in defining the start date as N days before today (60 for example) and add condition shortcodes to get rid of the past events that already ended (as we don’t want to have them still shown).

    2. The solution detailed in #1 basically works. This is the one currently implemented on my website: http://www.tres-cloitres.org/
    The events quoted “Jusqu’au” (“until” in French) are multi-day events already started. They appear as expected.
    There are however 2 esthetic features associated to the [if-not-ended] condition shortcode. Indeed, for events already ended, appears a blank line (in list view) or an empty box (in calendar view).
    See for example the list : http://www.tres-cloitres.org/?page_id=209
    And the calendar (check december) : http://www.tres-cloitres.org/?page_id=10

    If you find a way to fix problem #2 (blank lines in list and empty box in calendar), the problem #1 has a viable solution.
    If you find a way to fix problem #1 (retrieving all multi-day events not yet ended with a start date still defined as today), the problem #2 is no longer relevant.

    Hoping that it is clear,

    Best wishes for 2015, could the extension maintenance be as efficient as in 2014 🙂

    Benjamin

    Plugin Contributor Nick Young

    (@nickyoung87)

    1. if a multi-day event already started (before today), it no longer appears at the top of the list by default. In my memories, it worked in the past.

    Oh ok I think I see now. I think this was an older feature that is no longer available in the current version. I believe this might have been mentioned on out public roadmap if you want to check that out and vote/submit it:

    https://trello.com/b/ZQSzsarY

    For #2 I will need to test it a bit more to see what’s going on. If you have updated your event builder codes could you send those over so I can try it in the same way you are using. If you don’t then I will use what is in your first post here and go by that.

    Thanks for your patience.

    Thread Starter BenjaminT

    (@benjamint)

    Dear Nick,

    Many thanks for the follow up.
    I indeed modified my event builder code. I copied it below. I carefully checked that there was no useless blank line.

    Best

    Benjamin

    [if-not-ended][if-single-day][if-not-all-day]
    <div class=”gce-list-event gce-tooltip-event”><b>[start-date] – [start-time] : </b> [event-title]</div>
    [/if-not-all-day][/if-single-day]
    [if-single-day][if-all-day]
    <div class=”gce-list-event gce-tooltip-event”><b>[start-date] : </b> [event-title]</div>
    [/if-all-day][/if-single-day]
    [if-multi-day] [if-not-started]
    <div class=”gce-list-event gce-tooltip-event”><b> Du [start-date] au [end-date]</b>: [event-title]</div>
    [/if-not-started] [/if-multi-day]
    [if-multi-day] [if-started]
    <div class=”gce-list-event gce-tooltip-event”><b> Jusqu’au [end-date] – </b> [event-title]</div>
    [/if-started] [/if-multi-day]
    [if-location]Lieu : <i>[location]</i>[/if-location]
    [if-description][description html = “true”][/if-description][/if-not-ended]

    Plugin Contributor Nick Young

    (@nickyoung87)

    Thanks for the info. I will do some testing and see if I can nail this down for you. I will update you when I get a chance.

    Thank you for your patience.

    Plugin Contributor Nick Young

    (@nickyoung87)

    We just pushed a new release. Could you update me on your situation after updating to the new release please?

    Thanks!

    Thread Starter BenjaminT

    (@benjamint)

    Dear Nick,
    Thanks for your feedback.
    I just updated the plugin but it did not solve the problem:
    http://www.tres-cloitres.org/?page_id=209
    Best
    Benjamin

    Plugin Contributor Nick Young

    (@nickyoung87)

    Hmm I am not sure why this is happening but try adding this to your theme’s CSS file:

    .gce-page-list .gce-feed { padding-bottom: 0; }

    That should fix the spacing issues. Let me know if that helps.

    Plugin Contributor Nick Young

    (@nickyoung87)

    Assuming the last response fixed the issue since there hasn’t been a response here lately. Let me know if you need help with anything else.

    Thanks!

    Thread Starter BenjaminT

    (@benjamint)

    Dear Nick,

    Sorry for my late feedback but last weeks were very busy.
    Adding this simple line in my style.css file (Twenty Thirteen theme) indeed fixed the problem:
    http://www.tres-cloitres.org/?page_id=209

    Many thanks for the time spent on this.

    Best

    Benjamin

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Problem with expanded event already started’ is closed to new replies.