BuddyDev

Search

A Desperately Needed Plug-in

  • Participant
    Level: Enlightened
    Posts: 39
    Aravind Nambiar on #5374

    @sbrajesh, thank you. Looking forward to it 🙂

  • Participant
    Level: Enlightened
    Posts: 66
    ljmac on #5375

    Okay Brajesh, I’ll be back in touch shortly.

  • Participant
    Level: Enlightened
    Posts: 66
    ljmac on #5376

    Hi Brajesh,

    I tried disabling any plug-ins that might conflict with it, but it doesn’t seem to be working for me at all unfortunately. Please note that I use your Notifications Widget plug-in to display notifications.

  • Keymaster
    (BuddyDev Team)
    Posts: 24075
    Brajesh Singh on #5377

    Hi Lee,
    thank you for the tests. I had not tested it on 1.8, so It is quiet possible that the hooks I am using is not even available. Will do testing and fork out a branch for 1.8.

  • Participant
    Level: Enlightened
    Posts: 66
    ljmac on #5381

    Thankyou so much Brajesh – sorry to be extra trouble. 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24075
    Brajesh Singh on #5382

    Hi Arvind,
    Please put this in your bp-custom.php

    
    function buddydev_add_more_notifiable_user_ids( $user_ids ) {
    
    	if ( function_exists( 'bp_follow_get_following' ) ) {
    		$user_ids = array_merge( $user_ids, bp_follow_get_following( array( 'user_id' => bp_loggedin_user_id() ) ) );
    	}
    
    	return array_unique( $user_ids );
    }
    
    add_filter( 'buddydev_user_notifier_notifibale_user_ids','buddydev_add_more_notifiable_user_ids' );
    
    

    That will notify users on any new activity of the people they are following.


    @ljmac
    ,
    No problem. I am on it.

  • Keymaster
    (BuddyDev Team)
    Posts: 24075
    Brajesh Singh on #5384

    Hi Lee,
    Can you please download this(It is specifically for 1.8)
    https://github.com/buddydev/bp-user-activity-notifier/archive/bp1.8.zip

    Others looking at this thread, Please use
    https://github.com/buddydev/bp-user-activity-notifier/ instead.

    Since WordPress 3.7 will not work on my system(I am using php 7+), I had to make some guess work for the back compatibility and was not able to test. Please give it a try and let me know.

    Thank you

  • Participant
    Level: Enlightened
    Posts: 66
    ljmac on #5385

    Wow, PHP7 – I’m still on 5.3 (once again, for compatibility with older stuff).

    Unfortunately this version doesn’t seem to work either, and frustratingly, there aren’t any PHP errors to give me a clue as to what is going wrong. I guess it’s too difficult for you to do at this time. 🙁

  • Keymaster
    (BuddyDev Team)
    Posts: 24075
    Brajesh Singh on #5386

    Hi Lee,
    The code should work fine on php 5.3

    Have you tried posting an activity after activating the plugin and then logging in as the friend of the user?

  • Participant
    Level: Enlightened
    Posts: 66
    ljmac on #5387

    Hi Brajesh,

    Yes, that’s exactly how I did test it.

    I’ve long since removed the BuddyPress notification bar to depend on your notification widget for this purpose. Is it possible it doesn’t work with your widget? I’m running version 1.0.7 for compatibility with BP 1.8.

    Were you able to test it on 1.8 yourself? If you got it working that gives me hope. 🙂

You must be logged in to reply to this topic.

This topic is: not resolved