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

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25299
    Brajesh Singh on in reply to: [Resolved] rtMedia to Mediapress #14998

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25299

    Hi Daniel,
    No problem.

    Thank you for the patience.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25299
    Brajesh Singh on in reply to: [Resolved] Ajax Registration #14996

    HI Daniel,
    Please allow me to look into it. I will need 24-48 hours to investigate and assist.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25299
    Brajesh Singh on in reply to: BuddyPress Activity Comment Notifier #14995

    Hi 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.php 
    

    to

    
    
    Your theme or childtheme/mediapress/default/buddypress/gallery/directory/index.php
    
    

    and 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25299

    Hi Julia,
    My code deletes all read notifications when you are on notifications page(unread). It does not do anything else.

  • Keymaster
    (BuddyDev Team)
    Posts: 25299

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25299
    Brajesh Singh on in reply to: BuddyPress Members List #14988

    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 it

    3. 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
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25299
    Brajesh Singh on in reply to: BuddyPress Members List #14968

    Hi 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25299

    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