Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] Buddypress Anonymous Activity #23201

    HI Nic,
    Please upgrade to 1.0.9 and then, you can add the following code to your bp-custom.php

    
    /**
     * Disable UI.
     */
    add_filter(
    	'bp_anonymous_is_valid_screen',
    	function ( $valid ) {
    		return false;// don't show ui.
    	}
    );
    
    /**
     * Custom enable for certain groups.
     *
     * @param bool   $is is enabled.
     * @param string $context current context.
     * @param int    $context_id context id.
     */
    function bpanonymous_custom_enable( $is, $context, $context_id ) {
    	if ( 'group' !== $context ) {
    		return $is;
    	}
    
    	$allowed_groups = array( 1,2,3,4 );// please change with the group ids.
    
    	return in_array( $context_id, $allowed_groups );
    }
    
    add_filter( 'bp_anonymous_activity_is_anonymous_comment', 'bpanonymous_custom_enable', 10, 3 );
    add_filter( 'bp_anonymous_activity_is_maybe_anonymous_comment', 'bpanonymous_custom_enable', 10, 3 );
    add_filter( 'bp_anonymous_activity_is_anonymous_post', 'bpanonymous_custom_enable', 10, 3 );
    
    

    Please make sure to change this

    
    	$allowed_groups = array( 1,2,3,4 );// please change with the group ids.
    
    

    With correct group ids.

    Any update/comment on these groups will be anonymous.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Thank you for the update. I am glad it is resolved.

    Best regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Plugin takeover #23188

    Hi Tosin,
    Thank you for the suggestion.

    We have a competing product with them which is free and a pro version has been in development(with support for multiple post types etc).

    We can’t take over that plugin, but I do hope that when we release BuddyBlog Pro next month, It will have a super set of features from the plugin.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Siyah,
    Thank you for the question.

    Did you report it to ULike plugin’s support? They will be in better position to assist you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Carsten,
    The experience you are looking for is more like an app experience than a web page experience.

    The reason a user is sent at top is because when the browser loads the member directory, the content is loaded via ajax(depends on your template pack) and browser is not aware where it was previously.

    Yes, it is doable, but I will leave that in the scope of plugins(and how they load member directory). They can set a cookie and use that to fetch the specific page of member list and scroll to it.

    I do not think there is any solution that I can help apply cleanly without modifying the theme/template pack’s js file.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Thank you. Received. Will update in next 2-3 days.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Carsten,
    Thank you for the question.

    1. Since your members directory is a dynamic web page, every time it is visited, It is reloaded.

    You can not use page caching for this, database caching and object caching may help.

    If your members directory is very slow, My suggestion will be to check for the reason. You may try query monitor or similar plugin to check for memory usage/database query as basic tools.

    If that does not help, you may go for profiling the setup to identify the bottlenecks.

    Most of the time, It is either database queries or media.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Chris,
    Thank you.

    Please do mail me a copy. I can add the support quickly.

    Regards
    Brajesh

    PS:- My email is in next reply.

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Richard,
    I will be updating you with it on Monday/Tuesday.

    Regards
    Brajesh