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
    Brajesh Singh on in reply to: Display user role change in Activity stream #6821

    Hi Mitch,
    Please put this code in your bp-custom.php

    
    
    function buddydev_record_role_change_activity( $user_id, $role, $old_roles  ) {
    
    	$role = get_role( $role );
    	if ( ! $role ) {
    		return ;
    	}
    	//Brajesh has become Author
    	$action = sprintf( '%s has become %s', bp_core_get_user_displayname( $user_id ), $role->name );
    
    	xprofile_record_activity( array(
    		'user_id'   => $user_id,
    		'action'    => $action,
    		'content'   => '',
    		'type'      => 'role_changed'
    	) );
    
    }
    add_action( 'set_user_role', 'buddydev_record_role_change_activity', 10, 3 );
    
    

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: [Resolved] Personal not linking to personal #6820

    Hi Chris,
    Please put this in your bp-custom.php

    
    
    /**
     * Update the url of the "Activity->Personal" link in the adminbar
     */
    function buddydev_update_personal_activity_in_admin_bar() {
    	global $wp_admin_bar;
    
    	if ( ! is_user_logged_in() ) {
    		return ;
    	}
    
    	// Update personal activity Url for the logged in user
    	$wp_admin_bar->add_menu( array(
    		'parent'   => 'my-account-activity',
    		'id'       => 'my-account-activity-personal',
    		'href'      => bp_loggedin_user_domain() . bp_get_activity_slug() . '/personal/',
    	) );
    }
    add_action( 'bp_activity_setup_admin_bar', 'buddydev_update_personal_activity_in_admin_bar', 100 );
    
    

    Please do let me know if that works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: Community Builder Theme – Colors Question #6819

    Hi Dave,
    Thank you for the mail. yes, the Facy Blue Theme style was originally not intended for the BuddyPress. I guess you are willing to use and so will others too. So, we are adding better BuddyPress compatibility for the Facy Blue theme as mentioned on email.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Chris,
    what is your allowable timeline for the project?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Hetal,
    We have a plugin specifically for that purpose.

    https://buddydev.com/plugins/bp-deactivate-account/

    It is a premium plugin.

    Since you are a developer yourself, I will share the strategy. You can just store a meta key for account deactivation and in the User query, just exclude all users having that meta key.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: [Resolved] Community Builder with WPAdverts #6808

    Hi Graham,
    The update is available now

    Please download it from your account page.
    For the list of changes, Please see this link
    https://buddydev.com/docs/guides/community-builder/miscellaneous/community-builder-releases

    The release fixes the issue with the WPAdverts(please try uploading new images and check) and adds layout compatibility with Geo Directory. It also fixes the selectbox issue( and in future should be compatible with any plugin using select2/choose scripts).

    Also, I have updated the tutorial for the verified plugin, In WordPress 4.7, Additional CSS was introduced and putting our code there makes it work.

    Please do let me know your findings.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456

    Hi Michael,
    I am sorry It seems we missed that. can you please give a try to the current version(we had an update 2-3 days ago) and let me know if the issue is still there?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: Community Builder Theme – Colors Question #6806

    Hi Dave,
    The theme update is available now. Please see the below link for changelog
    https://buddydev.com/docs/guides/community-builder/miscellaneous/community-builder-releases

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: Community Builder Theme – Colors Question #6805

    Hi Dave, An update will be available in an hour.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25456
    Brajesh Singh on in reply to: BuddyPress Avitars #6804

    Hi Dave,
    Those are activity avatars. what size you will like to have them? Do you want to have different size for activity and activity comments? Please let me know and I will help.

    About admin dashboard:-

    You can put the following code in your theme’s functions.php

    
    function buddydev_scrollable_users_list_css() {
    	?>
    <style type="text/css">
    	body.users-php .wrap {
    		overflow-x: auto;
    	}
    	body.users-php table.users {
    		table-layout: unset;
    	}
    </style>
    <?php
    }
    add_action( 'admin_print_footer_scripts-users.php', 'buddydev_scrollable_users_list_css' );
    
    

    That should do it.
    Hope that helps.

    regards
    Brajesh