Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @slimmyweight

    Participant

    Is this ever going to be a feature added as an option for none programmers it would be much easier. Is there anything I can do without understanding the code

    Thanks.

    @slimmyweight

    Participant

    bump

    @slimmyweight

    Participant

    Isn’t there code somewhere I can just copy and paste as I tried using parts from the above forum post:

    I copy and pasted.
    https://buddypress.org/support/topic/hide-admin-from-members-and-activity/
    If not I guess I won’t be able to fix it without knowing how to code?

    @slimmyweight

    Participant

    Hi Henry,

    Thanks for the reply,

    I’m not a programmer I have basic programming knowledge at best. I’ve tried pasting

    // Fetch only the last five entries for all activity loops
    function my_bp_activities_per_page_5( $retval ) {
        $retval['per_page'] = 5;
     
        return $retval;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activities_per_page_5' );
    

    at the top of my current code and it is still the same showing an fatal error message and allowing me to view the admins profile.

    Have I put the code in the wrong place, or is it even possible for me to comprehend what I need to do without knowing php?

    Thanks

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