Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing the default activity filter


  • mahdiar
    Participant

    @mahdiar

    Hi
    I’d like to change the default activity filter to “updates” for all members . How can I do that ?

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

  • mahdiar
    Participant

    @mahdiar

    ?


    bp-help
    Participant

    @bphelp

    @mahdiar
    Its been around 1.6 since I tried filtering the activity stream according to the codex:

    Activity Loop


    Just to see if something had changed I changed this line:

    
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
    

    in activity-loop.php in my child theme and made the following modifications:

    
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&object=status' ) ) : ?>
    

    As well I tried this:

    
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&per_page=5' ) ) : ?>
    

    I also tried this:

    
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&scope=friends' ) ) : ?>
    

    None of them had any effect in the activity stream output. @mercime @hnla What has changed that you can no longer filter with my above examples? It used to work but it has been a while since I fiddled around that area. I am using WP 3.6 and BP 1.8.1 and a very basic child theme of bp-default. Thanks!


    bp-help
    Participant

    @bphelp

    @mercime @hnla
    Never mind I made a mistake and copied the wrong files over to my child theme and just realized what I did, du-huh!
    @mahdiar
    It would help if provided more info like theme your using. If you have the proper directory structure the examples I provided will work. Please review:
    https://codex.buddypress.org/theme-development/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
    Also review:

    Activity Loop


    As well as @pollyplummer ‘s article:
    http://wpmu.org/how-to-customize-the-buddypress-activity-loop/


    mahdiar
    Participant

    @mahdiar

    Thanks for your help bp-help !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing the default activity filter’ is closed to new replies.
Skip to toolbar