Events Made Easy › Forums › Bug fixed or feature request implemented › Problem with #_IS_REGISTERED tag
Tagged: #_IS_REGISTERED
- This topic has 18 replies, 2 voices, and was last updated 10 years, 9 months ago by Franky.
-
AuthorPosts
-
Tue 7 Jan 2014 at 09:52 #44113AnonymousInactive
Hi,
I have a problem with conditional tag that I can’t manage to solve.
I created an event with registration opened to everyone (not only wp members). For members I want to show the registration form only if they are not already registered.
I wrote this condition but it doesn’t work (I’ve also tried other solution but without any success):
[events_if tag='#_IS_LOGGED_IN' value='1']
[events_if2 tag='#_IS_REGISTERED' value='0']
<div class=”event-element” id=”event-addbooking”>#_ADDBOOKINGFORM</div>
[/events_if2]
[events_if3 tag='#_IS_REGISTERED' value='1']
<div class=”event-element”><b>You already booked a place</b></div>
[/events_if3]
[/events_if]
[events_if4 tag='#_IS_LOGGED_IN' value='0']
<div class=”event-element” id=”event-addbooking”>#_ADDBOOKINGFORM</div>
[/events_if4]
Also tried this but it doesn’t work anyway.
[events_if tag='#_IS_LOGGED_IN_IS_REGISTERED' value='0']
<div class=”event-element” id=”event-addbooking”>#_ADDBOOKINGFORM</div>
[/events_if]
[events_if2 tag='#_IS_LOGGED_IN_IS_REGISTERED' value='1']
<div class=”event-element”><b>You already booked a place</b></div>
[/events_if2]
[events_if3 tag='#_IS_LOGGED_IN' value='0']
<div class=”event-element” id=”event-addbooking”>#_ADDBOOKINGFORM</div>
[/events_if3]
Please help! 🙁
Tue 7 Jan 2014 at 21:59 #50998FrankyKeymasterJust tried it with your example code and the trunk version and it seems to work ok, so just be patient and wait for the next version to be released.
Wed 8 Jan 2014 at 08:53 #50999AnonymousInactiveMany thanks I’ll wait for it! 🙂
Mon 13 Jan 2014 at 19:10 #51000AnonymousInactiveI updated today the plugin, but I’m having the same problem.
I also tried to create another event with the same condition but neither this way it works.
What can I check?
p.s.
“Require WP membership for registration” is not checked!
Mon 13 Jan 2014 at 20:08 #51001FrankyKeymasterI used this for testing and it works just fine:
[events_if tag='#_IS_LOGGED_IN' value='1']
You're logged in
[events_if2 tag='#_IS_REGISTERED' value='0']
Showing the form
<div class="event-element" id="event-addbooking">#_ADDBOOKINGFORM</div>
[/events_if2]
[events_if3 tag='#_IS_REGISTERED' value='1']
<div class="event-element"><b>You already booked a place</b></div>
[/events_if3]
[/events_if]
[events_if4 tag='#_IS_LOGGED_IN' value='0']
<div class="event-element" id="event-addbooking">#_ADDBOOKINGFORM</div>
[/events_if4]Make sure you enter this in the single event format field, should work just fine.
Mon 13 Jan 2014 at 20:41 #51002AnonymousInactiveOk, tried this way, and the only condition that is never verified is this one:
[events_if3 tag='#_IS_REGISTERED' value='1']
<div class=”event-element”><b>You already booked a place</b></div>
[/events_if3]
the other 2 works correctly
Mon 13 Jan 2014 at 20:48 #51003AnonymousInactiveJust tried also on a freshly installed wordpress and eme just installed without any configuration: same issue!
Mon 13 Jan 2014 at 21:58 #51004FrankyKeymasterAh, I found the issue: IS_REGISTERED only works if you check the option “Require WP membership for registration”.
I think that indeed this extra requirement is not really needed, so I’ll remove it.
See this fix:
Tue 14 Jan 2014 at 20:48 #51005AnonymousInactiveThanks, but it seems that this still not solve the problem.
I removed this line
&& $event
and reuploaded the ‘events-manager.php’ file but I still have the problem.
This is my test page on a test wordpress installation.
http://www.afbp.it/alder/wptest/?page_id=2
You can try to book a place and see.
thanks again for your help!
Tue 14 Jan 2014 at 22:23 #51006FrankyKeymasterTry the just released 1.2.1
Wed 15 Jan 2014 at 19:50 #51007AnonymousInactiveUnfortunately I have the same issue
Wed 15 Jan 2014 at 20:15 #51008FrankyKeymasterNo, and I just figured out why:
currently I only take the wordpress userid (+name/email) into account when you require WP membership for registration, because otherwise (even when logged in) you can still change the name/email on the booking form.
I’ll try to change this to be more generic and detect logged in users …
Fri 17 Jan 2014 at 16:04 #51009AnonymousInactiveThanks.
If you point me to the right part of the code where this happens, I can try to fix it!
Fri 17 Jan 2014 at 19:15 #51010FrankyKeymasterIf it was that simple, I would’ve done it already 🙂
Fri 17 Jan 2014 at 20:06 #51011AnonymousInactivesorry, I wasn’t saying it’s simple, I only wanted to help 🙂
Fri 17 Jan 2014 at 23:05 #51012FrankyKeymasterNo prob. I’m moving this to feature requests
Sat 1 Feb 2014 at 16:29 #51013FrankyKeymasterOk, this should do it:
http://plugins.trac.wordpress.org/changeset/849454
But maybe I should add an option so people are not able to change their name/email when logged in (if wanted).
Fri 14 Feb 2014 at 17:38 #51014AnonymousInactiveHey, I upgraded to last version yesterday, but still have the problem! 🙁
Sat 15 Feb 2014 at 13:15 #51016FrankyKeymasterI confirm that it is still an issue, and hopefully fixed here:
http://plugins.trac.wordpress.org/changeset/858439
and (small fix):
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.