Buddydrive integration with wplms

Please add the given code in your wplms customizer.php file in wplms customizer plugin :

add_action( 'bp_after_member_activity_post_form', 'bp_global_activity' );
add_action( 'bp_activity_post_form_options', 'bp_global_activity' );
function bp_global_activity() {
      echo '<style>
        body.activity.bp-user #buddypress #buddydrive-btn, body.activity.directory #buddypress #buddydrive-btn, body.single-item.groups #buddypress #buddydrive-btn{
            position: absolute;
          bottom: 22px;
    right: 120px;
        }
        #buddypress form#whats-new-form #whats-new-content {
        position: relative;
      
}
        </style>';
    // Always check the editor is available to prevent fatals!
    if (function_exists( 'buddydrive_editor' ) ) {
        // 'whats-new' is the id attribute of the textarea to publish activities
        buddydrive_editor( 'whats-new' );
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *