• Hello!

    I successfully use AWS for Buddypress (Ajax container ID #item-body), thank you very much. Now I found that private messaging window showed not properly with AWS using.

    If I just reload page being on link …domain.com/members/username/messages/compose/, all is ok. If I use ajax navigation, input field #send-to-input looks strange. It’s just because bp-messages-cssjs.php is working wrong – without applying jquery.autocompletefb.min.css.

    Problem is that bp-messages-cssjs.php uses function bp_is_current_action( ‘compose’) and it’s working wrong using AWS. I understood one thing: if I navigate using ajax on different pages of buddypress urls are changing but buddypress “component” and “action” – not. It’s keeping from last page of full refreshing. I can make some changes in bp-messages-cssjs.php and css will load but potentially this problem can affect on different pages, which use bp_is_messages_component and bp_is_current_action function.

    Probably it’s possible to resolve by modifying this code (function bp_core_set_uri_globals()) in bp-core-catchuri.php:

    // Ajax or not?
    	if ( defined( 'DOING_AJAX' ) && DOING_AJAX || strpos( $_SERVER['REQUEST_URI'], 'wp-load.php' ) )
    		$path = bp_core_referrer();
    	else
    		$path = esc_url( $_SERVER['REQUEST_URI'] );

    this script cutted the url using different ways – for ajax and normal use. But that’s all about admin-ajax.php calls and I don’t know how I can use it for AWS. Maybe you have more useful ideas because it’s not so great to modify core function. Thank you.

    https://www.ads-software.com/plugins/ajaxify-wordpress-site/

  • The topic ‘Buddypress component and action reload’ is closed to new replies.