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: 25394
    Brajesh Singh on in reply to: Ajax registration – form has gone whacky #14330

    Thank you Diana.

    I am sorry for the delayed reply.

    Please put this in your child theme

    
    /**
     * Load on login page.
     */
    function buddydev_login_load_ajaxr_styles() {
    	wp_enqueue_style( 'bp-custom-ajaxr', get_stylesheet_directory_uri() . '/bp-ajax-register.css' );
    }
    
    add_action( 'login_enqueue_scripts', 'buddydev_login_load_ajaxr_styles' );
    
    

    That will load the styles from your child theme on the wp-login.php page too and should fix the form.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: Delete account. #14329

    Hi Martin,
    Thank you for clarifying.

    So, the problem lies with the bbPress generated content. Please allow me to test it today and get back to you later today/early tomorrow.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Herve,

    1. Please see https://buddydev.com/buddypress/disallowing-activity-recording-for-components-or-some-activity-types-in-buddypress/

    2. You will need to replace the table and the year for each of the following instructions.

    a). List all activities for a user

    
    SELECT * FROM 'wp_bp_activity' WHERE YEAR(date_recorded) = 2016
    

    b). Delete for a year

    
    
    DELETE FROM <code>wp_bp_activity</code> WHERE YEAR(date_recorded) = 2016
    
    

    c). List orphan activity meta

    
    SELECT * FROM <code>wp_bp_activity_meta</code> WHERE activity_id NOT IN( SELECT id from wp_bp_activity )
    
    

    d). Cleanup the orphan meta

    
    DELETE FROM <code>wp_bp_activity_meta</code> WHERE activity_id NOT IN( SELECT id from wp_bp_activity )
    
    

    All the above actions are destructive and it is strongly suggested to take database backup before them. Also, Manually deleting activity will cause other complications.

    3. The less interesting needs to be quantified. How do you define something less interesting?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] Site Wide Activity Plugin #14327

    Hi Jill,
    Can you please link me to a page where I can see the Sidewide activity plugin in action?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] Site Wide Activity Plugin #14326

    Thank you Jill.
    I am looking at it and will get back to you soon.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: profile customization with widgets #14325

    Hi Monica,
    Thank you for posting.
    I have received your email regarding the same and have seen the site. I will get back to you with details via email as this task falls outside of our forum support here.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: MultiSite #14324

    Hi Madhavi,
    No, there is no available way to automate it from WP Admin to Cpanel. It is possible to do so with the CPanel APi
    https://documentation.cpanel.net/display/DD/Guide+to+cPanel+API+2
    https://documentation.cpanel.net/display/DD/cPanel+API+2+Functions+-+SubDomain%3A%3Aaddsubdomain

    The time and effort does not justify it as it is a problem with hosting and putting temporary fix is not the right way to handle it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: Private message limit #14318

    Hi Ahmed,
    Most probably this plugin https://buddydev.com/plugins/bp-private-message-rate-limiter/ can be used with a few hooks to accomplish the same. It does not directly integrate with the PMPro though.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: [Resolved] Site Wide Activity Plugin #14317

    Hi Jill,
    I am sorry for the inconvenience.

    Are you using any other plugin for posting to activity? Also, which theme are you using?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Hi Herve,
    You may use the following code

    
    
    /**
     * Set an xprofile field value on account activate.
     *
     * @param int $user_id user id.
     */
    function buddydev_insert_preset_field_value( $user_id ) {
    	$field_id = 794;
    	xprofile_set_field_data( $field_id, $user_id, 4 );
    }
    add_action( 'bp_core_activated_user', 'buddydev_insert_preset_field_value' );
    
    

    That will insert/update the field value when user account is activated.

    Regards
    Brajesh