Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • colingdi
    Participant

    @colingdi

    I was wondering the same thing myself however the site is on a standalone VPS Bitnami instance sitting on AWS Lightsail, no performance caching of any sort installed at the minute.


    colingdi
    Participant

    @colingdi

    I need to check the age of posts I follow, that one was depreciated with the dinosaurs apparently. For those who come after this is the code:
    `
    if (bp_is_groups_component()) {
    echo (“request to join group to see feed”);
    }


    colingdi
    Participant

    @colingdi

    Thanks both of you for that one, list items now ticked off.

    Prashant your change did the trick, I had that code in there before but I was troubleshooting a different issue and one of the steps had been to remove, never put it back which is poor show on my part!

    Thanks!


    colingdi
    Participant

    @colingdi

    Hoping someone has a hint for this one as it’s one of the last outstanding issues on the site with my name beside it…


    colingdi
    Participant

    @colingdi

    Thanks to both of you, between the two responses you solved what was a headache and a half!


    colingdi
    Participant

    @colingdi

    That helped a lot, I’ve now got it filtering for the users activity on just their profile page. So we’re halfway there. Using your links I’m to the point where I have this code:

    function my_filter_after_has_activities_parse_args( $r ) {
            $r['per_page'] = 10;
            if (bp_is_my_profile()) {
            $r['per_page'] = 3;
            $r['scope'] = "just-me";
            } else if (bp_is_user_profile()) {
            $r['per_page'] = 3;
            //$r['scope'] = "just-me"; - I'll work out the code for just-them after I get the function calling
            }
            
            return $r;
        }
        add_filter( 'bp_after_has_activities_parse_args', 'my_filter_after_has_activities_parse_args' );

    When I run this code on a normal users profile I get nothing changed (the final bp_is_user_profile() doesn’t fire). I’m on the site.com/members/user page and it’s the ‘home.php’ template that’s calling all of this so I’m at a loss as to why I’m getting no joy.

Viewing 6 replies - 1 through 6 (of 6 total)
Skip to toolbar