How do I get a second sidebar on my BP feed?

Hey. So, i'm using the X-Theme; which as far as I know supports one sidebar. They gave me some code to implement a sidebar on one side of my Activity feed. I would like to know the code to implement a sidebar on the other side; so there's two.

Here's the code I got:

/* Buddypress stuff */

function x_get_content_layout() {

$content_layout = x_get_option( 'x_layout_content', 'content-sidebar' );

if ( $content_layout != 'full-width' ) {
if ( is_home() ) {
$opt = x_get_option( 'x_blog_layout', 'sidebar' );
$layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
} elseif ( is_singular( 'post' ) ) {
// $meta = get_post_meta( get_the_ID(), '_x_post_layout', true );
// $layout = ( $meta == 'on' ) ? 'full-width' : $content_layout;

//By default, force it to full-width as you prefer
$layout = 'full-width';

//Then simply add your post ID that will have the sidebar
$post_ids = array( 2323, 2343, 2342, 12321);

if ( in_array( get_the_ID(), $post_ids ) ) {
$layout = 'content-sidebar'; //or sidebar-content
}

} elseif ( x_is_portfolio_item() ) {
$layout = 'full-width';
} elseif ( x_is_portfolio() ) {
$meta = get_post_meta( get_the_ID(), '_x_portfolio_layout', true );
$layout = ( $meta == 'sidebar' ) ? $content_layout : $meta;
} elseif ( is_page_template( 'template-layout-content-sidebar.php' ) || x_is_buddypress_activity_directory() ) {
$layout = 'sidebar-content';
} elseif ( is_page_template( 'template-layout-sidebar-content.php' ) ) {
$layout = 'sidebar-content';
} elseif ( is_page_template( 'template-layout-full-width.php' ) ) {
$layout = 'full-width';
} elseif ( is_archive() ) {
if ( x_is_shop() || x_is_product_category() || x_is_product_tag() ) {
$opt = x_get_option( 'x_woocommerce_shop_layout_content', 'sidebar' );
$layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
} else {
$opt = x_get_option( 'x_archive_layout', 'sidebar' );
$layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
}
} elseif ( x_is_product() ) {
$layout = 'full-width';
} elseif ( x_is_bbpress() ) {
$opt = x_get_option( 'x_bbpress_layout_content', 'sidebar' );
$layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
} elseif ( x_is_buddypress() ) {
$opt = x_get_option( 'x_buddypress_layout_content', 'sidebar' );
$layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
} elseif ( is_404() ) {
$layout = 'full-width';
} else {
$layout = $content_layout;
}
} else {
$layout = $content_layout;
}

return $layout;

}

add_filter('ups_sidebar', 'force_buddypress_sidebar', 20);

function force_buddypress_sidebar ( $sidebar ) {

return x_is_buddypress() ? 'ups-sidebar-test-sidebar' : $sidebar;

}

Can the change I want be implemented here?