Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Member
    deleted on 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!

  • Member
    deleted on 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.

  • Member
    deleted on in reply to: Admin notifications #24350

    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.
  • Member
    deleted on in reply to: ReCaptcha #23266

    Hi, any news about the plugin?

  • Member
    deleted on in reply to: ReCaptcha #23137

    amazing!!!
    I be waiting for this
    Thanks

    • This reply was modified 7 years, 3 months ago by deleted.
  • Member

    I have already done this, thank you anyway

  • Member

    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 users

    http://prntscr.com/nl4mmn

    Thanks!

  • Member
    deleted on 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!!!!!!

  • Member

    Many thanks, this snippet works great.

    Regards
    Nils

  • Member

    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