BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Translation to spanish Media Rating #16528
    This reply has been marked as private.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Translation to spanish Media Rating #16527

    Hello Oscar,

    Please find in “en_US.po” line no. is 101.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Translation to spanish Media Rating #16524

    Hello Oscar,

    I have updated the plugin after fixing some translatable string. Also, I have added a new translation file for en_US. Please check. If still find some issue please do let me know.

    https://buddydev.com/plugins/mpp-media-rating/

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Allow creating galleries only to role admin #16473

    Closing this thread as already replied on other thread.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Creating galleries only to role admin #16472

    Hello Antonio,

    Thank you for posting. Please use the following code disable gallery tab for non-admin users.

    
    /**
     * Modify gallery tab permission
     *
     * @param bool   $is_active Can create gallery or not.
     * @param string $component Component name.
     * @param int    $component_id Component id.
     *
     * @return bool
     */
    function buddydev_modify_gallery_tab_permission( $is_active, $component, $component_id ) {
    
    	if ( 'members' == $component && ! is_super_admin( $component_id ) ) {
    		return false;
    	}
    
    	return $is_active;
    }
    add_filter( 'mpp_is_enabled', 'buddydev_modify_gallery_tab_permission', 10, 3 );
    
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: wp_bp_notifications removing entries #16466

    Hello Joseph,

    Thank you for posting here. yes, it is perfectly okay to delete old notifications. You can use the following Mysql query to delete notification from the table. This query will delete all the notifications before the given date.

    
    
    DELETE FROM wp_bp_notifications WHERE date_notified <= '2018-07-01 00:00:00';
    
    

    Replace the date as per your requirement. Let me know if there is an issue.

    Thank you
    Ravi

    • This reply was modified 6 years, 11 months ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Sorted by rating #16223

    Hello Oscar,

    Thank you for reporting the bug. Yes, by default it was showing only 5 media. Now I have added support with per_page parameter offered by mpp-list-media. Also, I have added a new parameter rating-interval in which you can pass the no.of days to get top rated media.

    Please upgrade the plugin and let me know if is there any issue.

    Thank you
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Sorted by rating #16156

    Hello Oscar,

    Sorry for the inconvenience. I will check for the limit and will update you. By global what you are trying to say please make me more clear on it.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Comments link in gallery view #16016

    Hello AudioMonk,

    Thank you for sharing the screenshots. Is there any chance that you are overriding one of MediaPress template templates(grid-photo.php?). If yes, please share the code on pastebin and link me.

    we need the ‘mpp_media_meta’ action in this template.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Comments link in gallery view #15979

    Hello Audiomonk,

    Thank you for the acknowledgement. The above provided code does that. Means it will add a link under “edit|delete” action to make a comment. Please post me the code you are using.

    Thank You
    Ravi