BuddyDev

Search

Replies

  • Participant
    Level: Yogi
    Posts: 1117
    calu on in reply to: The 'Active' text in the span.activity has gone. #28084
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1117

    Hi Brajesh, just to clarify, where is the right place for adding the pagination no-ajax, as there are two members-loop.php files, one in

    bp-templates>bp-legacy>buddypress>members>members-loop.php

    and one in

    bp-themes>bp-default>members>members-loop.php.

    I have so far added the pagination no-ajax to the members-loop.php file in bp-templates, but should I create a copy of the bp-themes as well to make it work?
    Thanks in advance
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117

    Hi Brajesh, thanks, I’m still running Legacy, I know the code does not work with Nouveau.

    Strangely that the code is not working anymore, I have to check the path again, as the code has been deleted and the written in again

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117

    Hi Brajesh, I’m aware that this is a normal behaviour for web pages using ajax.

    But the hole purpose of adding the class=”pagination no-ajax”, was not to use ajax?

    So it is not possible to turn off ajax anyway on webpages or how should I understand this?

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117
    calu on in reply to: Why does bp members directory reload every time – revisited #27962

    Update – It looks like the members directory updating is also taking place when using the back button, the timing is just different, meaning that the directory has updated on page opening, different behavior when swiping back.

  • Participant
    Level: Yogi
    Posts: 1117
    calu on in reply to: Why does bp members directory reload every time – revisited #27961

    Hi, I noticed that the no ajax reload is working if I return to the directory, by using a back button.

    If I swipe back on the phone screen, the directory reloads.

    Any solution to this would be much appreciated as the reload time is a nuisance for users.

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117

    On the other hand, I think it’s maybe a good idea to keep the avatar images on my WP server, so it is not relevant.

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117
  • Participant
    Level: Yogi
    Posts: 1117
    calu on in reply to: [Resolved] Users avatars gone #27730

    Hi Brajesh, problem solved,
    after uploading my media gallery to AWS, the url’s in the code for using different default avatar based on BuddyPress profile field was of course not valid anymore

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117
    calu on in reply to: [Resolved] Hhow to connect MediaPress to a cloud server #27695

    Problem solved, this snippet, which I had forgotten all about, was causing it.

    Thanks for your help with solving this issue

    /**
     * Filter WordPress attachment args to remove MediaPress Media from the list.
     *
     * @param array $args args.
     *
     * @return array
     */
    function mpp_custom_filter_attachment_args( $args ) {
    
    	$args['meta_key']     = '_mpp_is_mpp_media';
    	$args['meta_compare'] = 'NOT EXISTS';
    
    	return $args;
    }
    
    add_filter( 'ajax_query_attachments_args', 'mpp_custom_filter_attachment_args' );