Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sitewide Activity only in Feed Form?


  • Roland Fauster
    Participant

    @rfauster

    Hi everybody

    I have been constantly updating to the latest Release in the Trunk but one problem is still present for me.

    I want to have a sitewide Activity Stream in my Sidebar and this is the code I use:

    <ul id="activities_sitewide">
    <?php
    $i = 0;
    if ( bp_has_activities( 'type=sitewide&max=10' ) ) : // this loop does not support random
    while ( bp_activities() ) : bp_the_activity();
    ?>
    <li class="sb_activities <?php echo ($i % 2 == 0 ? 'even' : 'odd' ) ?>">

    <a href="<?php bp_activity_user_link() ?>"><?php bp_activity_avatar( 'type=thumb&width=30&height=30' ) ?></a>
    <?php
    $action = bp_get_activity_action();
    if ( !empty( $action ) )
    bp_activity_action();
    else
    bp_activity_content();
    ?>
    </li>
    <?php
    $i++;
    endwhile;
    endif;
    ?>
    </ul>

    while this works on the homepage, it switches to only the displayed user’s activities once I am on a profile page, changes again when I am in Groups..

    Can somebody demystify the full sitewide activity status for me? I am running wpmu 2.9.1.1 and bp RC3

  • The topic ‘Sitewide Activity only in Feed Form?’ is closed to new replies.
Skip to toolbar