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

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

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

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

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Deco,
    I have looked at the bp-custom.php. It is perfect. If you have it in your wp-content/plugins/bp-custom.php then it should work.

    If it is not working , another plugin/code might be causing that. Please try by disabling suspect plugins.

    Do you have any plugin active for login redirect/activation redirect?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: Welcome email fatal error #6100

    Hi Leigh,
    I am sorry but I am not in a position to do much. Can you please test it with a gmail or any other hosted email account?

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Please put this in your theme’s css

    
    
    .bpajax-register-window h4 {
        display:none;
    }
    

    That should do it.

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Deco,
    Can you please your complete bp-cstom.php on pastebin? It does not seem to be loaded by buddypess on your site as the filter is not working. I tested by registering there.

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

    Hi Aaron,
    Welcome to BuddyDev forums.

    It is a good question and I believe we may go for this kind of thing. Here is what can be done.

    1. Add a class to body if the user has not uploaded a photo say we add ‘no-profile-photo’
    2. Then we can use css like this to hide all profile navigation links

    
    
    body.no-profile-photo .item-list-tabs {
    display:none;
    }
    
    

    There is no harm in hiding as the user is redirected to the change profile photo page.

    Hope that helps.

    Regards
    Brajesh