Posted: September 6, 2013 at 4:44 am
|
The code on https://eventespresso.com/topic/how-to-display-member-is-already-registered-to-event/ works like a charm! Thanks for that. Now i’d like to have a little IF/ELSE thing but do not know where to edit that?! So if the member has not registered <p class=”event_form_submit” id=”event_form_submit-<?php echo $event_id; ?>”> ELSE echo ‘<p style=”background-color:red; color:#fff; font-size:20px; text-align:center;”>Hey you already booked this!</p>’; Any idea? Thanks! |
|
Hi, In btween the curly braces on this line <pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>if($event_list_id == NULL) {} else { you will need to wrap your code in php tags though e.g. <pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>if($event_list_id == NULL) { |
|
hm, all is see is nothing?! what have i done wrong? … if($event_list_id == NULL) { echo ‘<p>SUBMIT BUTTON HERE</p>’; } else { ?> <p class=”event_form_submit” id=”event_form_submit-<?php echo $event_id; ?>”> <?php } ?> </form> |
|
Any news on this? |
Hi Klaus, If you require the services of a PHP developer to work with you to make your needed customizations as specified, we can advise contacting one of our recommended developers: |
|
|
I would do it slightly differently, with a flag: |
|
Excellent! Exactly what i was looking for. Thank you so much, Sidney! VERY RESOLVED 🙂 |
The support post ‘Member already registered’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.