Events Made Easy Forums Generic Does not work for dynamic groups

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #64530
    Anonymous
    Inactive

    Hi Franky,
    when people register for events on our site, they get assigned to different EME groups, depending on the event. I also created a dynamic EME group that contains all the individual groups.

    Now I need to test if the logged-in user has regsitered for any event, and therefore is a member of this dynamic group. But the generic placeholder #_IS_USER_IN_GROUP only works for regular groups for me, not the dynamic one. Correct?

    The workaround would be to list all the regular groups in the generic placeholder – but since this is prone to typos and harder to maintain than the dynamic group, I wanted to ask about it.

    Thanks!

    #64531
    Franky
    Keymaster

    indeed, currently #_IS_USER_IN_GROUP doesn’t take dynamic groups into account. This should fix that (untested, so please do test and give feedback):
    https://plugins.trac.wordpress.org/changeset/2770109/

    #64532
    Anonymous
    Inactive

    You’re amazing – yes!
    It totally works like a charm.
    Thank you so much.
    🙏🙏🙏

    #64533
    Franky
    Keymaster

    Thanks for testing 🙂
    Also, make sure you test the scenario with users not logged in and/or not in the group.

    #64534
    Franky
    Keymaster

    And I also added some limited caching to it:
    https://plugins.trac.wordpress.org/changeset/2770156/

    #64535
    Anonymous
    Inactive

    Thanks again, caching never hurts – thank you!

    I did the tests with logged out and not in the group already, and these all rendered the expected result.

    Great work! Thanks again.

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