ngkokkee
Forum Replies Created
-
Forum: Plugins
In reply to: [BuddyPress Group Email Subscription] Quotes and ApostrophesYou have to do a bit of hacking to fix this.
For the title, there is a filter ‘ass_admin_notice_subject’ that can be used to add your filter to process the the subject and remove the \ character.
However, there is no filter for the body, so you have to hack the code bp-activity-subscription-functions.php line 1657 onwards.
If you have multiple ticket types in one booking, the tickets will be printed out sequentially in one single row.
<ticket 1><ticket 2><ticket 3>
instead of
<ticket 1>
<ticket 2>
<ticket 3>Just allow multiple ticket types and set the show_tickets flag to true in the class constructor and you will see this effect. The code prints </tr><tr> to break them into rows.
Just to clarify on your testing.
Were you able to add and remove the fields in the list to be displayed when you open up the dialog box? (i.e. dragging the field into and out of the active list)
I am able to see the dialog box on my iPhone Safari browser but when I try to drag a field, the whole screen is dragged instead.
Took out the strong emphasis since it doesn’t show up in the code block.
if( $this->show_tickets ){ $loopcount = 0; foreach($EM_Booking->get_tickets_bookings()->tickets_bookings as $EM_Ticket_Booking){ $loopcount++; if ($loopcount > 0) { echo '</tr><tr>'; } ?><td><?php echo implode('</td><td>', $this->get_row($EM_Ticket_Booking)); ?></td><?php } } else {
Thanks, just noticed the option in the export csv panel to split by ticket type. It look so similar to the booking table settings panel that I didn’t notice the addition checkbox on top.
This should be sufficient for my needs.
Would it be possible to add that checkbox to the booking table settings for future releases?
Thanks, I will mark the topic resolved.
Any developer prowling around can confirm whether this can be patched in the next release?
I didn’t test much of the buddypress features but you might need to take a look at other code access object members directly whether they should also be using the get_ functions instead.
One line code change fixed the problem.
In the file events-manager\buddypress\bp-em-activity.php
function bp_em_record_activity_booking_save( $result, $EM_Booking ) $user = $EM_Booking->person;
replace with
$user = $EM_Booking->get_person();
Not sure why $EM_Booking->person is not initialized but the class itself seems to be using $EM_Booking->person_id which is valid. The $EM_Booking->get_person() checks whether $EM_Booking->person is initialized and initialize it with $EM_Booking->person_id if not.
Missing a handler for user accepting invites. Needed by the autojoin plugin.
add_action('groups_accept_invite', 'bp_gtm_def_add_as_guest_reversed', 10, 2);