Replies
- deleted on January 11, 2025 at 8:54 am in reply to: BuddyDev Friends Suggestions Pro “like/not like” #54561
Hi, no problems at all haha, happens to the best of us.
Regarding my question – I already found out how “like” and “not like” works – its a query based argument, works kinda like “contains”, right?
So i would only love to know if there’s any chance to modify the plugin so that certain percentage/amount of conditions is met.I tried to look through the code and saw that its working based on AND or OR, so maybe let’s say we have 5 conditions, if first 2 match, then check if any of the remaining 3 match and if yes, match?
Thank you very much for your time and answer!
- deleted on October 16, 2021 at 1:45 am in reply to: Notification delay until moderation approval #41036
Notifications are sent out for a variety of reasons such as: someone commented on the user’s post, someone posted in a group the user has joined, someone posted to the user’s timeline, someone tagged the user, etc. Our users get the notification but cannot see the activity while it’s in moderation. This is a serious issue considering it makes our platform seem broken to our users when notifications are being clicked on real-time but our moderation needs time to review it so notifications appear to be sent for nothing.
We don’t want to remove notifications, but we need to them to be dependent on the moderation outcome. If a moderator approves it, then the notification is sent; if a moderator rejects it, then the notification is not sent. This should apply to both local and email notifications. I have a hard time understanding how moderation can be of any use if it means notifications are sent to users before they can even see it, especially when some of those notifications are for activity that was rejected in moderation.
Thanks for answering.
I tried two different codes that I tried to modify, see:
function function1( $stop_notification ) { if ( bp_has_member_type( bp_displayed_user_id(), 'student' ) ) { $stop_notification = true; } return $stop_notification; } add_filter( 'bp_local_group_notifier_skip_notification', 'function1' );With this function I expected users with member type “students” not to generate notifications when posting something but this is not working.
function function2( $stop_notification ) { $member_type = bp_get_member_type( bp_displayed_user_id() ); if ( 'student' !== $member_type ) { $stop_notification = true; } return $stop_notification; } add_filter( 'bp_local_group_notifier_skip_notification', 'function2' );This second also did not work. And she removed the notification for any users, even teachers were not generating notifications. I tried to change the
!==to===but it didn’t work either.- This reply was modified 7 years, 1 month ago by
deleted.
- This reply was modified 7 years, 1 month ago by
- deleted on May 6, 2019 at 4:12 pm in reply to: [Resolved] Join group notifications on public group #22832
I have already done this, thank you anyway
- deleted on May 6, 2019 at 2:54 pm in reply to: [Resolved] Join group notifications on public group #22826
group join activity updates
i’m using yours plugin for group activities https://buddydev.com/plugins/bp-group-activities-notifier/
but even without he the notifications still showing
This is the notification I want to remove from the public group
It only appears on the activity page, it is not sent to usersThanks!
- deleted on May 6, 2019 at 2:48 pm in reply to: [Resolved] Return to previous page after login #22825
thank you for your support!
Actually I had not realized that who was redirecting was woocommerce, so I used this function that I found to redirect using a woo hook itself.
It worked very well!function wc_custom_user_redirect( $redirect, $user ) { $role = $user->roles[0]; $dashboard = admin_url(); if( $role == 'administrator' ) { //Redirect administrators to the dashboard $redirect = $dashboard; } else { //Redirect any other role to the previous visited page or, if not available, to the home $redirect = wp_get_referer() ? wp_get_referer() : home_url(); } return $redirect; }THANKSSSS!!!!!!
- deleted on January 15, 2019 at 9:34 am in reply to: [Resolved] Restriction of MediaPress (with Buddypress) to selected user (-groups) #20249
Many thanks, this snippet works great.
Regards
Nils - deleted on July 7, 2016 at 4:11 pm in reply to: [Resolved] Re-order "Message Privacy" and "Profile Privacy" in adminbar nav #4620
Hello Brajesh,
This update did exactly what I was looking for, so thank you! The extra adminbar nav tabs are now aligned the way I want.
Thanks,
Corey