domoticom
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: block editor doesn’t popup in Chromethnx, I checked, it’s up-to-date
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] declineI can’t see an ‘edit post’ option 🙁
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] declineok, in the mean time a am testing with two tickets for an event:
ticket type 1: joining the event
ticket type 2: not joining the eventThen I would like to show the status of al team members in a table on the event page, so evenry team member can see who joins the event and who doesn’t.
A have already found out how to display the booking comment there by adding this to the template (see attendeelist.php bellow)
I’d like to add tickettype (type 1, yes, or type 2: No) to this page.
Preferably in a table with these columns: name, comment, ticket type
But I can’t find ticket type in the array that is used in the php file bellow.$people = array();
$EM_Bookings = $EM_Event->get_bookings();
if( count($EM_Bookings->bookings) > 0 ){
?>
<ul class=”event-attendees”>
<?php
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) ){
$people[] = $EM_Booking->get_person()->ID;
echo ‘
- ‘. $EM_Booking->get_person()->get_name() . ‘ – ‘ . $EM_Booking->comment . ‘
- ‘. $EM_Booking->get_person()->get_name() . ‘ – ‘ . $EM_Booking->comment . ‘
‘;
}elseif($EM_Booking->booking_status == 1 && $EM_Booking->is_no_user() ){
echo ‘
‘;
}
}
?>
<?php
}
Solved it
It seems I can’t use get_comment() because that function doesn’t exist.
However in the array is a value named ‘comment’ that can be used like this:echo ‘
- ‘. $EM_Booking->get_person()->get_name() . ‘ – ‘ . $EM_Booking->comment . ‘
‘;
thnx, but i need to show the attendeeslist with their comment.
What is the fucntion for that ?
I can see get_name() in your snippet, so what’s the function for comment ?
get_comment() doesn’t work.Hi Timrv, your snippet works, there is hope :-), but what is this: get_spaces()
They are not placeholders or shortcodes are they ?
Where can I find a function list that can be used (hopefully with the function ‘comment’)
Thnx!I found this code, but where does it go, and how ?
$bookings = $EM_Event->get_bookings();
foreach ( $bookings as $EM_Booking ){
echo $EM_Booking->output(“#_BOOKINGID”);
}
i have used placeholders for that. It shows the names in a list:
go to events, setting, style (3th tab), go down to ‘style for pages with one event’ and add:
<p>
deelnemers
#_ATTENDEESLIST
</p><p>I would like to add the comments field, but don’t know how.