BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: BuddyPress Extended User Groups Widget #4052

    Hi Tammy,

    I have fixed this issue. Please download the latest code from the following url

    https://github.com/buddydev/bp-extended-user-groups-widget

    and Let me know if it works for you or not.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Christian,

    No Worries, We have already tested.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Mediapress video height #4049

    Hi Christian,

    Please let me know. What are the resolution you want to set for the video so that I can modify in the code accordingly.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Hide Upper Right Menu at top bar #4048

    Hello Dandy,

    You can hide the Admin Bar Menu by following ways.

    1. By putting the following code in your current theme’s style.css file.

    
    #wp-admin-bar-my-account-xprofile-edit,
    #wp-admin-bar-my-account-xprofile-change-cover-image {
    	display:none !important;
    }
    
    

    2. By putting the following code in your bp-custom.php file

    
    function buddydev_remove_unwanted_menu() {
    
        global $wp_admin_bar;
    
        // place the node id you want to hide
        $node_ids = array(
            'my-account-xprofile-edit',
            'my-account-xprofile-change-avatar',
            'my-account-xprofile-change-cover-image'
        );
    
        foreach( $node_ids as $id ) {
            $wp_admin_bar->remove_node( $id );
        }
    
    }
    add_action( 'wp_before_admin_bar_render', 'buddydev_remove_unwanted_menu' );
    
    

    Please let me know know if It is works for you or not.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Hide Upper Right Menu at top bar #4029

    Hi Dandy,

    Welcome back again.I will get back to you by tomorrow.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Buddypress menu #4007

    Hi MM,

    Please try this code in your bp-custom.php file and Let me Know if it works for you or not.

    
    class BuddyDev_Display_User_Nav extends WP_Widget {
    
    	public function __construct() {
    
    		$widget_ops = array(
    			'description' => __( 'List of displayed user navigation menu', 'buddydev' ),
    		);
    
    		parent::__construct( false, _x( 'Display User Navigation', 'widget name', 'buddydev' ), $widget_ops );
    
    	}
    
    	public function widget( $args, $instance ) {
    
    		$title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
    
    		echo $args['before_widget'];
    
    		echo $args['before_title'] . $title . $args['after_title'];
    
    		?>
    
    		<ul><?php bp_get_displayed_user_nav(); ?></ul>
    
    		<?php
    
    	}
    
    	public function update( $new_instance, $old_instance ) {
    
    		$instance = $old_instance;
    
    		$instance['title'] = strip_tags( $new_instance['title'] );
    
    		return $instance;
    
    	}
    
    	public function form( $instance ) {
    
    		$default = array(
    			'title' => __( 'User Menu', 'bp-friend-request-widget' ),
    		);
    
    		$instance = wp_parse_args( (array) $instance, $default );
    		$title    = strip_tags( $instance['title'] );
    
    		?>
    		<p>
    			<label for="<?php echo $this->get_field_id( 'title' ); ?>">
    				<?php _e( 'Title:' ); ?>&nbsp;
    				<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" style="width: 100%"/>
    			</label>
    		</p>
    
    		<?php
    	}
    
    }
    
    function buddydev_user_nav_widget() {
    	register_widget( 'BuddyDev_Display_User_Nav' );
    }
    add_action( 'bp_widgets_init', 'buddydev_user_nav_widget' );
    
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Bjoern,

    I am looking into this and will let you know updates regarding this at day end.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Minoo,

    Thank you for the acknowledgement. I am happy that issue is resolved by You.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Christian,

    Sorry for the inconvenience. We have done the necessary changes in the new version 1.4.3. Please use the latest version of plug-in and let me know if it works for you or not.

    FYI, This plug-in might not work with older version of BuddyPress.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Mediapress video height #3971

    Hi Christian,

    Copy this template for mediapress plugin ” templates/mediapress/default/gallery/views/grid-video.php ” to your current theme ” mediapress/default/gallery/views/grid-video.php”

    and modify the following section

    
    $args = array(
    				'src'		=> mpp_get_media_src(),
    				'loop'		=> false,
    				'autoplay'	=> false,
    				'poster'	=> mpp_get_media_src( 'thumbnail' ),
    				'width'		=> 320, //set the width of video
    				'height'	=> 180  // set the height of the video
    			);
    

    and in your current theme file name “functions.php”

    
    function buddydev_set_mediapress_video_size(){
    
    	$default = array(
    		'name'=> 'thumb',
    		'width'=> 320, //set the width of video
    		'height'=> 180,  // set the height of the video
    		'crop'=> true,
    		'type'=> 'video'//allow multiple types
    
    	);
    
    	mpp_register_media_size( $default );
    }
    add_action('mpp-init', 'buddydev_set_mediapress_video_size' );
    

    place it at the bottom of the code

    Thank You
    Ravi