Skip to:
Content
Pages
Categories
Search
Top
Bottom

documentation for remove_action activity streams

  • Profile photo of djsteveb
    djsteveb
    Participant

    @djsteveb

    I’ve seen a couple examples in some comments, like:

    To prevent new entries, try adding this to your theme functions.php
    remove_action( ‘bp_register_activity_actions’, ‘friends_register_activity_actions’ );

    Can someone add a page to explain for examples,maybe a list of things can be blocked and the underscored code for each?

    One bp install I am using I current set the old ‘block activity strames’ plugin to block

    friendship_created, blogpost_liked, new_member, joined_group

    but I’d like to block “changed profile picture” as well
    (it would REALLY awesome to allow one instance of changed profile picture to show in stream, but have something determine that profile pic was changed more than once in last 24 hours, then only show one instance (instead of the dozen added activity “UserX changed profile pic a dozen times)

    My old non-updated version of buddypress activity block shows these options:

    updated_profile
    new_blog_comment
    new_blog
    rtmedia_update
    friendship_created
    blogpost_liked
    joined_group
    created_group
    activity_liked
    new_avatar
    bp_album_picture
    new_member
    new_blog_post

    I am not sure if this is what could/should be added / append to the code that Shanbp had suggested above, and if so how.

    Going back through old threads, I see that there was a post about:

    Recently introduced function bp_parse_args allows since 2.0 to modify easely your templates. Faster and lighter than a plugin.

    Is the parse args better, or is that older and the current preferred method is to use a them functions.php?

    Is one lighter on resources than the other..
    …confused and not sure what method to use, and how to properly use it.

Viewing 1 replies (of 1 total)
  • Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    That’s a good idea. If you do a search for bp_activity_add() you will see everything that creates an activity item. Some plugins use the activity stream so be sure to search any of those you may have installed as well.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar