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: 25468
    Brajesh Singh on in reply to: Displaying title and user on shortcode pages #8907

    Hi Xochi,
    I am sorry but I have lost the track due to so many mixed replies here.

    I understand that you have been looking for it for long and I am truly sorry for the inconvenience. My I ask you to open a topic and mention the things you are trying to accomplish now. I will assist quickly.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi Brett,
    Thank you for posting.

    1. Currently the plugin only supports core BuddyPress field. We do plan to add support for custom field type in future.

    2. It will not work if you have a field marked as required and which is controlled by conditions. The best way is to not mark conditional fields as required. We understand that you still want to validate that field. Please see the below topic for an example of validation

    https://buddydev.com/support/forums/topic/conditional-profile-fields/#post-8209

    yours can be simpler than that.

    If you need assistance with code, please do post me the field ids and the details for validation and I will help.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Closing as resolved due to lack of replies.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] search user by "USER ID" #8902

    You are welcome!

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    You are welcome Christien.
    I am glad I was able to point in the right direction.

    Tough I agree that switching back is a little bit uncomfortable, It is still best for the security reason.

    All the best with your project 🙂

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi Gibby,
    we will be pushing it on the wp.org repo and also on BuddyDev site today. Please feel free to delete and upgrade then. We will leave a message after the update is available to let you know.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: BuddyBlog Post Formatting #8899

    Hi Justin,
    Thank you for the kind words.

    if you are comfortable with PHP, please try the steps I suggested above.

    The post loop is a custom WordPress post loop and you can make it look as you need. Please do let me know if you need assistance with the code.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] Email message #8898

    Hi Swati,
    that’s good to know.

    The issue you are finding is strange. That is the default behaviour for the private message button.
    Will it be possible for you to share a screenshot?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: [Resolved] search user by "USER ID" #8814

    Hi Swati,
    Thank you.

    You can use the following code to do that

    
    
    /**
     * Search a member list by the user id with prefixed username
     */
    function buddydev_search_member_by_user_id( $args ) {
    
    	if ( empty( $args['search_terms'] ) ) {
    		return $args;
    	}
    	$prefix = strtolower( "INDIA77" ); // Change the prefix if you are using a different prefix
    
    	$term = strtolower( trim( $args['search_terms'] ) );
    
    	if ( stripos( $term, $prefix )  === 0 ) { //must start with
    		$id = str_replace( $prefix, '', $term );
    		$args['include'] = absint( $id ); // only this user please
    		$args['search_terms'] = ''; // reset search term
    	}
    
    	return $args;
    }
    
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_search_member_by_user_id' );
    
    

    here we are making sure that our search term starts with the “prefix” and then we replace the prefix to find the id. rest is same.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: BuddyBlog Post Formatting #8813

    Hi Justin,
    Welcome to BuddyDev.

    Since we haven’t provided any css with BuddyBlog, most of the time it takes from the current theme.

    If the layout is bad, there is an easy solution. Copy plugin/buddyblog/template/buddyblog/posts.php to your theme/buddyblog/posts.php

    and modify it to use your own theme’s article layout.

    Hope that helps.

    Regards
    Brajesh