Skip to:
Content
Pages
Categories
Search
Top
Bottom

Screen Notifications. A comprehensive thread.

  • Avatar of Andrew Tibbetts
    Andrew Tibbetts
    Participant

    @andrewgtibbetts

    What does Buddypress notify users of via the Notifications drop down?
    What does Buddypress NOT notify users of via the Notifications drop down?
    Is there a way to turn on/off or add what activities send notifications to the Notifications drop down?
    I’m looking to use the screen notification system to alert online users of stuff that’s happening in posts (not references to posts in activity) that they either created or are participating in.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Avatar of Andrew Tibbetts
    Andrew Tibbetts
    Participant

    @andrewgtibbetts

    Anyone? Bueller?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    You get notifications for friend adds, messages and comments/replies

    The notices are customizable. It’s best to look through the code to see how they work. Most things, like sending a message will run a notice function. So you can add or take away what calls this notice function.

    Avatar of Andrew Tibbetts
    Andrew Tibbetts
    Participant

    @andrewgtibbetts

    Thanks modemlooper.
    I have been looking though the code for over a month now and I’m getting nowhere.
    I am trying to modify the “BuddyPress Activity Comment Notifier” plugin to do what I want—it takes activity update comments and makes a screen notification for them.
    This is exactly what I want to do but for post comments, not activity update comments.
    A possible solution that I’m stuck on is how to trigger an activity comment when someone creates a post comment.
    Well, I’m stuck on everything; even how to approach this, and most likely, I’m going about this all wrong.
    If any kind soul can take a minute to provide details, it would be greatly appreciated—otherwise it might be nuts to the client.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    You should be able to create a hook via:
    `do_action(‘wp_insert_comment’, $id, $comment);`

    which is located ~Line 1259 in wp-includes/comment.php -> wp_insert_comment()

    Avatar of Andrew Tibbetts
    Andrew Tibbetts
    Participant

    @andrewgtibbetts

    Thanks for the reply Shane.
    The problem I’m having is reconciling the params that WP post comments use and the params that BP activity comments use.
    The simplest route (that I can glean) to get the functionality I want is to programmatically insert an activity post comment every time a comment is made on the actual post.
    So, how do I grab the necessary params from a regular post comment and pass them to a function that will create an activity post comment?
    I can (hopefully) figure out how to redirect the activity post comment to link to the post and not the activity item once I get this initial part working.
    (The reason I think faking an activity comment is so that I can utilize preexisting functions that find all the involved members that are commenting on the post, which only exist in BP activity and not in WP—correct me if I’m wrong)

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    >So, how do I grab the necessary params from a regular post comment and pass them to a function that will create an activity post comment?

    If I understand you correctly – an activity item should be created when you comment on a post page
    At least it does on http://testbp.org/activity/ – try it.
    ( note: on my 1.6 RC1 install – an activity item is NOT created when you comment on a post page – and I don’t know why at this time )

    So, if on your installed BP version ( which is ? ) , activity items are created when a member comments on a post page, then you should be able to hook into the creation of that item and generate a notification.

    If, on your install, activity items are NOT created when a member comments on a post page – then there is another issue and I’d be interested in the answer.

    Avatar of Andrew Tibbetts
    Andrew Tibbetts
    Participant

    @andrewgtibbetts

    Thanks for the help Looper and Shane.
    I got it working!
    Had to redeclare some functions and modify an already existing plugin but it works…whew.

    Avatar of bobemil
    bobemil
    Participant

    @bobemil

    Hello there Andrew! I have trouble with this too (months of frustration). I would really love if you could share your solution for viewing a comment notification to the post author. I can offer you a invite to Dribbble if you help me out with this!

    Avatar of Andrew Tibbetts
    Andrew Tibbetts
    Participant

    @andrewgtibbetts

    Yikes! Sorry, Bob, I just realized I was not subscribed to this thread. Anyway, the functions that I had gotten to work for creating activity notifications from actual blog comments (not activity comments) was working but is now broken. :\ Here is the new thread I have created to tackle this new situation. Feel free to add a “bump”. ;) http://buddypress.org/support/topic/help-me-fix-a-function-that-adds-blog-comments-to-activity/

    Avatar of Andrew Tibbetts
    Andrew Tibbetts
    Participant

    @andrewgtibbetts

    It seems that screen notifications in Buddypress 1.6.1 are busted. I’ve been struggling with this for days,weeks,months—also found this: http://buddypress.org/support/topic/notifications-do-not-seem-to-work/ Can anyone confirm or deny?

    Avatar of webwarrior.wng
    webwarrior.wng
    Participant

    @webwarriorwng

    Hi @andrewgtibbetts

    I am looking for some notification triggers/functions/hooks. For e.g. i have a button and i want to notify others about something on that button event. Like on button click, somebody can unlock some rewards so that others will have the notification.

    Thanks & regards

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.