Skip to:
Content
Pages
Categories
Search
Top
Bottom

Insert Activity filter for Album

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of foxly
    foxly
    Participant

    @foxly

    @raoulbeltra

    BP-Album tags the “component” field of all our activity stream posts with the id “bp-album”. So if you filter the activity stream based on the component being ‘bp-album’ you’ll only get BP-Album posts.

    So, go to the code that generates that drop-down menu, and add a menu option that filters on “BP-Album”. BP’s AJAX functions should handle the rest for you.

    ^F^

    Avatar of @ChrisClayton
    @ChrisClayton
    Participant

    @chrisclayton

    Just to build off of what Foxly said, for thoes who are new and unaware of how the filter dropdown actually works, inside activity/index.php (and members/single/activity.php) you will see afew lines that look like ` `

    Just make a new line the same as above, then change the value to BP-Album (i’m pretty sure it was an underscore last time i had to do this though, so if the hyphen doesn’t work, then try it with an underscore)

    EDIT: If all else fails, “bp_album_picture” is the value i use on one of my sites that i’ve added this to, and it works well. Just for completeness: You could also add it to the “bp_member_activity_filter_options” and “bp_activity_filter_options” actions to automattically show it rather than editing files. :)

    Avatar of raoulbeltra
    raoulbeltra
    Participant

    @raoulbeltra

    Hi thank you,
    I try to do everything that Chris suggest me (I try before “bp-album”, after “bp_album” and “bp_album_picture” ) ….so I can see the name of the filter on the drop-down menu, but when
    I select it …I see no activity (before to be sure I have upload a picture on the album ) ….if you
    want you can see on http://bloggers.fashionbleeker.com/activity/
    Look here below the text code I added:

    http://i255.photobucket.com/albums/hh153/mcbrandsstores/second/77b3b09a.jpg

    Avatar of @ChrisClayton
    @ChrisClayton
    Participant

    @chrisclayton

    did “bp_album_picture” work? When i change it to that via Chrome Dev tools it seems to work… and it works on my sites, so it should work…

    http://img7.imageshack.us/img7/2612/fashionbleeker.jpg

    Avatar of raoulbeltra
    raoulbeltra
    Participant

    @raoulbeltra

    Ok …NOW IS WORKING !!!!!
    Maybe before I put something wrong !!!
    Thank you @ChrisClayton …you help me so much !!!
    GREAT !!!

    Avatar of foxly
    foxly
    Participant

    @foxly

    @ChrisClayton

    Nice work Chris. Thanks for handling this one … :)

    ^F^

    Avatar of @ChrisClayton
    @ChrisClayton
    Participant

    @chrisclayton

    @foxly – If it means you have 5 extra minutes coding awesome plugins, then anytime! :D

    @raoulbeltra Your welcome. Glad it’s working :)

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

You must be logged in to reply to this topic.