BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Isabel,

    Thank you for posting. Yes, it can be done easily. Please try the following code in your active theme “functions.php” file. It will change checkbox categories to drowndown category.

    
    /**
     * BuddyBlog Categories as dropdown
     *
     * @param array $settings Settings.
     *
     * @return array
     */
    function buddydev_buddyblog_categories_as_dropdown( $settings ) {
    
    	if ( empty( $settings['tax'] ) ) {
    		return $settings;
    	}
    
    	foreach ( $settings['tax'] as $taxonomy => $detail ) {
    		$settings['tax'][$taxonomy]['view_type'] = 'dd';
    	}
    
    	return $settings;
    }
    
    add_filter( 'buddyblog_post_form_settings', 'buddydev_buddyblog_categories_as_dropdown' );
    
    

    Please let me know if that works or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Branded login support #23505

    Hello Tosin,

    Please find out the following function in plugin “bl_get_error_message” and there you can modify the message.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Branded login support #23494

    Hello Tosin,

    Please download the latest version of plugin and use the following code.

    
    add_filter( 'wp_authenticate_user', function( $user ) {
    
    	if ( isset( $_POST['log'] ) && ! is_email( $_POST['log'] ) ) {
    		return new WP_Error( 'invalid_email' );
    	}
    
    	return $user;
    }, 10 );
    
    

    It will only allow login by email address.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Branded login support #23466

    Hello Tosin,

    We have updated the plugin. Please download the latest version of it. Now it will support Limit Login Attempts Reloaded and show message thrown by this plugin.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP (un-)lock activity for admin only? #23453

    Hello Richard,

    Thank you for the acknowledgement.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP (un-)lock activity for admin only? #23449

    Hello Richard,

    Please download the latest version of plugin “BuddyPress Lock UnLock Activity” and use the following code which allows only site admins can lock and unlock an activity.

    
    /**
     * Only allow site admins to lock and unlock activity
     *
     * @param bool $can True or false.
     *
     * @return bool
     */
    function buddydev_user_can_lock_unlock_activity( $can ) {
    	return is_super_admin();
    }
    
    add_filter( 'bp_lock_unlock_user_can_update_activity', 'buddydev_user_can_lock_unlock_activity' );
    

    You can put this code in “bp-custom.php” or active theme “functions.php” file. Please let me know if it works or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Branded login support #23381

    Hello Tosin,

    I am glad that you found the culprit causing the issue. Regarding the support we will check and get back to you next weak.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Thank for the acknowledgement.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Branded login support #23360
    This reply has been marked as private.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Branded login support #23308

    Hello tosin,

    Thank you for detailed acknowledgement. It seems you have not removed the following custom code i.e. You have provided in the following reply.

    https://buddydev.com/support/forums/topic/branded-login-support/#post-23259

    Because form still redirecting with ‘?login=failed’ and causing not to show error messages. Please check and let me know.

    Regards
    Ravi