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: 25275

    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: 25275

    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: 25275
    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: 25275
    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: 25275
    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: 25275
    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25275

    Hi Alex,
    I have made these changes now.

    Please use the version form github
    https://github.com/sbrajesh/buddypress-sitewide-activity-widget

    I will be pushing to wp.org in next two days as I am planning to rewrite the whole plugin for better future maintenance and better code.

    Thank you
    Brajesh

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

    Hi Swati,
    Thank you for clarifying.

    Please put the following code in your bp-custom.php

    
    
    /**
     * Search a member list by the user id
     */
    function buddydev_search_member_by_user_id( $args ) {
    
    	if ( empty( $args['search_terms'] ) ) {
    		return $args;
    	}
    
    	$term = $args['search_terms'];
    
    	if ( is_numeric( $term ) ) {
    
    		$args['include'] = absint( $term ); // 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' );
    
    

    Now if you use numeric id in the directory search form, it will list that user.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25275

    Thank you.
    i am looking forward to see your result.

  • Keymaster
    (BuddyDev Team)
    Posts: 25275
    Brajesh Singh on in reply to: MediaPress Upload HTTP Error #8804

    Hi Leo,
    We are not creating any temp directory. It is coming from php’s temp dir when the file is being uploaded.
    It seems something changed on the server and the location of temp has changed.

    Please ask the support why the php’s temp directory is not working. It should work for shared hosting too(The location might be different).