Helping you Build Your Own Social Network!

Faster, better and easier!

Notification won't go away.

(15 posts) (4 voices)
  • Started 2 years ago by galaxy5
  • Latest reply from Brajesh Singh

  1. Problem

    1. I have read all the messages in my inbox.
    2. I can't selected all and mark them as read, no thing occurs.
    3. My notification up the top left keeps displaying that my friendship request has been accepted.

    Help
    1. I want to make the notification go away once the message is read.
    2. I want to make the read messages in my inbox as read so the messages (1) are in bold anymore.

    If anyone can help it would be much appreciated

    Posted 2 years ago #
  2. hi
    Which version of Buddypress+wp/wpmu you are running. Please let us know.

    Posted 2 years ago #
  3. My notification (admin bar) does the same thing. The 'friendship accepted' seems to hang there until a new notification comes in. Then it clears.... BUT if it's another 'friendship accepted' then the new one hangs there never going away until the next notification (and the cycle continues).
    I'm on wpmu 2.9.2 and bp 1.2.3 and default theme..
    I was thinking it might be a conflict with another plugin but it's not really such a big deal for me so I haven't bothered trying to test it by deactivating plugins and such.

    Posted 2 years ago #
  4. The latest, WPMU 2.9.2 and BuddyPress 1.2.3

    Posted 2 years ago #
  5. hi There
    There is a small bug in bp the acceptance notification link generated should be username/friends?new but it points to username?new

    Anyway, we can use a hack for now

    add_action("wp","delete_accepted_friends_notification_now");
    function delete_accepted_friends_notification_now(){
    if(!is_user_logged_in()||bp_is_home()&&!bp_is_member())
    return;
    
    global $bp;
    bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id,  "friends", 'friendship_accepted' );
    
    }

    Please put the above code ion bp-custom.php.It should remove the friendship acceptance notification.
    I am unable to reproduce the message bug, but will try again later and post back.

    PS: I will be away for next 5-6 hours. Please do post back if it worked for you or not.

    Thanks
    Brajesh

    Posted 2 years ago #
  6. Hi, there is no file called, bp-customs.php in plugins/buddypress/..

    Do I have to create the file?

    Posted 2 years ago #
  7. Yes please create a file called bp-custom.php in "wp-content/plugins"

    Posted 2 years ago #
  8. Thanks mate

    Posted 2 years ago #
  9. Thanks Brajesh, after putting that code (had to add the <?php in the front and ?> on the end.. cuz with out that it freaked out the admin bar ... ..
    but it worked.. I clicked on the notification .. it went away.. nice

    thanks again

    and thanks to galaxy5 also because I wasn't going to say anything about it

    -tom

    Posted 2 years ago #
  10. hi Tom, galaxy5
    You are most welcome :)

    Posted 2 years ago #
  11. Not to happy with this advice Brajesh.
    Now I have a member that sent me a friend request and I am unable to accept it.
    Futhermore I never received any type of notification. On his profile is says "friendship requested" and I have no indication what so ever in my profile area. If I wouldn't have went to his profile I would have never known he sent me a friendship request.
    Of course I can't accept it anyway. So I guess I have to now remove the code. Then send the member a request asking him to cancel the friendship request and start over.

    Posted 1 year ago #
  12. hi Tom
    The code I had put has nothing to do with the email notification you get when someone requests you friendship.
    The above code only deletes the notification for accepted friendship not the friendship request. Please make sure to check other plugins for the issue.

    Posted 1 year ago #
  13. Hi,

    In the plugins folder I created a folder called bp-custom and paste their a file called bp-custom.php.

    This is exactly in the code:

    <?php
    add_action("wp","delete_accepted_friends_notification_now");
    function delete_accepted_friends_notification_now(){
    if(!is_user_logged_in()||bp_is_home()&&!bp_is_member())
    return;

    global $bp;
    bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, "friends", 'friendship_accepted' );

    }

    ?>

    And it doesn't work. The noficiation is still not clearing. I am using WordPress 3.0.4.

    and buddypress 1.2.7

    Posted 1 year ago #
  14. Bump! Thanks.

    Posted 1 year ago #
  15. Hi Emily, Haven't had time to check this code. Will check today and let you know.

    Posted 1 year ago #

Reply

You must log in to post.