BuddyDev

Search

BuddyPress User Notifications Widget plugin

bp-notification-widget-admin

Hi All,

I am sure most of you are busy building the social networks on BuddyPress. Well, here I am presenting another addon to help you a little more.

The BuddyPress notifications widget was suggested by @Reboot in the forum. There is one existing notification widget for BuddyPress but that does not allow multi instance or some other customizations. Reboot suggested to update that widget but when I checked the code, writing a brand new version seemed much better choice & that’s why I am presenting it here today :)

Some features:-

  • Multinstance, means you can have as many instance as you want.
  • Allows you to show/hide the notification count in widget title
  • Allows   you to show/hide the message showing notification count (please see screenshots)
  • Allows you to show/hide the notification list(well, I am not sure if you would like to use that anyway)
  • Completely localizable, please use poedit/any other tool to translate

Let us see some screenshots

Ana an example of output(2 widget instances)

I hope some of you will find it helpful.

Download & Installation:-

http://buddydev.com/plugins/buddypress-notifications-widget/
Git Repo:- https://github.com/sbrajesh/buddypress-notifications-widget

Please do let me know your suggestions or any thing you want in the comments.

PS: Last weekend, I promidsed to write some of the tutorial tips/tricks for BuddyPress. So, I am going to put eaither one plugin each day this week or atleast one tutorial. Please do keep checking :)

Get latest WordPress & BuddyPress tutorials, news and tricks in your inbox.

We send out a lovely email newsletter with the most popular stories. Be a part of it.

50 Responses to BuddyPress User Notifications Widget plugin

  • Thanks so much @sbrajesh !!! I LOVE THIS!!!

  • What they both said :-) Thank you Brajesh.

  • Are you gonna update the bp-live-notification code?

    it doesn’t detect when you mention another user, its a great plugin but I think thats essential, mentions must me detetcted like notifications!

    I found this, i think it will help because is very similar to what i say.

    http://buddydev.com/forums/topic/at-mention-notification

    thanks , stay coding!

  • Are you gonna update the bp-live-notification code?

    it doesn’t detect when you mention another user, its a great plugin but I think thats essential, mentions must me detetcted like notifications!

    I found this, i think it will help because is very similar to what i say.

    buddydev (dot) com / forums / topic / at-mention-notification

    thanks , stay coding!

    • @uhgm ,@mynameis,
      That is related to BuddyPress not the live notification plugin. The live notification will show any notification recognized by buddypres. Does buddypress show the mention notification in notification bar ?

      • @Brajesh Singh

        Nope, BP doesn’t show the mention notification in the notification bar, but, i think , you can detect the mention notification, with the code i found in this web. You know?

        You can detect the mention notification with the code i found in this web (go up for the link); integrate that functionality into the plugin, and show the live notifications, sorry for my horrible english, i must go to bed, im very tired lol.

        thanks, sorry for the double comment.

        stay coding, you do your best.

  • A nice little addition would be,

    when hovering over the notification an option shows to clear it. Like an x icon or something so that the user doesn’t have to visit every notification to clear it if they don’t want to.

    • That is a very good idea reboot. It’s must have in next upgrade :)

      • Would come in handy as I have an issue where someone commented on an activity that I did as well but the member deleted their activity and now I can’t get rid of the notification.

  • Same problem as reboot. It conflicts with Bp photo+tags plugin someone tags me and notification always be 1. I can’t delete to 0.

    • Hi Firat,
      That is a problem with the photo tag plugin then.Please report the issue to the developer. They should remove the notification. This plugin simply displays it. Hope that helps.

  • plz tell me how to add Notifications Widget plugin in my wall.fm site plz tell

  • Hi Brajesh,

    I just updated my site to BuddyPress 1.5.1 and the notification widget no longer appears in my widgets menu. Have you had any issues with BP 1.5.1 or should I be looking to find another culprit for why the widget does not appear as an option in my widgets menu.

    Great plugin and thanks for your help!

    Jeff

  • Is it possible to hide the widget if there are no notifications? I would only like to have it show when there are actually new notifications.

    • Thanks for the suggestion Keith.
      I have just updated it to as you mentioned. you can download version 1.0.4 from github and It won’t show the widget if there are no notifications.

  • I’m making a menu of links in my account BuddyPress site header. I must also place notices of BuddyPress. I would like some code to make the notifications in the form of text, and when to travel through the mouse, the notifications appear in drop down. Would do this?

  • Hi Brajseh!

    Is this plugin still compatible with the new BuddyPress 1.5.6? Looks like a really usefull widget! Thanks.

    • Hi Magnus,
      Thank you for the comment. As far as I remember, It is compatible with 1.5.x series and there is no major change in bp 1.5.6 that will prevent it from working. So, I assume that it will work.
      Can you please give it a try?

      • Hi again Brajesh!

        I love the widget, it works perfectly! Super useful. I’ve translated it into Swedish, really easy to do. Would it be possible to add singular and plural for notifications in the widget? I’d like a different message “You have 1 new notification” or “You have 3 new notifications” for grammatic reasons if that’s easy to incorporate. The widget hides nicely when there are no new notifications, super slick.

      • Also, I noticed in the code that the widget checks if the user is logged in. Really usefull function, however I’m using the Dynamic Widgets plugin to check if users are logged in. Should I comment out this part of the code in your widget to save an extra check and make the web page load quicker?

  • Thank you ,
    can u make shortcode to put results to another place in my set , i dont want to be widget?

  • Hi there, this plugin is not working, please help me out. I also had a try on http://buddydev.com/plugins/buddypress-activity-comment-notifier/
    Thanks!

    • Can you please be a little more specific.
      The user notification widget is only visible if you have some pending notifications(for the logged in user).

      • Sure!

        The scenario is that i have two registered users on my WordPress website. When user1 will update any post on activity page then user2 will receive a notification like we have in Facebook, but it is not working. I tried on newly installed WP site as well.

        Or please suggest me a solution that i can trigger my own notifications like on some button in the wp posts, when someone clicks then it should be broadcast to everyone that userX has unlocked ABC gift.

        Thanks

        • Hi,
          here is the issue.
          When a user updates something, It may not generate a notification for other users. Mostly, the notifications depend on context in BuddyPress. For example, recieving a message or @mention or a friendship request is a notification but other operations may not be.

          So, The problem you are facing seems to be originating from the nature of BuddyPress notifications.

          Does the gifts plugin generate a notification for other users(I understand It is generating the notification for the user who unblocked it)?

  • @sbrajesh
    Gift is something i have placed a button in the post with an image. For example Image is Necklace and button is labeled as ‘Buy or Unlock’. When a member click the button to unlock this necklace (here unlock means he have the award from Cubepoints), the Cubepoints points will be deducted… let say $100 for that necklace will be reduce and here i want the other members to be notified that “X user has Unlocked Necklace” on the BP notification bar (as on the top)
    Thanks

  • @sbrajesh will there be a update for 1.7 buddypress soon? its not showing up at all on my website. i add the widget to side bar but nothing shows up

    • Hi Alex,
      Thanks for reminding. I have just updated it and now it works with BuddyPress 1.7+(tested with 1.7.2). Please upgrade to version 1.0.6 and let me know if that works or not.

  • ultimate plugin specially for Bp magic.. but sir when B magic we use cant like post or anything…doesnt appear in theme.other wise nice plugin and theme

    • Hi Pravesh,
      are you using the last updated version of Notification widget? Please note, the notification widget is shown with the theme only if there are some notifications available for the user.

    • Hi-
      Unfortunately, the widget does not appear. I am running all the latest release versions of Buddypress/Wordpress (as of 7/24/13).
      Thanks,
      Adam

  • Perfect plugin for buddypress :)!
    I want to ask, how to make notification for user when their article/ blog post commented. The user in my site can post/ publish an article. It would be so great if this plug in also notify the user (author) when their article/ post commented by somebody else, not only notify the activity in buddypress. Can you help me with that?
    Thank you…

    • Hi terry,
      My apologies for delayed reply. seems like a very good Idea. Do you want the author to be informed via BuddyPress Notification or with mail too?

      • Hey Brajesh.

        Is there anyway to make notifications for
        – new blog comment on post current user has written
        – new reply to a blog comment current user has written
        – new reply to a topic current user created in bbpress forum
        – notification when someone favourites a current users blog post/forum topic/comment/reply

        If these are supposed to work by default do you know why they might not work?

        Would be willing to pay for these notifications to be added if necessary

        • Hi Andy,
          I am sorry for the delayed reply.
          Currently BuddyPress does not support these notifications natively. To have it supported, we will need to manage these notifications via another plugin or code. I will give it a try next week.

          Thanks
          Brajesh

  • I was actually going to request a plugin to do this as well! That would be great!

  • Widget is not showing up…using bp 1.8

  • Hi there

    Is there a way to force the widget to display, even if there aren’t any notifications. I see, from reading the comments, that you made the widget hide when there aren’t any notifications. Personally, I would like to see the avatar, name, the logout button and the fact that there are no notifications.

    This would then be the perfect widget for my site (as hovering over the WP menu bar does nothing and I can’t figure out what is wrong with my theme)

    Thanks :)

  • Plugin is not working with :-

    WordPress 3.7.1
    BuddyPress 1.8.1

    Any help would be appreciated.

  • Hey Brajesh … same for myself as Malik … the plugin isn’t showing up in BP1.8 :-) Could you fixy fix for us please?

  • Hi Brajesh,

    Thank you for this great plugin. Just to let you know that there are a few problems with it when I have been testing it with 1.9 the word ‘array’ is being printed in the widget like this:

    Notifications(1)

    You have 1 new Notifications Array
    [x] Clear All Notifications

    Thanks again for a great plugin!

  • Cool plugin idea but the widget doesn’t appear to be showing up with BP 1.9!
    It isn’t popping up at all when a user is mentioned or private messaged.

  • Version 1.0.7 totally broke my widgets – I got a completely blank widgets column. I’m running BP 1.7.3 and WP 3.5.2. Reverting to 1.0.6 rectified this issue.

  • Okay, I found the PHP error for this:

    PHP Fatal error: Call to undefined function bp_notifications_get_notifications_for_user() in [URL REMOVED]/wp-content/plugins/buddypress-notifications-widget/notifications-widget.php on line 52

    • Hi Lee,
      I have pushed version 1.1 to WordPress.org repo which adds back compatibility with older versions.

      That will fix all the issues caused by 1.0.9. Hope that helps.

Leave a Reply

Are you looking for support?

Please join BuddyDev Premium Club to get timely support. At the moment, We are unable to provide much support in comments. By Joining BuddyDev Premium Club, you will get guaranteed support(and we have 30 days money back guarantee too).

Your email address will not be published. All the fields marked as * are required.


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>