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

    Hi Gregg,
    Your upgrade failed due to some reason and that’s why you had issues. I recommend upgrading again to 1.2.4.

    I downloaded and checked it and It is working fine. So, I am assuming, it might be a temporary glitch.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: [Resolved] Profile Info in Members List #26234

    Hi Hans,
    Try removing the line

    
    echo '</div>';
    

    from both of these. Your display should be fine without any memberurl(most probably).

    Regards
    Brajesh

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

    You are welcome 🙂
    I am glad it is working.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    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: 25494
  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    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: 25494
    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: 25494
    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: 25494
    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: 25494

    You are welcome.