Replies
- Brajesh Singh on May 9, 2018 at 5:40 pm in reply to: Issue/Bug with plugin BuddyPress Profile Visibility Manager #15005
hi Thorsten,
Welcome back.It seems some other plugin is doing it. I checked by hiding the last active time and it worked fine for me.
Is there any chance that you are using stealth mode for siteadmin plugin? That might cause this issue though.
Please checka nd let me know.
Regards
Brajesh Hi Nik,
Thank you.I certainly believe that you sharing code was very helpful. I haven’t checked RT Media’s code/architecture in recent past, so I was not aware.
It will help us when I or my team writ a migrator and when we do, if we ever get into trouble with there architecture, I will be getting in touch with you for the guidance.
Thank you again.
Brajesh
- Brajesh Singh on May 8, 2018 at 7:12 pm in reply to: Implementing Instagram Photos into MediaPress ? #14997
Hi Daniel,
No problem.Thank you for the patience.
Regards
Brajesh HI Daniel,
Please allow me to look into it. I will need 24-48 hours to investigate and assist.Thank you
BrajeshHi Nik,
Thank you.
The page is Gallery directory which is available when you use it with BuddyPress. It lists galleries with public/logged in visibility.
1. For templateting:L- If you want to control the whole page layout etc, please create a page template and set it as the template for Gallery Directory page from Pages edit screen.
To modify the loop/content, Please copy the
plugins/mediapress/templates/mediapress/default/buddypress/gallery/directory/index.phpto
Your theme or childtheme/mediapress/default/buddypress/gallery/directory/index.phpand please feel free to modify it.
I will work on documentation a lot more after we get 3 more features/enhancements(remote media, transcoding, and moving to another storage architecture). We will have these by 1.5 and then documentation will be my focus.
For the activity comment part, Please use the following snippet.
/** * Disable commenting on MediaPress activity. * * @param bool $can_comment can comment? * @param string $activity_type activity type. * * @return bool */ function mpp_custom_disable_activity_comment( $can_comment, $activity_type ) { if ( 'mpp_media_upload' == $activity_type ) { $can_comment = false; } return $can_comment; } add_filter( 'bp_activity_can_comment', 'mpp_custom_disable_activity_comment', 10, 2 ); /** * Disable comment reply. * * @param bool $can_comment con comment? * @param BP_Activity_Activity $comment comment object. * * @return bool */ function mpp_custom_disable_activity_comment_reply( $can_comment, $comment ) { $activity = new BP_Activity_Activity( bp_get_activity_id() ); if ( $activity->id && 'mpp_media_upload' === $activity->type ) { $can_comment = false; } return $can_comment; } add_filter( 'bp_activity_can_comment_reply', 'mpp_custom_disable_activity_comment_reply', 10, 2 );Regards
Brajesh- Brajesh Singh on May 8, 2018 at 5:15 pm in reply to: [Resolved] Auto delete "already red" buddypress notification #14990
Hi Julia,
My code deletes all read notifications when you are on notifications page(unread). It does not do anything else. - Brajesh Singh on May 8, 2018 at 5:14 pm in reply to: [Resolved] Need to delete a textline in BuddyBlog plugin #14989
Hi Daniel,
1. Putting the file is child theme is fine.
2. You are right about all except, you will be removing the code not adding anything to it.3. Please avoid the suggestion from @ravisharma. Even though It will work, It will be an issue in future. You can do without it.
Regards
Brajesh Hi Jim,
Please try what Ravi suggested.there are 3 more possibilities
1. the culprit code may be in wp-content/plugin/bp-custom.php
2. Something in the current theme/child theme is affecting it3. The users did not login to the site and their last active time is not set. BuddyPress will not list these users(It is very less likely from your above posts).
Regards
BrajeshHi Jim,
Welcome to BuddyDev.It seems that some plugin or code in causing the issue.
The possible ways to find the problematic code is
1. search for ‘bp_after_has_members_parse_args’. is some code using it. Try working around it.
2. Look for ‘bp_pre_user_query’ and ‘bp_pre_user_query_construct’ and see if any code is using it(except BuddyPress core)
3. search for ‘pre_user_query’ and see if anything is attached to it.
4. Look for ‘bp_ajax_querystring’ and see if it is doing something with users.
If any of the above is found, Please try disabling/working around it.
There are the most probable cause of members being hidden.
Regards
Brajesh- Brajesh Singh on May 7, 2018 at 11:36 pm in reply to: [Resolved] Auto delete "already red" buddypress notification #14967
Hi Julia,
Please add the following code to your bp-custom.php/** * Delete Read notifications. */ function buddydev_clear_read_notifications() { if( ! bp_is_my_profile() ) { return ; } BP_Notifications_Notification::delete( array( 'user_id' => get_current_user_id(), 'is_new' => 0, ) ); } add_action( 'bp_notifications_screen_unread', 'buddydev_clear_read_notifications' );That will do it.
Regards
Brajesh