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: 25347

    Hi Mike,
    The reason it is not recommended is it allows you to separate non group forums with normal forums. I do not see any other reason.

    1. Please try using this code and let me know if it works or not?

    
    
    /**
     * Grant permission to all for group create topic/replies.
     *
     * @param bool $can can?
     *
     * @return bool
     */
    function buddydev_allow_all_members_forum_permission( $can = false ) {
    
    	if ( is_user_logged_in() && bp_is_group() ) {
    		$can = true;
    	}
    
    	return $can;
    }
    
    add_filter( 'bbp_current_user_can_access_create_topic_form', 'buddydev_allow_all_members_forum_permission', 11 );
    add_filter( 'bbp_current_user_can_access_create_reply_form', 'buddydev_allow_all_members_forum_permission', 11 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347
    Brajesh Singh on in reply to: [Resolved] WordPress User Login Notifier #26175

    Hi Mike,
    Thank you for using the plugin.
    1. Please add following code to your bp-custom.php

    
    
    /**
     * Append User email to the admin notifications messages by the WordPress user login Notifier.
     *
     * @param string  $message message.
     * @param WP_User $user user object.
     *
     * @return string
     */
    function wpul_custom_append_user_email_to_message( $message, $user ) {
    	return $message . '\n Email:' . $user->user_email . '\n';
    }
    
    add_filter( 'wpuln_failed_login_admin_email_message', 'wpul_custom_append_user_email_to_message', 10, 2 );
    add_filter( 'wpuln_successful_login_admin_email_message', 'wpul_custom_append_user_email_to_message', 10, 2 );
    
    

    That will add email to the message.

    2. Thank you for the suggestion. At the moment, we do not store the log at all. It may be a helpful feature in future.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347
    Brajesh Singh on in reply to: When will Community Builder 2.0 will be ready? #26163

    Hi Torben,
    Hope you are doing well.

    The theme will be delayed by 4 more days. The new date is Friday, November 1. I had not planned for Diwali earlier, but we have been closed for 4 days due to diwali holidays and it got a bit delayed.
    Sorry about this.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347
    Brajesh Singh on in reply to: [Resolved] BuddyPress Group Type Generator #26160

    Hi Hans,
    You will need to add the following to your tem,plate’s buddypress/groups/index.php

    
    	<?php if ( function_exists( 'bp_groups_get_group_types' ) ) :?>
    		<?php $group_types = bp_groups_get_group_types( array(), 'objects' ); ?>
    		<?php foreach ( $group_types as $group_type => $details ) : ?>
    			<li id="groups-type<?php echo $group_type; ?>">
    				<a href="<?php bp_group_type_directory_permalink( $group_type ); ?>"><?php echo $details->labels['name']; ?></a>
    			</li>
    		<?php endforeach; ?>
    	<?php endif; ?>
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Hi Gregg,
    The purpose of template override is to avoid worrying about the plugin update.

    In my opinion, This is the right way to go ahead by overriding the template.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Hi Gregg,
    Thank you for the question.

    I am not familiar with memberpress.
    If you know how to hide based on the membership, there there is an easy solution.

    You can copy buddypress-user-contact-form/templates/buddypress/members/single/bpucf-form.php to yourtheme/buddypress/members/single/bpucf-form.php

    Then, You can modify it as you please.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Hi Marek,
    Welcome to BuddyDev.

    The styling/behaviour of notification is handled by your theme.

    You are most probably using a theme that hides notification automatically. For the change in appearance/behaviour you will need to contact theme authos.

    We are simply using standard bp_core_add_message()

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Hi Mike,
    Happy Diwali 🙂
    Thank you for the help here.

    Hi Carsten,
    The issue is not related to us. AS it is due to new update of the caching plugin, Please contact their support.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347
    Brajesh Singh on in reply to: [Resolved] BuddyPress Group Type Generator #26151

    Hi Hans,
    You may use code like this to register the group types

    
    add_action( 'bp_groups_register_group_types', function () {
    
    	bp_groups_register_group_type(
    		'school',
    		array(
    			'labels'                => array(
    				'name'          => 'Schools',
    				'singular_name' => 'School',
    			),
    			'has_directory'         => true,
    			'show_in_create_screen' => true,
    			//'show_in_list'          => null,
    			'description'           => '',
    			'create_screen_checked' => false, // keep it checked?
    		)
    	);
    	bp_groups_register_group_type(
    		'college',
    		array(
    			'labels'                => array(
    				'name'          => 'Colleges',
    				'singular_name' => 'College',
    			),
    			'has_directory'         => true,
    			'show_in_create_screen' => true,
    			//'show_in_list'          => null,
    			'description'           => '',
    			'create_screen_checked' => false, // keep it checked?
    		)
    	);
    }
    );
    

    Change school/college with Villages/Co working

    If the theme supports, The tabs will appear on group directory.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Please upgrade to 1.8.1 and after that, Please put this in your bp-custom.php

    
    
    add_filter( 'bp_profile_visibility_is_admin_user', function ( $is ) {
    	return current_user_can( 'list_users' );
    });
    

    That will allow admins the same feature as super admin in this plugin.

    Regards
    Brajesh