Events Made Easy Forums Bug fixed or feature request implemented Broken Conditional Tags, among others

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #44169
    Anonymous
    Inactive

    Hi Franky,

    Since the last code rollout, where you made the shortcodes more versatile, my conditional tags have stopped working. Here’s one of the ones I’ve used:

    [eme_if tag="#_SPACES1" notvalue="0"]Table 1[eme_if2 tag="#_SPACES1" notvalue="1"] -<b> #_SPACES1 seats</b>[/eme_if2][/eme_if]

    (For readability, I’m trying to do this:

    if(user has reserved seats at Table 1){

    echo("Table 1")

    if(user has reserved multiple seats at Table 1){

    append(" - This many seats")

    }

    }

    )

    It used to be “events_if”, but I know that changed a few updates ago, so I renamed them to see if they would work. I also tried a variety of quotes and non-quotes around attributes just in case. is something wrong here?

    __

    On a more serious note, the “Reserve” button seems to now be broken. I didn’t ever look before, but not the button redirects to ROOT/events/2014-02-20/#eme-rsvp-message, which can’t be right, can it?

    #51256
    Franky
    Keymaster

    Where do you use these? In the rsvp mails? Do you mean that events_if works, but eme_if doesn’t?

    And what do you mean with the “Reserve” button?

    #51257
    Anonymous
    Inactive

    These were the conditions in my Bookings List Format, which was being used in the event listing with the shortcode #_BOOKINGS. With this release, I also used them in the template that I was going to use to replace that shortcode(these templates were for use in the [eme_bookings] shortcode.)

    Neither events_if, nor eme_if work – it is displaying everything between the tags regardless of true/false status, basically as if everything between [brackets] wasn’t being parsed at all.

    By the “Reserve” button, I mean the RSVP form button that is generated by the shortcode #_SUBMIT.

    #51258
    Franky
    Keymaster

    Which version did you try? 1.2.6 is out containing some fixes 🙂

    #51259
    Anonymous
    Inactive

    1.2.6 was what broke it, I think. These conditionals have been working well for at least a couple of weeks. When I rolled back to 1.2.5, everything worked fine again.

    #51260
    Franky
    Keymaster

    Well, I just created a page with content

    [eme_bookings id=14 template_id=6 template_id_header=4 template_id_footer=5]

    and in the template with id 6, I put:

    <li>#_RESPNAME (#_RESPSPACES) test
    [eme_if tag="#_SPACES1" notvalue="0"]Table 1[eme_if2 tag="#_SPACES1" notvalue="1"] -<b> #_SPACES1 seats</b>[/eme_if2][/eme_if]
    </li>

    And it seems to be working just fine … now 🙂

    Reason is this fix:

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

    #51261
    Anonymous
    Inactive

    Thanks, Franky. I’ll wait until that gets pushed through with 1.2.7 I tried manually putting it into the code, and I’m getting fatal errors, so I’m sure doing something wrong. 🙂

    #51262
    Franky
    Keymaster

    I’ll wait one more day for possible bug reports and then release this as a fix.

    #51263
    Franky
    Keymaster

    Btw,are you sure about the submit button? Can you create a test setup for this?

    #51264
    Anonymous
    Inactive

    Submit button still broken. The URL is correct, based on the URL that shows for 1.2.5, but for both 1.2.6 and 1.2.7 I’m getting no code at all – the page source is actually blank.

    I have no idea how to test this in order to diagnose what’s going on. Any suggestions? I’m running Firefox, so if the Developer Tools will give any useful information, that’s easy. Any other ideas?

    For reference, here’s the code of my registration form. (One of them – the others don’t work under the new versions of the code either)

    <table class='eme-rsvp-form'>

    <tr><th scope='row'>Name*:</th><td>#_NAME</td></tr>

    <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr>

    <tr><th scope='row'><i>Table 1</i>*:</th><td>Book #_SEATS1 seats</td></tr>

    <tr><th scope='row'><i>Table 2</i>*:</th><td>Book #_SEATS2 seats</td></tr>

    <tr><th scope='row'><i>Table 3</i>*:</th><td>Book #_SEATS3 seats</td></tr>

    <tr><th scope='row'>Overflow Table:</th><td>Book #_SEATS4 seats</td></tr>

    <tr><th scope='row'>Member Number:</th><td>#_FIELD01</td></tr>

    <tr><th scope='row'>Character Type:</th><td>#_FIELD02</td></tr>

    <tr><th scope='row'>Comment:</th><td>#_COMMENT</td></tr>

    </table>

    <span style='font-size:x-small'>If you do not have a member number, you can leave that field blank. Character information is optional and you can change it on the day of the event - it's just to give the GMs a little forewarning on what you might bring to the table.</span>

    #_SUBMIT[Reserve Seats]

    #51265
    Franky
    Keymaster

    What happens if you just use #_SUBMIT?

    #51266
    Franky
    Keymaster

    Can you post a URL showing this? And if possible an admin account would be great.

    #51267
    Anonymous
    Inactive

    I’m just going to set up a cloned site with 1.2.7 running and get you admin access – I’m continuing to run 1.2.5 in the meantime, because we manage three events weekly with the plugin.

    On the upside, once it’s set up, you can play around with it to your heart’s content. 🙂 Will post once the URL is set.

    #51268
    Franky
    Keymaster

    Ok, just set it up the same as your prod site is running, with an example event and rsvp form showing the same issue.

    You can mail the details to liedekef@telenet.be

    #51269
    Franky
    Keymaster

    Btw: I think I fixed the rsvp form issue (blank page). See this fix for 1.2.7 (or update to the just released 1.2.8):

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

    #51270
    Anonymous
    Inactive

    Everything seems to be working again, including the rsvp form, and the new conditionals (as per 1.2.7) Thanks, Franky.

    Is it still worth setting up a cloned version of the site?

    #51271
    Franky
    Keymaster

    Not really. But do update to version 1.2.8

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