Events Made Easy Forums Bug fixed or feature request implemented Problem with #_IS_REGISTERED tag

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #44113
    Anonymous
    Inactive

    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! 🙁

    #50998
    Franky
    Keymaster

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

    #50999
    Anonymous
    Inactive

    Many thanks I’ll wait for it! 🙂

    #51000
    Anonymous
    Inactive

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

    #51001
    Franky
    Keymaster

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

    #51002
    Anonymous
    Inactive

    Ok, 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

    #51003
    Anonymous
    Inactive

    Just tried also on a freshly installed wordpress and eme just installed without any configuration: same issue!

    #51004
    Franky
    Keymaster

    Ah, 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:

    http://plugins.trac.wordpress.org/changeset/837966

    #51005
    Anonymous
    Inactive

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

    #51006
    Franky
    Keymaster

    Try the just released 1.2.1

    #51007
    Anonymous
    Inactive

    Unfortunately I have the same issue

    #51008
    Franky
    Keymaster

    No, 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 …

    #51009
    Anonymous
    Inactive

    Thanks.

    If you point me to the right part of the code where this happens, I can try to fix it!

    #51010
    Franky
    Keymaster

    If it was that simple, I would’ve done it already 🙂

    #51011
    Anonymous
    Inactive

    sorry, I wasn’t saying it’s simple, I only wanted to help 🙂

    #51012
    Franky
    Keymaster

    No prob. I’m moving this to feature requests

    #51013
    Franky
    Keymaster

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

    #51014
    Anonymous
    Inactive

    Hey, I upgraded to last version yesterday, but still have the problem! 🙁

    #51016
    Franky
    Keymaster

    I confirm that it is still an issue, and hopefully fixed here:

    http://plugins.trac.wordpress.org/changeset/858439

    and (small fix):

    http://plugins.trac.wordpress.org/changeset/858440

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