- This topic has 3 replies, 2 voices, and was last updated 10 years, 7 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘Generic’ is closed to new topics and replies.
Events Made Easy › Forums › Generic › Limit Start and Limit End Too Loose
Tagged: limit start, scope
Hi there,
I was having issues with v1.34 and the eme_get_events_list function. The function would return events outside of the scope. For instance, I would set a scope of “this_week” and the plugin would return items from the beginning of the month. I check a few different areas of the function and found that I got the expected functionality if at line 1376 of eme_events.php I removed
OR (event_start_date <= '$limit_start' AND event_end_date >= '$limit_end')
I believe this makes the SQL statement too loose and allows false positives. Removing that line gets me the correct dates for the week, and nothing further. I see that you have added that logic throughout the plugin, perhaps it only needs to be there in certain spots? Let me know if there is some other troubleshooting I should try.
Thanks!
Aris
the scope indicates events either starting or ongoing. If that’s not what you want, you should set the option show_ongoing=0
Thanks Franky! That totally fixed it, my apologies for not reading the documentation more thoroughly.
I am having a similar issue with the sidebar widget. You can see them here:
You can see that the on-air schedule widget is showing events from the beginning of the month. This is despite the scope being set to today or this_week. I have checked and unchecked “show ongoing events” box but it seem to make no different in this case. Any advice?
Thanks!
Aris
It seems your “upcoming events” work just fine, but the on-air schedule not. So check the options for that widget, and also: check the end-date of those events, because I’m guessing the end date is wrong.