Events Made Easy Forums Bug fixed or feature request implemented Recurrences – feature request and maybe a bug

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #44188
    Anonymous
    Inactive

    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 🙂

    #51337
    Franky
    Keymaster

    Thanks 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

    #51338
    Franky
    Keymaster

    For 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 🙂

    #51339
    Anonymous
    Inactive

    Thanks.

    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).

    #51340
    Franky
    Keymaster

    yes, that is the case.

    #51341
    Anonymous
    Inactive

    I’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…

    #51342
    Franky
    Keymaster

    Heh, 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)

    #51343
    Anonymous
    Inactive

    Sorry, 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 🙂

    #51344
    Franky
    Keymaster

    You 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:

    http://downloads.wordpress.org/plugin/events-made-easy.zip

    #51345
    Anonymous
    Inactive

    Thanks. 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.)

    #51346
    Anonymous
    Inactive

    I 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.

    #51347
    Franky
    Keymaster

    I’m leaving this here, I’ll try to switch to a shortcode option alternative this weekend …

    #51348
    Franky
    Keymaster

    Et voila: generic option gone and added option ‘show_recurrent_events_once’ to the shortcode eme_events to show recurrent events only once

    #51349
    Anonymous
    Inactive

    Hi 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.

    #52545
    Anonymous
    Inactive

    Sorry, 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!

Viewing 15 posts - 1 through 15 (of 15 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top