Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress Site wide activity


  • vysakhnair
    Participant

    @vysakhnair

    Hi

    Some please help me I am using buddypress site wide activity plugin, in that I want to show only my friends activity. Now its showing all the members in the site.

    Thanks
    Vysakh

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

  • Venutius
    Moderator

    @venutius


    Venutius
    Moderator

    @venutius

    Ah sorry, seems that plugin is no longer available


    Venutius
    Moderator

    @venutius

    Looking at it, I think you could create a template overload if Activity-loop.php and change the scope of bp_has_activities () to friends.

    See the activity loop page for more information:

    Activity Loop

    I’m not an expert, I think this is correct.


    vysakhnair
    Participant

    @vysakhnair

    @venutius Yes I have already done that now its working but when i click on the other tabs on the same page and again clicking the activities on ajax call its displaying all the activities


    Venutius
    Moderator

    @venutius

    I’m not sure how you would do that but one workaround I might suggest is that you replace the activity page with a page running BuddyDev’s Activity Shortcode and set that to friends, I don’t think it will display any options for getting alternative activities if I understand your requirements correctly.


    vysakhnair
    Participant

    @vysakhnair

    I will explain. In my activity pages while I am loading it by clicking on the main link activity it will only show my friends activity, but there are some more tabs in the same page after clicking on some other tabs (eg: My likes, Mentions) and when I click on the same tab for Activities then it will show all the activities on calling ajax its displaying all


    Venutius
    Moderator

    @venutius

    Yes the drop down that includes -Everything-, my suggestion above would avoid having that as an option so that only friends activity could be viewed. Otherwise I’ll leave this to greater minds than me to answer.


    vysakhnair
    Participant

    @vysakhnair

    @venutius I removed the everything from that list but I want Updates as the first one in that list box and I searched for that from Where its coming and didn’t understand please help me to find the filter list. Whether its coming from database or from any of the files


    vysakhnair
    Participant

    @vysakhnair

    <select id=”activity-filter-by”>
    <option value=”-1″><?php _e( ‘— Everything —’, ‘buddypress’ ); ?></option>

    <?php bp_activity_show_filters(); ?>

    <?php do_action( ‘bp_activity_filter_options’ ); ?>

    </select>


    @venutius
    this is the code in that page I directly removed the Everything which is coming as the first option but now i want updates as the first option from where the function bp_activity_show_filters() is getting values from database or any of the files


    vysakhnair
    Participant

    @vysakhnair

    @venutius
    Hi have you got any solution for my question, please help me


    Venutius
    Moderator

    @venutius

    I’m afraid not, maybe someone else could comment?


    Henry Wright
    Moderator

    @henrywright

    Check out bp_parse_args(). It’s super powerful when it comes to filtering the activity stream.


    vysakhnair
    Participant

    @vysakhnair

    @henrywright Thanks for your reply i will check with bp_parse_args()

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘BuddyPress Site wide activity’ is closed to new replies.
Skip to toolbar