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
    Brajesh Singh on in reply to: [Resolved] Buddypress Anonymous Activity #26227

    Hi Nicola,
    I am sorry, You have waited too long on this.

    Please remove any custom code you used earlier and put this in your bp-custom.php

    
    
    /**
     * Filter is anonymous activity should be allowd.
     *
     * @param bool $is is enabled.
     *
     * @return bool
     */
    function bp_custom_anonymous_is_enabled_for_group( $is ) {
    	if ( ! bp_is_group() ) {
    		return $is;
    	}
    
    	$enabled_groups = array( 'alpha-beta', 'abs', 'group-slug-3' );//group slugs
    
    	$group = groups_get_current_group();
    	if ( in_array( $group->slug, $enabled_groups ) ) {
    		$is = true;
    	} else {
    		$is = false;
    	}
    
    	return $is;
    }
    
    add_filter( 'bp_anonymous_is_valid_screen', 'bp_custom_anonymous_is_enabled_for_group' );
    

    Please make sure to change the slug with appropriate once and It will work.

    Regards
    Brajesh

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

    Thank you Hans.
    All the best with the presentation 🙂

    Regards
    Brajesh

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

    Hi Hans,
    Thank you.

    I intentionally did not add the count as it is not efficient for group types (There is no direct function to get count).

    I will suggest avoiding the count for now.

    Regards
    Brajesh

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

    Hi Hans,
    Please use this code in your bp-custom.php

    
    
    add_filter( 'bp_nouveau_get_groups_directory_nav_items', function ( $nav_items ) {
    
    	$group_types = bp_groups_get_group_types( array(), 'objects' );
    	$pos         = 25;
    	foreach ( $group_types as $group_type => $details ) {
    		if ( ! $details->has_directory ) {
    			continue;
    		}
    		$nav_items[ 'group-type-' . $group_type ] = array(
    			'component' => 'groups',
    			'slug'      => 'group-type-' . $group_type,
    			'li_class'  => array( 'no-ajax', 'group-type-' . $group_type ),
    			'link'      => bp_get_group_type_directory_permalink( $group_type ),
    			'text'      => $details->labels['name'],
    			'count'     => false,
    			'position'  => $pos,
    		);
    		$pos + 10;
    	}
    
    	return $nav_items;
    } );
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347
    Brajesh Singh on in reply to: Buddyblog is brilliant! #26215

    Hi Mike, Richard
    Thank you. Both of you.

    First of all let me tell you the current state of BuddyBlog.
    1. We have added support for multiple post types
    2. Multiple user tabs can be created with different post types
    3. You can create a custom post form in the backend for each of the post type. Yes, custom fields can be defined in the backend form creation page.
    4. Drafts for a post will be supported(not yet implemented).

    This is currently under heavy developement. We will be releasing a polished version with our theme in the end of december or early january.

    Now, about the questions.

    1. you can do that by overriding the buddyblog/edit.php in your theme. Copy it form plugin/buddyblog/template/buddyblog/edit.php and move to yourtheme/buddyblog/edit.php and add the help.

    2. If you are using multisite, you may be able to add it in Networkadmin->Settings(file type).

    3. Not yet. It will be part of the upcoming release(where you can create forms).

    4. This can be accomplished by use of category or custom taxonomy. Also, you ca always differentiaxe buddyblog post from normal post due to use of a meta key.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    You are welcome.

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Hi Frank,
    I am not sure of the purpose.

    My suggestion will be to ask the wpuf developer on how to check for the subscription package.

    That will solve your issue.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347

    Please check with your theme author.

    BuddyPress comes with 2 password boxes now.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25347
    Brajesh Singh on in reply to: FB like notification for buddypress #26210

    Hi Tosin,
    At the moment, I am unable to assist you with this. I may be able to help you in next 2-3 weeks.

    Regards
    Brajesh