Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 56 total)
  • Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    I’m not a coder so forgive me if I don’t understand the Javascript in the code. Appreciate any help and hope there are others who understand what I’m getting at.

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    I have read and checked more than three times. My original question is I want to delete a member from a group – i.e. remove them from a group not from the site.
    I really hope there is better group member management for Buddypress as it is a nightmare when there are thousands of members.

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Sorry but I don’t see any Group management options in the back end either. Can you please show a screenshot of what I’m supposed to see?

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Hmm somehow I don’t see the selector. I have placed bp-custom.php in the root of the plugins folder

    and this is the code

    <?php
    // hacks and mods will go here
    // remove users from groups
    add_action('load-users.php',function() {
    
    if(isset($_GET['action']) && isset($_GET['bp_gid']) && isset($_GET['users'])) {
        $group_id = $_GET['bp_gid'];
        $users = $_GET['users'];
        foreach ($users as $user_id) {
            groups_leave_group( $group_id, $user_id );
        }
    }
        //Add some Javascript to handle the form submission
        add_action('admin_footer',function(){ ?>
        <script>
            jQuery("select[name='action']").append(jQuery('<option value="groupleave">Remove from BP Group</option>'));
            jQuery("#doaction").click(function(e){
                if(jQuery("select[name='action'] :selected").val()=="groupleave") { e.preventDefault();
                    gid=prompt("Please enter a BuddyPres Group ID","");
                    jQuery(".wrap form").append('<input type="hidden" name="bp_gid" value="'+gid+'" />').submit();
                }
            });
        </script>
        <?php
        });
    });
    ?>

    I wonder what I’m doing wrong?
    This is what I’m seeing:

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Thanks!
    Done that but I can’t seem to find the new functions
    Is it supposed to be in
    mysite/groups/groupname/admin/manage-members/
    ?

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Hi. Thanks for this.
    Sorry but a noob question: where is the bp-custom.php file? I can’t seem to locate it

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    @naijaping thank you!

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    OK got the types wrong and got to=he info from the table in phpmyadmin

    Anyway this code works in ones custom function.php

    // Filter bbPress from updating activity stream
    function imath_activity_dont_save( $activity_object ) {
    $exclude = array( 'bbp_topic_create', 'bbp_reply_create');
    
    // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function
    if( in_array( $activity_object->type, $exclude ) )
    $activity_object->type = false;
    
    }
    
    add_action('bp_activity_before_save', 'imath_activity_dont_save', 10, 1 );
    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    I just tried that and it doesn’t prevent bbPress from updating the Activity stream 🙁

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    @sharmavishal: It doesn’t seem to work for me
    I put Blocked Activity Types:
    new_forum_topic, new_forum_post
    and the bbPress topics and replies still go thru

    @naijaping and anyone, what should the code be? Like this? :

    // Filter bbPress from updating activity stream
    function imath_activity_dont_save( $activity_object ) {
    $exclude = array( 'new_forum_topic', 'new_forum_post');
    
    // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function
    if( in_array( $activity_object->type, $exclude ) )
    $activity_object->type = false;
    
    }
    
    add_action('bp_activity_before_save', 'imath_activity_dont_save', 10, 1 );
    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    I also tried the plugin
    https://wordpress.org/plugins/buddypress-block-activity-stream-types/
    but it seems it’s an orphaned one not updated for a couple of years
    What I really hope to do is to prevent bbPress new topics and replies from appearing in the Activity stream – it’s really quite redundant I feel

    Help anyone?

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Unfortunately the “Cannot create new topic” bug is still present if you are not an Admin and are using the short code

    • You must be logged in to create new forums.

    in the forum root

    🙁

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Not happening for me too. On Buddyboss 3.1.7 – will report to the developers

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Sadly I have to report this issue is still not fixed in BP 2.0

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Automatic Activity Timeline update please (like Facebook)

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    I’m also using Buddyboss. OK @modemlooper I have installed it and for comments made on the main Activity timeline it seems to work.
    I do wish there were an auto-refresh for the Activity timeline 🙂

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Gosh I’d really like to see this updated for Buddypress. One of the reasons why using updates in Facebook group “discussions” is user friendly is that comments bump the update up.

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    You could also try the S2 Member plugin. For the Buddypress Community content you can restrict that using the URI restriction option for forum, member, activity sections etc.
    It’s quite flexible.

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Still happening – can’t add members to the Group backend. Any solution?

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    I tried BB Admin Actions but this old plugin does not work at all for me.

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Yup, happening to me too – anyone else?

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Same problem here. Looks like a bug.

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

    Yup, that works for me too. Great plugin

    Profile photo of palmdoc
    palmdoc
    Participant

    @palmdoc

Viewing 25 replies - 1 through 25 (of 56 total)
Skip to toolbar