Events Made Easy › Forums › Generic › 2.0.19 – [eme_locations_map] scope fails
- This topic has 12 replies, 2 voices, and was last updated 6 years, 9 months ago by Anonymous.
-
AuthorPosts
-
Mon 26 Feb 2018 at 14:39 #57541AnonymousInactive
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
Mon 26 Feb 2018 at 23:59 #57563FrankyKeymasterThe 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 …Thu 1 Mar 2018 at 10:08 #57594AnonymousInactiveYes, 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.
Thu 1 Mar 2018 at 10:18 #57596AnonymousInactiveNew 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/Thu 1 Mar 2018 at 12:03 #57597FrankyKeymasterBased 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/
Thu 1 Mar 2018 at 12:17 #57598AnonymousInactiveCategories 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.
Thu 1 Mar 2018 at 13:01 #57600FrankyKeymasterI 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/Thu 1 Mar 2018 at 13:34 #57601AnonymousInactiveIt 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)?
Thu 1 Mar 2018 at 13:39 #57602FrankyKeymasterYou 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.Thu 1 Mar 2018 at 13:46 #57603AnonymousInactiveOK, 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.
Thu 1 Mar 2018 at 14:18 #57604AnonymousInactiveTo 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.
Thu 1 Mar 2018 at 17:32 #57605FrankyKeymasterI 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.
Thu 1 Mar 2018 at 18:01 #57608AnonymousInactiveYou got it! Great!
Thanks a lot and thank you again for you patience.
Rgds
Werner
-
AuthorPosts
- The forum ‘Generic’ is closed to new topics and replies.