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

    Hi Leo,
    There are multiple ways to do it.

    Please see an example here

    https://buddydev.com/support/forums/topic/mediapress-predefined-user-galleries/page/2/#post-2474

    I will suggest an enhancement though. Instead of using mpp_actions you should bind to the account activation action. That way, It will only run when new account gets activated instead of the each page load on user profile.

    You may modify it as you please.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25294

    Hi Sujee,
    I am sorry, I could not assist earlier.

    1. On which action are you using the ‘bpex_hide_profile_menu_tabs’ ? Please move it to bp_init and priority number 111 or higher(e.g 112 etc)

    About Group Tabs:- Thank you. It is in planning. It is not in priority and we will be most probably providing it as a free companion with the User Profile Tabs Pro. Hopefully, we can do it around BuddyPress 3.0 release.

    Please do let me know if my suggestion worked or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25294

    4. So, I am assuming that it is fine for your use case as there are no user widgets for the directory sidebar.

    For 3rd, Please try again. It should work and disable the auto activation of user acocunts.

  • Keymaster
    (BuddyDev Team)
    Posts: 25294
    Brajesh Singh on in reply to: [Resolved] BP Friends Suggest Widget #14266

    🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25294

    Hi Khol,
    Thank you for the details.

    I am glad you resolved it.

    I was stumped and was wondering about the reason. Yes, I too have learned the new reason for mail not being sent by BuddyPress 🙂

    Marking it as resolved.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25294

    Hi Julia,
    Thank you.

    4. I am a bit worried about applying the per page setitngs but here we go with teh modified version.

    
    
    /**
     * Only show recent 100 users.
     *
     * @param array $args query args.
     *
     * @return array
     */
    function buddydev_limit_last_100_members( $args ) {
    	if ( bp_is_directory() ) {
    		$args['max']      = 100;
    		$args['per_page'] = 100;
    	}
    
    	return $args;
    }
    add_action( 'bp_after_has_members_parse_args', 'buddydev_limit_last_100_members' );
    

    Please remove the previous code and use this. It may affect widgets in the directory sidebar too(Earlier code did too).

    5. Please open bp-ajax-register.js and change the value ‘1000’ to some other value. The 1000 means 1 second(It is in ms). So, if you want it for 1.5 second, you can put there 1500. Please do note that the changes will be lost in next update.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25294

    Hi Khol,
    Thank you for clarifying.

    Let us start from the beginning again:-

    1. How did you insert the code(from where did you do that.

    If you have put it in bp-custom.php, it must be in wp-content/plugins directory. Otherwise, it will not be loaded.

    is there any chance that you put the code in theme’s functions.php?

    I am sorry but my options are limited. Unless I know where have you put the change, I am unable to assist.

    Please let me know as much detail as possible.

    Thank you
    Brajesh.

  • Keymaster
    (BuddyDev Team)
    Posts: 25294

    Also,
    Uninstalling BuddyPress will not remove any data. They will remain safe and will be available when you reinstall it.

  • Keymaster
    (BuddyDev Team)
    Posts: 25294

    Hi Khol,
    The Mail logging plugin can help you troubleshoot if the mail is a problem on the MTA level or the sender program level.

    Before you uninstall and reinstall, You need to know if it is really BddyPress or any extra code doing it or it is server.

    If the mail logging shows the mail but the user does not receive it, You will need to contact the server admins for the same.

    I have seen this issue that mail sent by WP not being recieved on users from same domain on so many hosts. It happens dues to security policies.

    So, I will suggest you to first isolate the issue and then a solution can be found.

    Also, enabling WP_DEBUG can give you more understanding too(But it will show all errors and not suggested for a live site)

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25294
    Brajesh Singh on in reply to: [Resolved] An icon to a new tab #14249

    Hi Josef,
    Sorry for the trouble. Yes, It’s a bit laborious to add icons if you have many tabs.

    I am glad you did it already.

    Regards
    Brajesh