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: 25377
  • Keymaster
    (BuddyDev Team)
    Posts: 25377
    Brajesh Singh on in reply to: Getting the error i.e. jQuery is not defined #39229

    Hi Vishakha,
    Are you using a custom theme? If yes, Please contact the theme author. They will be in a better position to assist you with it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377
    Brajesh Singh on in reply to: [Resolved] BP Featured members CSS #39219

    Hi Robert,
    Thank you for using the plugin.

    Woffice support told me it has to do with your plugin and will not help. Has this question ever came up before or should I look elsewhere for assistance. Sorry if I broke the rules, first time here. Please any assistance is greatly appreciated.

    That’s really bad customer service.

    The layout is messed by theme’s css. If you can link me to your
    site(you may use private reply below), I can look and assist you with custom css.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377

    Hi Julia,
    Thank you for confirming that it works.

    Yes, the colours for button/link etc are inherited from theme. Please use custom css to override them.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377

    Hi Tosin,
    What is active_member? Have you created a new role using some plugin?

  • Keymaster
    (BuddyDev Team)
    Posts: 25377

    Hi Thorstein,
    Thank you for the question.

    Please visit Dashboard->BuddyBlog->Settings-> Tab for your post type(e.g Post) and scroll to the bottom.

    You will see a Miscellaneous section and couple of options. Please make sure to tick the “Make single post viewable on profile?” option as “No”

    Here is a screenshot showing the same.

    https://i.imgur.com/DYuSxxS.png

    BuddyBlog Pro will avoid filtering the post url then.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377

    HiTosin,
    you code is good except this line

    
    get_user_by('id', $user_id)->set_role('active member');
    

    I do not think role ids can have space. If you are using a plugin to create the role, Please use the role id and not the label. For example, “subscriber” is the role while “Subscriber” is the role label.

    Here is an example containing your code(modified).

    
    
    /**
     * Change user role on first login
     */
    function buddydev_change_user_role_on_first_login( $user_login, $user ) {
    
    	if ( ! function_exists( 'buddypress' ) || user_can( $user->ID, 'manage_options' ) ) {
    		return;
    	}
    
    	// check for user's last activity.
    	$last_activity = bp_get_user_last_activity( $user->ID );
    
    	if ( empty( $last_activity ) ) {
    		$role = 'subscriber'; // please change with your desired role.
    		$user->set_role( $role );
    
    	}
    }
    
    add_action( 'wp_login', 'buddydev_change_user_role_on_first_login', - 1, 2 );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377

    Hi Troy,
    Please upgrade to 1.1.7. It supports the button in BuddyBoss theme’s members directory.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377

    Hi,
    I hope you have it solved now.
    Marking it resolved due to lack of replies.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25377

    Hi Tosin,

    1. You can set default role from Dashboard->settings->General screen and then updating the “New User Default Role” option.

    2. You do have the code for first login action, you can do a get_user_by(‘id’, $user_id)->set_role(‘Your custom role id’) to set this new role.

    e.g get_user_by(‘id’, $user_id)->set_role(‘subscriber’)

    Hope that helps.

    Regards
    Brajesh