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

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394

    Thank you both of you. Specially Aubrey for the details.

    It is fixed in 1.3.5

    The problem was related to the way we are doing it on activity. On the page load, the Dropzone is hidden, so the shim was positioning incorrectly.

    To fix it, I had to refresh the uploader after the drozone becomes visible and that fix it.

    Here is the fix.
    https://github.com/buddydev/mediapress/commit/ea9b4b013b8aac8475c47598a55e74300ad264ec

    Also, I have pushed 1.3.5 on wp.org, Please use it.

    Thank you for the patience and help on this.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: how to set the Activity feed to ascending? #14054

    Also, Please make sure you did not copy it from the email notification. The code in email gets entity encoded.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: how to set the Activity feed to ascending? #14053

    Hi Peter,
    The code is working fine as I just confirmed again.

    Please enable WP_DEBUG and let me know what error you are seeing. It should be a fatal error.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: how to set the Activity feed to ascending? #14050

    Please make sure to remove the previous code. Keeping both have caused white screen as I have used same name for the functions.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: how to add shortcode to top of activity feed #14048

    Hi Peter,
    You will need to somehow co-relate a slider to the user.

    The possible options are using the username or the id.

    So, you will be naming your slider as

    
    some-slider-1 or some-slider-admin
    
    

    and based on the choice you can use the following to generate the slider name dynamically.

    
    
    echo do_shortcode( '[rev_slider alias="gym-classes-'. bp_displayed_user_id() .'"]' );
    
    

    or

    
    
    echo do_shortcode( '[rev_slider alias="gym-classes-'. bp_get_displayed_user_username() .'"]' );
    
    

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: how to set the Activity feed to ascending? #14047

    Thank you.

    You may use the following code instead

    
    
    /**
     * List activities in ascending order.
     *
     * @param array $args activity args.
     *
     * @return array
     */
    function buddydev_list_activities_ascending( $args ) {
    	if ( bp_is_user_activity() ) {
    		$args['sort'] = 'ASC';
    	}
    
    	return $args;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'buddydev_list_activities_ascending' );
    
    

    It only shows the activities as ascending on the user profile.

    Best regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25394
    Brajesh Singh on in reply to: how to set the Activity feed to ascending? #14044

    You can list the activities as ascending using the following code

    
    
    /**
     * List activities in ascending order.
     *
     * @param array $args activity args.
     *
     * @return array
     */
    function buddydev_list_activities_ascending( $args ) {
        $args['sort'] = 'ASC';
    
        return $args;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'buddydev_list_activities_ascending' );
    
    

    It is possible to list the last activity at top but that will be a bit complicated and I won’t be able to assist much with that due to lack of time.

    Hope it helps.
    Regards
    Brajesh