👻 Halloween Treat: Our biggest-ever 25% OFF memberships — use SPOOKYSOCIAL before Nov 1! 🎃

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Ada,
    Thank you. Can you please restore it again today?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188
    Brajesh Singh on in reply to: Profile Visibility Manager 1.3.1 Redirect Issue #3358

    Hi Hans,
    You are right about the issue. The problem is earlier version was causing issues when profile was private and the user logged out from one of the public components of profile(e.g groups/friends).

    Redirected to the home of the site to make sure that there won’t be redirect loop. For example, if we redirect to members directory(easily doable, I will show below), and if the members directory is private, It may cause the redirect loop(will further depend on how the page privacy is setup).

    There are multiple solutions:-
    1. If it is deemed fine, I can add an option in the admin to put the url of the page where the site admin wants the users to be redircted. Question is, should we have 1 redirect option for all privacy or 1 for each level of privacy?

    2. Or, you can always put the following snippet in bp-custom.php and it will work.

    
    
    function buddydev_profile_visibility_redirect_url( $redirect_location, $privacy, $referrer = '' ) {
    
    	$redirect_location = "http://somesite.com/somepage";
    
    	return $redirect_location;
    }
    add_filter( 'bp_profile_visibility_redirect_location', 'buddydev_profile_visibility_redirect_url', 10, 3 );
    

    Please do let me know what do you think is the right way.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Francesco,
    Are you using closing php tags in your bp-custom.php like this?

    
    ?>
    

    If yes, Please delete that. That will fix the issue. It is happening becuse there are some spaces getting sent to the browser from your bp-custom.php
    If no, Please post the complete code from your bp-custom.php(including php tags) on the pastebin and I can quickly assist.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188
    Brajesh Singh on in reply to: lightbox not working well #3327
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Dandy,
    Thank you for confirming. I am happy that we could help 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25188
    Brajesh Singh on in reply to: lightbox not working well #3323

    Hi Christian,
    Thank you for the details.
    You are using the updated MediaPress. It is very strange that the lightbox is still limiting to 6( You have quite higher limits for even the fallback numbers).

    Can you please tell me if it is happening on activity page or gallery pages too? Is it happening for all galleries or just for a few specific ones?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188
    Brajesh Singh on in reply to: Groups Extension #3321

    Hi Joshua,
    I am sorry but I don’t think that you can use visual composer with this plugin.

    It is a nice plugin, but seems it may not fit your requirements.

  • Keymaster
    (BuddyDev Team)
    Posts: 25188

    Hi Dandy,
    Ravi will be back a little late today, so I am posting here.

    All you need to do is use an array of friend ids(which you want to add) and loop to do it.

    Here is updated code example.

    
    function buddydev_add_as_friend_to_user( $user_id ) {
    
        $friend_userids = array( 2,3,4,5 );  //use the ids of user who should be automatically added as friend
        
        foreach( $friend_userids as $friend_userid ) {
            friends_add_friend( $user_id, $friend_userid, true );
        }
    
    }
    add_action( 'user_register', 'buddydev_add_as_friend_to_user', 0 );
    
    

    Please do let me know if that works or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188
    Brajesh Singh on in reply to: lightbox not working well #3319

    Hi Christian,
    Are you using MediaPress 1.0.4? In earlier version, Lightbox used to show the number of media as limited for pagination settings(in the MediaPress->Settings->Theme tab). In 1.0.4, I fixed it and made it load all images.

    Please do let me know if you are using 1.0.4 and still having issues?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25188
    Brajesh Singh on in reply to: [Resolved] Categories for Group Blogs #3313

    Thank you for the kind Words Diana.
    I am happy that it worked for you. Please do feel free to let me know if you need any assistance in future.
    All the best with your project 🙂