Replies
- 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).
- Brajesh Singh on April 27, 2017 at 7:14 pm in reply to: Custom gallery and media Search on buddypress/directory template #8803
Hi Nash,
Welcome to BuddyDev.Thank you for posting. It is easily doable. all you need to do is modify our main query loop.
To change the main loop, you can uise the following filter
https://github.com/buddydev/mediapress/blob/master/mpp-core-component.php#L421
And the ajax loading on directory is done by this
https://github.com/buddydev/mediapress/blob/master/core/ajax/mpp-ajax.php#L72
MediaPress MPP_Gallery_Query allows you to search in the same way you can do with WP_Query. All you need to do is pass the proper args.
Hope that helps.
- Brajesh Singh on April 27, 2017 at 7:12 pm in reply to: [Resolved] Change font color of Group Activity Inner #8801
Thank you for confirming.
I am glad I was able to help 🙂 - This reply has been marked as private.
Hi Kalpesh,
Thank you. That is a little bit strange. Please use chrome developer tool and inspect the current tab. That should give you the idea.From the screenshot, that was the only valid guess I could make.
- Brajesh Singh on April 27, 2017 at 10:46 am in reply to: Lightbox only showing first 10 pictures #8792
Thank you Kriss.
We will have an uipdate today for the same. Hi Leo,
Can you please ask the support i they can help us understand what is triggering the mod_security rules.I haven’t seen anything like this before where the normal wp uploads worked but not the MediaPress.