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

    Hi Romanzy,
    I just had a look at BuddyPress Xprofile field schema. All the code above are playing with value and not with the actual field name. In your case, you are trying to use large name.

    BuddyPress has a limitation of 150 characters for the name/type field. Please see the screenshot

    http://i.imgur.com/7gw0FUI.png

    You can modify it for your install by changing the schema. If you have access to phpmyadmin. Select your table. Go to structure tab. Then click on change link and update the length.

    It is not considered a good practice to modify the database schema but in your case, it is the simplest way to change the length of name field.

    Hope that helps.

    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25338

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

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25338

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

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

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

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

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

    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: 25338
    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.