Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Filters


  • James
    Participant

    @janismo

    hi,

    if I add new filter to site wide activity drop-down e.g. “, where do I tell it, which filter I want to use for bp_has_members from activity-loop.php?

    thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • It takes the value=”” attribute and, from memory, uses that for the type= and sometimes the action= arguments for bp_has_groups. In the default theme, It does this in bp_dtheme_ajax_querystring()


    James
    Participant

    @janismo

    thanks Paul, now it is more clearly. Taking into account that in bp_dtheme_ajax_querystring() I see only type, scope and action parameters, do I understand correctly that there is no way to add simple filter which would return loop with specific IDs, e.g. `bp_has_activities( ‘object=groups&primary_id=…, …’)`?


    @ChrisClayton
    Participant

    @chrisclayton

    “do I understand correctly that there is no way to add simple filter which would return loop with specific IDs”

    @janismo is the ‘include’ parameter what your after?

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    `include optional
    Pass an activity_id or string of comma separated ids to show only these entries.

    Default value: false`

    According to the codex, include=1,2,3 should only show activities with the Activity ID’s of 1, 2 and 3.


    James
    Participant

    @janismo

    hi @ChrisClayton, bp_has_activities( ‘object=groups&primary_id=…, …’) is a working solution for custom loop. Problem is that I need this loop to appear as a drop down filter in site wide activities, e.g. Everything, Updates, etc. That’s why I want to add this “, but cannot get how to tell it to use “object=groups&primary_id=1”, and if it is possible at all, since, as Paul mentioned, bp_dtheme_ajax_querystring() uses just few parameters.


    James
    Participant

    @janismo

    hi, getting back to my thread, could anyone please tell if it is possible or not?

    basic idea is to show activities of the specific groups in the site wide loop (default one). thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Activity Filters’ is closed to new replies.
Skip to toolbar