Events Made Easy › Forums › Bug fixed or feature request implemented › Recurrences – feature request and maybe a bug
- This topic has 14 replies, 2 voices, and was last updated 10 years, 4 months ago by Anonymous.
-
AuthorPosts
-
Tue 11 Mar 2014 at 19:58 #44188AnonymousInactive
Hi Franky,
first, I want to thank you for this wonderful plugin. I’m the webmaster for a small theater and our events are not on a regular basis.
So I used the “specifc day” recurrences for my website.
I also want to vote for the feature request “recurrence events only listed once”.
When I worked with recurrence events I tried the “cleanup events” function. And it doesn’t work with specific days recurrences. I looked at the code (in eme_cleanup.php) and found that it uses the end date of the recurrence (recurrence_end_date). But this field is empty (or 00-00-0000) for specific days recurrences. For the moment I don’t use this function, because it crashes my recurrences.
Another feature request: scope-parameter for the calendar-widget. I only want to show future events in the calendar and found no way hiding the past events without code-modification (in eme_calendar.php). And thats not good, because it doesn’t survive an upgrade 🙂
Tue 11 Mar 2014 at 23:25 #51337FrankyKeymasterThanks for the bug report, has been fixed in trunk.
Concerning the calendar scope: that’s not the purpose of a calendar. But, since I aim to please, I can point out an alternative: use the filter eme_event_list_filter to filter out “old” events. The calendar will then not show these. See http://www.e-dynamics.be/wordpress/?cat=41
Tue 11 Mar 2014 at 23:56 #51338FrankyKeymasterFor the cleanup fix, try this change:
http://plugins.trac.wordpress.org/changeset/873687
For the recurrent events to be displayed only once (disable/re-enable EME for it):
http://plugins.trac.wordpress.org/changeset/873701
Remember: both changes are untested, please feel free to test them and let me know the results 🙂
Wed 12 Mar 2014 at 07:43 #51339AnonymousInactiveThanks.
I’ll try it this evening and report back.
Just for information: If I use the eme_events_list_filter to filter out “old” events: This will affect the events_list also and not only the calendar, right? (I didn’t try it, because I’m not at home).
Wed 12 Mar 2014 at 11:06 #51340FrankyKeymasteryes, that is the case.
Wed 12 Mar 2014 at 20:00 #51341AnonymousInactiveI’ve tested your changes.
Cleanup works fine now, thanks.
For the recurrences: I tested your changes and got an error saving the settings (Error: Settings-Page not found).
Also I could not add a new event: The datepicker didn’t work (in fact the field was empty. The default value is tody, but in the trunk-version it was empty.)
And the layout at my website was broken (it seems the styles didn’t work any more. The calendar was in a very “basic” form. I’m not sure I made it correct: I clicked the links and downloaded the trunk-files. Then I changed the php-files (saved the old files of course). Then I disabled/re-enambeld EME). The new option for recurrences was at the settings-page, but as stated above I could not save the settings, even if I didn’t change any setting. After the test I reverted back to the saved version and everything works as it should.
Strange…
Wed 12 Mar 2014 at 22:38 #51342FrankyKeymasterHeh, I clearly was a little too fast yesterday. That’ll teach me to code things up at 01:00 at night.
Try this extra change (after the one I mentioned above):
http://plugins.trac.wordpress.org/changeset/874381
(just the change to eme_events.php, the other part of the change is more cosmetic)
Wed 12 Mar 2014 at 23:23 #51343AnonymousInactiveSorry, but the new events-manager.php wants to include a “eme_actions.php” which does not exist 🙁
The error message is: Warning: include(eme_actions.php): failed to open stream:No such file or directory in xxx/wp-content/plugins/events-made-easy/events-manager.php on line 324
In the “old” version the include-lines stop with include “eme_shortcodes.php”, the new adds one more line (which is not in the changeset, so I took a moment to find out.
If thats a problem/misunderstanding of mine, sorry, I should either not do some complicate stuff at this time 🙂
Wed 12 Mar 2014 at 23:26 #51344FrankyKeymasterYou should not use the complete file, only the mentioned changes. If you intend to use the complete file, you must use the trunk version.
Download the whole version from here:
Thu 13 Mar 2014 at 21:44 #51345AnonymousInactiveThanks. Now everything works.
For the recurrences: the new option is for my purpose to “general”. I’d like to switch it on and off using the shortcodes. At the calendar, for example, I want to see all recurrences. But in the list of event there would be one event per recurrence perfect.
I’ll look at your code and try if I can make someting with filters and/or new shortcodes. (I created some shortcodes for my page, the only problem is that I use direct access to the mysql-database. So, if you decide to change the structure of the db my function stop working.)
Thu 13 Mar 2014 at 23:53 #51346AnonymousInactiveI found a solution without database-access: I wrote a filter for eme_events_list. The filter modifies the events-list array so every recurrence event will only get back once. I limit this filter to only one special page, so the calendar shows all recurrences and the wanted page shows every recurrence event only once. Was a little tricky, but now it works perfect and – best of all – it will do so in the future. In combination with attributes, shortcodes etc. this is a very powerful tool! Thanks again for your work and your ongoing support.
Fri 14 Mar 2014 at 00:12 #51347FrankyKeymasterI’m leaving this here, I’ll try to switch to a shortcode option alternative this weekend …
Sat 15 Mar 2014 at 10:28 #51348FrankyKeymasterEt voila: generic option gone and added option ‘show_recurrent_events_once’ to the shortcode eme_events to show recurrent events only once
Sat 29 Mar 2014 at 11:39 #51349AnonymousInactiveHi Franky,
sorry for late response: I was on holidays and the last week there was a lot of work to do.
I hope, I can test all in the next few days and give you response.
Thanks again for your fantastic work.
Fri 4 Jul 2014 at 21:27 #52545AnonymousInactiveSorry, that I did not response. I found a solution for myself that works (and should be compatible for the future) so I didn’t try the new feature. And then I forgot it… (shame on me).
Now, I updated the plugin and tested the new feature (show_recurrent_events_once) but it has not the results I needed. But as I found a solution for myself (with a filter in functions.php) it is okay for me.
Thanks again for your great work! -
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.