BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Buddypress branded login formatting #2395

    Hi,
    Thank you.
    That is fine, At least we are reaching somewhere. Please keep it as it is for now. Can you please send me your login.php by mail on brajesh@buddydev.com?

    I just need to check a few things and I can update accordingly.

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Buddypress branded login formatting #2393

    Does you theme now have “blogin/login.php”

    I mean in your theme, you have the “blogin” folder and there in he “blogin” folder you have the login.php, which you have replaced with the page.php content?

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Buddypress branded login formatting #2390

    Hi Brandon,
    Yes, Please move “blogin” folder to your theme. Then replace the content of login.php with that of page.php

    That should make it work.

    Currently, single the plugin is not able to see this template, is using theme compat.

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Buddypress branded login formatting #2388

    Hi Brandon,
    Thank you.
    Can you please give it a try again.

    1. Activate the plugin (Keep it active if it is already)
    2. Visit BuddyPress->pages and Change the login page to this new page that you have created with shortcode.

    3. As I asked earlier, If you have updated the blog/login.php in your theme, do you have the post loop there? If yes, It should work.

    I checked again and the page_id is set to 0 by BuddyPress but if there is a loop, It runs. Can you please try that.

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Buddypress branded login formatting #2385

    Hi Brandon,
    Thank you.

    I will work on it and will provide you some code to enable us use the visual editor for page content.

  • Keymaster
    (BuddyDev Team)
    Posts: 25058

    Hi Rodolfo,
    Thank you. I am thinking about some possibilities. Is there any chance that you upgraded from older version of Simple front end post plugin?

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: [Resolved] Dynamic Link In Menu #2379

    Hi Erich,
    Though it is possible to filter nav menu and add Item, I will prefer another approach.

    I will create a page call it say “my-subscriptions” and then on “template_redirect” action check if the user is logged and is trying to visit this page redirect to the link you wanted to link earlier.

    Something like this

    
    
    add_action( 'template_redirect', 'buddydev_bbp_redirect_tosubscription_page' );
    
    function buddydev_bbp_redirect_tosubscription_page() {
    	
    	if( !  is_user_logged_in() || ! is_page( 'my-subscription') ) {
    		return ;
    	}
    	
    	$url = bbp_get_user_profile_url( get_current_user_id() ) . 'forums/subscriptions/#bbp-author-unread-topics';
    	
    	wp_safe_redirect( $url );
    	exit(0);
    	
    }
    
    

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: List of groups plugin idea #2377

    Hi,
    Perhaps there is an existing widget here
    https://github.com/sorich87/buddypress-my-groups-widget

    If that does not suits you, can you please let me know what improvements can we provide if we have to create new widget?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058

    Hi Rodolfo,
    I am sorry but I am not able to produce any of these.

    I am on WordPress 4.4.1/BuddyPress 2.4.3 and using BuddyBlog 1.1,4 and BP Simple front end post 1.2.7

    Can you please post a screenshot of your settings page for BuddyBlog?

  • Keymaster
    (BuddyDev Team)
    Posts: 25058

    Hi Leo,
    Thank you for the details.

    I can understand it now. Since in MediaPress, The MPP_Media_Query and MPP_Gallery_Query extends WP_Query, any action/filter applied on the WP_Query also affects it.

    There is an easy solution though.

    
    
    function SearchFilter($query) {
    	
    	if ( $query->is_main_query() && $query->is_search) {
    		$query->set( 'post_type', 'post' );
    	}
    	
    	return $query;
    }
    add_action( 'pre_get_posts', 'SearchFilter' );
    
    

    Make sure to check for is_main_query() on the query object and it will not affect any other loop.

    More details on MPP_Media_Query and MPP_Gallery_Quey below.

    https://buddydev.com/mediapress/topics/api-reference/core/mpp_media_query/
    https://buddydev.com/mediapress/topics/api-reference/core/mpp_gallery_query/

    Hope that helps

    Thank you
    Brajesh