Replies
- Brajesh Singh on May 1, 2017 at 1:49 am in reply to: [Resolved] Alllow one more role than admin to see "private" gallaries #8901
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 - Brajesh Singh on May 1, 2017 at 1:47 am in reply to: [Resolved] BuddyPress Extended Friendship Request #8900
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 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
BrajeshHi 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
BrajeshHi 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
BrajeshHi 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- Brajesh Singh on April 28, 2017 at 12:40 pm in reply to: Problem with Plugin Site Wide Activity: Remove reply users #8812
Hi Alex,
I have made these changes now.Please use the version form github
https://github.com/sbrajesh/buddypress-sitewide-activity-widgetI 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 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.
- Brajesh Singh on April 27, 2017 at 7:17 pm in reply to: [Resolved] Alllow one more role than admin to see "private" gallaries #8805
Thank you.
i am looking forward to see your result. 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).