Dirk
Forum Replies Created
-
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] ics parsing errorI closed the double post, but still I am looking for a solution. I’ve tried some modifications on ical.php and em-ical.php but with no success. I do not know, how to delete the first empty line.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] ics parsing errorSorry for posting this twice. This was done not on purpose.
Yes, Patrick! Perfect! Thank you so much!
Yes absolutely right. It needs some coding, I agree. You see my proposal above. Come back to me if you have questions.
Forum: Plugins
In reply to: [Events Manager – Event Cancellation] Using on FrontendOk, however what the purpose is, for my case I would appreciate a cancel-button for the event organisers. Can you tell me, how I can implement this?
Meanwhile I have coded a solution for that. It’s a bit tricky (espaciallity for me as non-coder). If someone is interested in that, you can contact me (see website and mailadress in my profile).
- This reply was modified 4 years, 11 months ago by Dirk.
Ok, I got it working now:
First I store all approved bookings in an array $peoples…
if( count($EM_Bookings->bookings) > 0 ){ foreach( $EM_Bookings as $EM_Booking){ /* @var $EM_Booking EM_Booking */ if($EM_Booking->booking_status == 1 && !in_array($EM_Booking->get_person()->ID, $people) ){ $i++; $peoples[$i] = $EM_Booking->get_person()->ID; }}}
Then I get the list of cancelled bookings…
if($EM_Booking->booking_status == 3 && !in_array($EM_Booking->get_person()->ID, $people) ){
Finally I check if no approvals are within the list of cancelled bookings….
if (!in_array($EM_Booking->get_person()->ID,$peoples))
PERFECT! THANK YOU!
- This reply was modified 4 years, 11 months ago by Dirk.
Thank you for your help! I fear my coding skills are not enough for this. But I’ll try and report back if I succeed. ??
But still, my question is not answered. I am looking for a solution that cancelled bookings will not be shown if a user is approved for the booking. You can see in my example that this is not the case.
If you have installed and activated Collapse-O-matic you can add the following code to… templates/placeholders/attendeeslist.php
echo '[expand tag="h4" title="Attendeeslist" expanded="true"]';
You paste it above the existing line….
foreach( $EM_Bookings as $EM_Booking){ /* @var $EM_Booking EM_Booking */
And at the end….
<?php echo '[/expand]';
You put this underneath…
</ul>
Ok, fine if you can help.
@duisterdenhaag Are you now official part of the support team?
In my case I have disabled the “Double Booking Option”. However one can accept and cancel a booking as often he likes and will appear on both lists (approved and cancelled) as you can see in the following example. The user has accepted the booking and then cancelled and finally accepted again….
Me neither on Samsung Android. It seems to be a problem on mobile devices.
Better description:
In principal I do not want to see cancelled bookings of a person more than once. I wonder why each cancellation will be listed. If a person has cancelled three times for an event, three cancellations will be shown in the bookings-list. I do not see a sense in this behavior.