BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] How can I hide comment from activity page #33584

    Hello Denis,

    Thank you for posting. Please do let me on which platform you are working is it BuddyPress or BuddyBoss.
    If BuddyPress please let me know which template pack you are using.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Limit Characters in BuddyPress Activity Post #33572

    Hello Steven,

    Please ignore my last message. Please let me know have you copied code direct from email?. If yes please copy the code forum and then give it a shot. If issue still persists, Please share your whole “bp-custom.php” file code through pastebin.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Limit Characters in BuddyPress Activity Post #33570

    Hello Steven,

    Sorry for the inconvenience. Please try after rename this function. As there might be chance function name conflicting causing fatal error. If issue still persists post be the error you are getting with debug on.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] MEDIAPRESS STAR RATING ADDON #33567

    Hello Adam,

    Thank you for using the plugin. This plugin behaves like it allows media to be rated from 0 to 5 star and then show an average rating from all the users those rated on the media. It does not reset media rating to 0 for the individual user.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello hyunho,

    Thank you for posting. Please use the following code to allow media author to edit or delete media from global shared gallery. Also please make sure to disable “private” status from the settings as if enabled user can set private status for their media using edit screen and it cause problem as it will go away from the gallery media list.

    https://gist.github.com/raviousprime/24fa85e570691c32beb1b6ab6120ed7c

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] mpp-show-gallery display by creator id #33395

    Hello Matteo,

    Thank you for the acknowledgement.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: How can I add new tag to buddypress activity #33385

    Hello Adeala,

    Please try the following code. It will “(new)” to activity which posted within 5 minutes.

    
    
    add_filter( 'bp_activity_time_since', function ( $time_since, $activity ) {
        // Assuming last 5 minutes posted activity as new.
        $new_activity_time = strtotime( bp_core_current_time() ) - 5 * 60;
    
        if ( strtotime( $activity->date_recorded ) >= $new_activity_time ) {
            $time_since = __( '(new)' );
        }
    
        return $time_since;
    }, 10, 2 );
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] How can I hide comment from activity page #33382

    Hello Adeala,

    Try the following code. It will hide comment using css on activity directory. Please remove the previous code

    
    add_action( 'wp_footer', function () {
    
    	if ( ! bp_is_activity_directory() ) {
    		return;
    	}
    
    	echo '<style>ul#activity-stream .activity-comments{display: none;}</style>';
    } );
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: How can I add new tag to buddypress activity #33380

    Hello Adeala,

    Thank you for the acknowledgement. I will look into it and update you.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] mpp-show-gallery display by creator id #33374

    Hello Matteo,

    Thank you for the acknowledgement. Are looking to show all media items for a given user?. If yes, Then you can use ‘[mpp-list-media]’ as a shortcode it has a parameter same as gallery i.e. “user_id” which will list all media of a given user. For complete reference:

    https://buddydev.com/mediapress/shortcodes/mpp-list-media/#user-parameters

    Please do let me know if it helps or not.

    Regrads
    Ravi