Forum Replies Created

Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter blanch80

    (@blanch80)

    The whole of the 2nd lot of code is:

    [eme_if tag='#_IS_REGISTERED' value ='0']
    [eme_if2 tag='#_WAITING_LIST_ACTIVATED' value ='0']
    
    <table class='eme-rsvp-form'>
    <tr><th scope='row'>First Name*:</th><td>#REQ_FIRSTNAME</td></tr>#_SEATS 
    <tr><th scope='row'>Last Name*:</th><td>#_LASTNAME</td></tr>
    <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr>
    </table>
    
    #_SUBMIT
    
    [/eme_if2]
    [/eme_if]
    
    [eme_if tag='#_IS_REGISTERED' value ='0']
    [eme_if2 tag='#_WAITING_LIST_ACTIVATED' value='1']
    
    <b>There are currently no spaces available on this event. Submitting the form below will add you to the waiting list.</b>
    
    <table class='eme-rsvp-form'>
    <tr><th scope='row'>First Name*:</th><td>#REQ_FIRSTNAME</td></tr>#_SEATS 
    <tr><th scope='row'>Last Name*:</th><td>#_LASTNAME</td></tr>
    <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr>
    </table>
    
    #_SUBMIT{Request place on waiting list}
    
    [/eme_if2]
    [/eme_if]
    Thread Starter blanch80

    (@blanch80)

    Thanks for this Franky.

    I’ve changed it up so it looks like

    [eme_if tag='#_IS_REGISTERED' value ='0']
    
    <table class='eme-rsvp-form'>
    <tr><th scope='row'>First Name*:</th><td>#REQ_FIRSTNAME</td></tr>#_SEATS 
    <tr><th scope='row'>Last Name*:</th><td>#_LASTNAME</td></tr>
    <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr>
    </table>
    
    #_SUBMIT
    
    [/eme_if]
    
    [eme_if tag='#_IS_REGISTERED' value ='0']
    [eme_if2 tag='#_WAITING_LIST_ACTIVATED' value='1']
    
    <b>There are currently no spaces available on this event. Submitting the form below will add you to the waiting list.</b>
    
    <table class='eme-rsvp-form'>
    <tr><th scope='row'>First Name*:</th><td>#REQ_FIRSTNAME</td></tr>#_SEATS 
    <tr><th scope='row'>Last Name*:</th><td>#_LASTNAME</td></tr>
    <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr>
    </table>
    
    #_SUBMIT{Request place on waiting list}
    
    [/eme_if2]
    [/eme_if]

    For page loads with no waiting list it works fine, can book and cancel bookings no problem.

    When I load the event with no spaces however it shows both booking forms with the two different submit buttons, which I’d expect from how I’ve used the shortcodes.

    I then added the second eme_if2 to the code to hide the first booking form if #_WAITING_LIST_ACTIVATED is 0 / false but it hides the booking form completely even though both conditions are true.

    [eme_if tag='#_IS_REGISTERED' value ='0']
    [eme_if2 tag='#_WAITING_LIST_ACTIVATED' value ='0']
    
    <table class='eme-rsvp-form'>
    <tr><th scope='row'>First Name*:</th><td>#REQ_FIRSTNAME</td></tr>#_SEATS 
    <tr><th scope='row'>Last Name*:</th><td>#_LASTNAME</td></tr>
    <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr>
    </table>
    
    #_SUBMIT
    
    [/eme_if2]
    [/eme_if]

    Ideally the first booking form is hidden when waiting list is active, I’m only doing this so I can have different text in the submit button to make it clear what users are doing.

    Link is: https://test.learning.necsu.nhs.uk/events/6-nations-italy-vs-ireland/

    Any advice on this one please?

    Thanks,
    David.

    Thread Starter blanch80

    (@blanch80)

    My problem is that the following code is not presenting the booking form with ‘you’re going to be on a waiting list’ message, it just shows the same form with the send your booking button even though there are no spaces left.

    It does send the pending email rather than the booked email, but I know what people are like reading emails and if they’ve clicked send your booking they might still turn up even if they’re only on the waiting list.

    <h1>#_EVENTNAME</h1>
    <br />
    <b>Date/Time</b>: #_STARTDATE{l}, #_STARTDATE – #_STARTTIME – #_ENDTIME
    <br />
    <br />
    <b>Location</b>: #_LOCATIONNAME
    <br />
    <br />
    <b>Available Spaces</b>: #_AVAILABLESEATS
    <br />
    <br />
    <b>Contact Details</b>: #_AUTHORNAME: #_AUTHOREMAIL
    <br />
    <br />
    <b>Description</b>#_NOTES
    #_ADDBOOKINGFORM
    #_REMOVEBOOKINGFORM_IF_REGISTERED<br /><br /><br />#_MAP

    Thread Starter blanch80

    (@blanch80)

    Just tested it…

    Both seems to work, the one you directed me to works as it is, but the below also worked, both opening up just as an appointment rather than a meeting.

    // Remove organiser field from iCal to make appointment rather than meeting
    function my_ical_filter($ical_entry) {
    // do a print_r of $ical_entry to see the content
    // as an example, let’s add a line “CLASS:PUBLIC”
    // $ical_entry .= eme_esc_ical(“CLASS:PUBLIC”);
    // other example: remove lines that contains “ORGANIZER”
    $ical_entry = preg_replace(‘/ORGANIZER.*\r\n/’,”,$ical_entry);
    return $ical_entry;
    }
    add_filter(’eme_ical_filter’,’my_ical_filter’);

    Thread Starter blanch80

    (@blanch80)

    I also added the class:public. I tried the function as it is on the page you linked me to, to test that first.

    Thread Starter blanch80

    (@blanch80)

    Worked a treat, cheers Franky.

    Thread Starter blanch80

    (@blanch80)

    Sorted.

    Thread Starter blanch80

    (@blanch80)

    Ignore this.

    I’ve amended the rules to show rather than hide and it’s now working fine.

    Strange one though…

    Thread Starter blanch80

    (@blanch80)

    Hi,

    I have access to cPanel.

    I changed the max_execution_time to 400 from 90, ran the import again and there was no change, exactly the same thing happened.

    I’ve discovered it’s a plugin/theme conflict.

    I deactivated all of my plugins and changed the theme to 2016 and the plugin worked just as it should.

    Sorry, I should have checked that before posting on the forum.

    Thanks for you help.
    David

    Thread Starter blanch80

    (@blanch80)

    Just to note, I’ve tried uploading the CSV file from my desktop and also uploaded it to the server and gave the direct path – same result both ways unfortunately.

    Thread Starter blanch80

    (@blanch80)

    Hi,

    I don’t see any error messages.

    If I upload with 3 users in the csv i see the “Process finished you can go here to see the results”

    When I add extra users to the same csv and try to upload (I’ve tried leaving the other users and deleting them prior to the new upload) I see ‘waiting for xxxx’ for a long time while it looks like the browser is working then the screen refreshes.

    On refresh I see the first three users again but no “Process finished you can go here to see the results” line.

    Nothing.

    Looking in the wp_users table is has created the 4th user but hasn’t uploaded all of the meta data.

    I’ve tried using users that have uploaded successfully in position 1, 2 or 3 as the 4th (knowing the data has successfully updated in the past) and the same issue occurs.

    I don’t see any message beneath the 3 users that have uploaded.

    I can send screenshots if required.

    Thanks,
    David.

    Thread Starter blanch80

    (@blanch80)

    Thank you, works a treat.

    Thread Starter blanch80

    (@blanch80)

    Hi,

    Thanks for the reply.

    When a user clicks to cancel their event a modal window already appears asking if you’re sure you want to cancel your booking.

    Is it possible to add a drop down list of reasons in there and capture the selection?

    Thanks,
    David.

Viewing 13 replies - 16 through 28 (of 28 total)