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

    Thank you.
    That makes sense.Let me check and I will update again.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Romanzy,
    I am sorry but I do not understand. Where did you see BuddyPress limiting the field length. Is it happening for ll field types? I tried with text box and I don’t see any limit imposed by BuddyPress.

    If you can explain me what are you trying to accomplish in a little more detail, I will be able to help.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Romanzy,
    I am sorry but I could not understand much.

    Here is a simple solution. You can put this code in members loop and change the field parameter.

    
    
    echo substr( bp_get_member_profile_data( 'field=About' ), 0 , 300 );
    
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Sitewide Activity Shortcode #6119

    Hi George,

    Please take a look at all the options here

    https://github.com/sbrajesh/bp-activity-shortcode/blob/master/bp-activity-as-shortcode.php#L53

    The action filters are variable and depends on your installation. A New type can be added by any plugin. So, There is no fixed type. If you are loooking for the builtin activity type support by BuddyPess core, Please take a look at the dropdown or you may run this query in phpmyadmin

    
    SELECT DISTINCT type FROM <code>wp_bp_activity</code> ;
    
    

    That will give you all the filters used on your current site.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi David,
    I am sorry but BuddyPess will not allow registration without the name. Can you please tell me if you are trying to use the username as name?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi George,
    There have been many updates to BuddyPress and the code of this plugin(mostly on github) since we started the discussion.

    I have almost lost the track of it all. If it is not too much, Can you please start a new topic and list me the features that you wanted in BCG. If it is not there yet, I will implement this week.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Owen,
    Thank you for using MediaPress.

    I am sorry but the lightbox is not enabled for shortcodes. I will add support of lightbox and push an update in next 2 days.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Owen,
    Welcome to BuddyDev forums.
    Which theme are you using? Can you please post me a screenshot?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: BP Force Profile Photo #6114

    Hi Aaron,

    Please put the following code in your bp-custom.php

    
    /**
     * Add class 'no-profile-photo' to body if the user has not yet uploaded an vatar
     *
     * Works with BuddyPress Force Profile Photo Plugin
     *
     * @param $classes
     *
     * @return array
     */
    function buddydev_custom_add_profile_photo_class_to_body( $classes ) {
    
    	if ( ! is_user_logged_in() || ! class_exists( 'BD_Force_User_Avatar_Helper' ) ) {
    		return $classes;
    	}
    
    	if ( ! is_super_admin() && ! BD_Force_User_Avatar_Helper::get_instance()->has_uploaded_avatar( bp_loggedin_user_id() )  ) {
    		$classes[] = 'no-profile-photo';//the user has no profile photo
    	}
    
    	return $classes;
    }
    add_filter( 'bp_get_the_body_class', 'buddydev_custom_add_profile_photo_class_to_body' );
    

    It will add the appropriate class. You can use the css then.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi deco,
    Let us try it other way.

    Please open plugin/bp-auto-activate-auto-login/bp-auto-activate-auto-login.php and go to line number 69.

    You will see a code like this

    
    
        bp_core_redirect( apply_filters( 'bpdev_autoactivate_redirect_url', bp_core_get_user_domain( $user->ID ), $user->ID ) );
    
    

    This is what is used to redirect in the auto activation plugin. Please comment it and then try to register and let me know what happens.

    Thank you
    Brajesh