Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to filter updates as default activity stream instead of everything


  • debu89
    Participant

    @debu89

    I want to know how to show updates as default activity stream instead of everything.I have searched whole day but didn’t find the solution.Please someone help…

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

  • danbp
    Participant

    @danbp

    hi @debu89,

    which updates exactly ? 😉
    Anyway, you have to modify a little the activity template.

    The reference you need are explained here. Depending on what you want to see, you probably will have to combine several possibilities.

    Concretly, do the following

    1) create a child theme
    2) put a copy of themes/bp-default/activity/activity-loop.php into the /activity/ folder of the child theme.
    3) Add a condition at line 32, of the copy just before the while ( bp_activities() )…bla…bla
    4) close the condition with a endif at line 50, juste before the closing ul tag

    The following example (probably not THE solution for your demand) shows the last 3 notices published on different group activities.

    <?php if ( bp_has_activities( ‘object=groups&action=activity_update&max=3’) ) : ?>
    +-+-+-+
    +-+-+-+
    +-+-+-+
    <?php endif; ?>

    Hold on ! 😀


    danbp
    Participant

    @danbp

    Hi @debu89,

    which updates exactly ? 😉
    Anyway, you have to modify a little the activity template.

    The reference you need are explained here. Depending on what you want to see, you probably will have to combine several possibilities.

    Concretly, do the following

    1) create a child theme
    2) put a copy of themes/bp-default/activity/activity-loop.php into the /activity/ folder of the child theme.
    3) Add a condition at line 32, of the copy just before the while ( bp_activities() )…bla…bla
    4) close the condition with a endif at line 50, juste before the closing ul tag

    The following example (probably not THE solution for your demand) shows the last 3 notices published on different group activities.

    <?php if ( bp_has_activities( ‘object=groups&action=activity_update&max=3′) ) : ?>
                while ( bp_activities() )
                 ......
                     ............
                endif;
                </ul>
    <?php endif; ?>

    Hold on ! 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to filter updates as default activity stream instead of everything’ is closed to new replies.
Skip to toolbar