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

    Hi Nick,
    Thank you for the reply.

    I will not recommend using the suggested stackexchange approach. It is a hack and you should avoid such hacks as they may break in future.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi Maurice,
    The current implementation shows you the notice on your Gallery’s manage page(edit gallery where the uploaded media list is shown).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi Nick,
    We do not keep the instance or use singleton, so you won’t be able to unhook.

    That’s why we have added the option to disable it.

    Here is the code that you might use

    
    
    add_filter( 'bpmts_is_item_reportable', function ( $is_reportable, $item_type, $item_id  ){
    
        if( 'bp_activity' != $item_type ) {
            return $is_reportable;
        }
    
        // $item_id is activity id.
        // do something with it and set the $is_reportable to false to skip the item.
    
        return $is_reportable;
    }, 10, 4);
    
    

    If you update the $is_reportable to false for some activity type, It won’t be put in auto moderation.

    There is a side effect though. It will mark that activity type non reportable and user’s won’t be able to report it.
    A solution that I see is to use a similar filter for disabling auto moderation by type.

    We will be certainly adding it in next update. For the time being, Please use the above code(and adapat as you need).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi Nick,
    Thank you for the question.

    1. Currently, the bulk action is not available for delete/restore. We used that space for filtering(hidden/non hidden content).

    I do understand that we have overlooked this due to our bias towards the expected workflow(we assumed that all moderation reports will be assessed before taking action ).

    We will be adding the bulk restore/delete button in the next update of this plugin.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi,
    If you are using our WordPress.org version, we have following code that is used to latch over to the ajax posting and sending our uploaded media ids.

    
        //filter ajax request but only if the activity post form is present
        if (jq('#whats-new-form').get(0) || jq('#swa-whats-new-form').get(0)) {
    
            jQuery(document).ajaxSend(function (event, jqxhr, settings) {
    
                if (is_post_update(settings.data)) {
                    var attached_media = mpp_get_attached_media();
    
                    if (attached_media) {
                        settings.data = settings.data + '&mpp-attached-media=' + attached_media;
                        mpp_reset_attached_media();
                    }
                }
            });
    
            jq(document).ajaxComplete(function (evt, xhr, options) {
    
                var action = get_var_in_query('action', options.data);
    
                //switch
                switch (action) {
    
                    case 'post_update':
                    case 'swa_post_update':
                        hideActivityUploadContainer();
                        mpp.activity_uploader.hide_ui(); //clear the list of uploaded media
                        jq('.mpp-remote-add-media-row-activity').hide();
                        break;
                }
    
            });
    
        }
    

    It seems to me that when you are enabling the rich text editor, the code does not get attached.
    If possible, Please investigate it.

    If you are using the plugin from github, Please let me know. we have a bit different code there.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi,

    I am sorry for the inconvenience.
    Please allow us to test and get back to you tomorrow.

    I am assuming that you are using the plugin from WordPress.org?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392
    Brajesh Singh on in reply to: Blog Categories for Groups #44985

    Hi Craig,
    Thank you for the questions.

    1. We hope to bring group posting functionality to BuddyBlog Pro in future.

    2. For the time being, this plugin is not deprecated. We release any bug fixes but we are not actively developing the blog categories.

    We are hoping that the Group Blogging for BuddyBlog should allow moving content like we did with BuddyBlog earlier. Though, there may be some incompatibilities.

    Please feel free to use it currently.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi,
    Thank you.

    I am glad you have got it working by slightly changing the strategy.

    Please do let me know if you need any further change from us.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392

    Hi Nick,
    Do you want to disable it for all activity updates? If yes, Please visit Dashboard->Moderation->Settings-> untick BuddyPress Activity

    If no, Please help me understand better.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25392