Events Made Easy Forums Generic 2.0.19 – [eme_locations_map] scope fails

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #57541
    Anonymous
    Inactive

    Hi Franky,

    i want to show all events from actual day till the end of the year under the map. Since update to 2.0.19 “scope” fails on some values. Neither “today–this_year” nor “today-this_year” works as expected.

    If i use “this_year”, events are shown.

    working code: [eme_locations_map eventful=true category=1,2,3,4,5,6 paging=1 scope=this_year width=700 height=400]

    not-working code: [eme_locations_map eventful=true category=1,2,3,4,5,6 paging=1 scope=today-this_year width=700 height=400] (worked until previous version)

    not-working code: [eme_locations_map eventful=true category=1,2,3,4,5,6 paging=1 scope=today--this_year width=700 height=400]

    Rgds,

    Werner

    #57563
    Franky
    Keymaster

    The scop is correctly “today–this_year”. But: are future events for this year available at a location? Because that’s what your asking using eme_locations_map and eventful=true: show me locations that have events (and obey the selected categories and scopy).
    That part never changed in the code from 2.0.18 to 2.0.19 …

    #57594
    Anonymous
    Inactive

    Yes, of course there are future events. I want to show a map with all future events, whitch worked till 2.018 with following code:

    [eme_locations_map eventful=true category=1,2,3,4,5,6 paging=1 scope=today-this_year width=700 height=400]

    After the update i got an empty map.

    #57596
    Anonymous
    Inactive

    New try after update to 2.0.21

    scope=today-this_year or scope=today–this_year shows only 1 future event. But i have more than a dozen.

    calender-view:
    https://www.mx5.events/eventkalender/

    map-view (with scope=this_year):
    https://www.mx5.events/eventkalender/event-karte/

    #57597
    Franky
    Keymaster

    Based on your events I can’t judge if they are in the correct categories etc …
    Try simpler first:
    [eme_locations_map eventful=true scope=today--this_year width=700 height=400]
    Also, try using [eme_events] itself first.

    AND: maybe you forgot the param show_events for [eme_locations_map], see http://www.e-dynamics.be/wordpress/category/documentation/6-shortcodes/eme_locations_map/

    #57598
    Anonymous
    Inactive

    Categories are right and are filtered correctly, because if i use scope=this_year all future events are shown. If you check the link https://www.mx5.events/eventkalender/event-karte/ you will see all events from this category (scope=this_year)

    show_events=1 only changes the list below the map to show the events additionaly added to the related place.

    scope=today–this_year only shows the next upcoming event, independent from show_events is set or not.

    #57600
    Franky
    Keymaster

    I tried this on my site:

    [eme_locations_map eventful=true scope=today--this_year width=700 height=400]

    And it works as expected. See at the bottom of this page:
    http://www.e-dynamics.be/wordpress/all-events/

    #57601
    Anonymous
    Inactive

    It worked for me also before i updated to 2.0.19, since then it fails.

    I tested eventful=0 combined with scope=today–this_year and got a lot of old events on the map. Something’s going wrong here.

    Is there a way to debug the output (for non-coders)?

    #57602
    Franky
    Keymaster

    You never get events on the map, only locations.
    Just try simpler things first, and make sure the locations you expect to see have future events planned. So just drop the categories part and try again.
    eventful=0 and providing a scope is meaningless … locations don’t have a date, and asking eventful=0 will just show locations regardless of the scope.

    #57603
    Anonymous
    Inactive

    OK, i dropped categories and the result is the same.

    If i use scope=this_year, all locations with events are shown on the map. And there are a lot of future events after today.

    If i use scope=today–this_year or scope=today-this_year ONE location with one event is shown. Interessting part on this: it’s a location with six events this year and only one is shown.

    #57604
    Anonymous
    Inactive

    To complete your requirements on my testing:

    [eme_events category=1,2,3,4,5,6 scope=today--this_year limit=0]

    does exactly what it should. Would like to have the same result on [eme_locations_map] 😉

    Thanks for your patience.

    #57605
    Franky
    Keymaster

    I see your problem now: you have paging=1 as an option. It is not clearly marked in the eme_locations_map placeholder doc, but paging=1 requires a period identical to eme_events.
    And looking at eme_events doc, it says:

    Period paging is also possible: if you use paging=1, limit=0 and scope=today,tomorrow, this_week,this_month,this_year you’ll be able to browse to previous/next days/weeks/months/years

    If you set paging=1, the scope needs to be one the ones mentioned above, otherwise the default (this_month) is taken (the location map doesn’t use the limit-option).

    Btw: this logic has always been in place loke that and did NOT change between 2.0.18 and 2.0.19 or later

    Edit: the doc has now been updated to better reflect this.

    #57608
    Anonymous
    Inactive

    You got it! Great!

    Thanks a lot and thank you again for you patience.

    Rgds

    Werner

Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘Generic’ is closed to new topics and replies.
Scroll to Top