Events Made Easy › Forums › Bug fixed or feature request implemented › restrict content for pending registration?
Tagged: if tag; approval, pending approal
- This topic has 8 replies, 2 voices, and was last updated 3 years, 5 months ago by Franky.
-
AuthorPosts
-
Tue 11 May 2021 at 12:01 #62540AnonymousInactive
Hello,
i work with if tags like [eme_if tag='#_IS_REGISTERED{35}' value='0'] (the same with value =1).
These tags work really good, so i can show for not registered users the Booking form and for registered users the access to the online event. Because of the great demand we have to add an Approval. So i need diffent content restricts like:1) Not registered users
2) Registered users, pending approval
3) registered userse, approvedDoes anyone knows which placeholder or if tag i have to use to get this?
Thank you so much for your help!
Tue 11 May 2021 at 12:39 #62541FrankyKeymasterSee this changeset in the development version:
https://plugins.trac.wordpress.org/changeset/2529681/Wed 12 May 2021 at 16:09 #62542AnonymousInactiveThank you so much!
When will these changes be in “live” version? 🙂
I would be so happy to use it!Wed 12 May 2021 at 16:19 #62543FrankyKeymasterOnce the next version is released (that depends on how much I want to add to it before releasing it).
Mon 7 Jun 2021 at 09:42 #62661AnonymousInactiveHey Franky,
thank you so much for the update again!
I tried to use the following shortcodes (for the Event with ID 37):[eme_if2 tag='#_IS_REGISTERED{37}' value='0'] Test Non-registered Users [/eme_if2]
-> Show the content only for users they aren’t registered[eme_if3 tag='#_IS_REGISTERED_PENDING{37}' value='1'] Test Regisered but Pending users [/eme_if3]
-> Show the content only for People who have pending registration for the event[eme_if4 tag='#_IS_REGISTERED_APPROVED{37}' value='1'] Test for Users who have approved registration [/eme_if4]
-> Show the content only for people who have approved registration for the eventI don’t get where i make a mistake, because with these Shortcodes a registered & approved Person still sees the content of the eme_if3 tag … so they see both.
How do i get it that the registered approved user don’t see the registered pending content anymore?
Thank you !
Mon 7 Jun 2021 at 09:58 #62662FrankyKeymasterThat’s weird … I’ll check the code
Mon 7 Jun 2021 at 10:09 #62663FrankyKeymasterSmall heads up that I overlooked in your initial question too): there’s no argument for those placeholders. So:
#_IS_REGISTERED_APPROVED{37} is not correct, #_IS_REGISTERED_APPROVED isMon 7 Jun 2021 at 10:17 #62664AnonymousInactiveThank you. So i tried it like this:
[eme_if4 tag='#_IS_REGISTERED_APPROVED' value='1']
..but it’s still not working. It shows exactly the same like before 🙂Mon 7 Jun 2021 at 13:24 #62665FrankyKeymasterOk, found the issue. This changeset will help (don’t download the complete files, just apply the changes or otherwise download the complete dev version):
https://plugins.trac.wordpress.org/changeset/2543637/
(only the changes in eme_events.php and eme_rsvp.php are relevant, not the js-change I accidentaly included) -
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.