Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'how to invite to groups'

Viewing 25 results - 101 through 125 (of 351 total)
  • Author
    Search Results
  • #240758
    pihla
    Participant

    Hello,

    I had to delete the group that had been created with id 0 before I got this tracer to work. But then it showed this:

    newly created group args: BP_Groups_Group Object
    (
    [id] => 0
    [creator_id] => 22
    [name] => test group
    [slug] => test-group
    [description] => this is a test group
    [status] => public
    [enable_forum] => 0
    [date_created] => 2015-06-16 07:54:06
    [admins] =>
    [mods] =>
    [total_member_count] =>
    [is_member] =>
    [is_invited] =>
    [is_pending] =>
    [last_activity] =>
    [user_has_access] =>
    [args] => Array
    (
    [populate_extras] =>
    )

    )

    So the problem is that the group is always created with id=0. I was able to create a page though, so I don’t think it is the same problem that @shanebp mentioned as a problem of 4.2.2 but who knows.

    #240732
    David Cavins
    Keymaster

    Hi Pihla-

    I can’t reproduce the problem you’re having. Can you add a tracer to your theme’s functions file or to bp-custom.php then try to create a group?

    https://gist.github.com/dcavins/a9197f21d7f31b6594bc

    I added this to my theme’s functions.php and the file that it created (groups_group_after_save_args.txt) ended up at the root of my site. It looked like this:

    
    newly created group args: BP_Groups_Group Object
    (
        [id] => 8
        [creator_id] => 4
        [name] => Number 5
        [slug] => number-5
        [description] => Will this be recorded?
        [status] => public
        [enable_forum] => 0
        [date_created] => 2015-06-15 14:59:00
        [admins] => 
        [mods] => 
        [total_member_count] => 
        [is_member] => 
        [is_invited] => 
        [is_pending] => 
        [last_activity] => 
        [user_has_access] => 
        [args] => Array
            (
                [populate_extras] => 
            )
    
    )
    

    Please let me know if you can do this test and what the results are.

    laloptk
    Participant

    Ok, I solved the problem, turns out I was using wrong the $bp->loggedin_user->id because only returns a value when the user is loggedin, and I wanted to add members to groups when they activate their account, so, the return in that case (members activating their account are not logged in) is 0.

    The same applys to the function: get_member_nfl_team(), it tries to get the ID of the logged in user.

    I made some modifications to the code and worked perfectly:

    function add_members_to_nfl_group($user_id){ // I suppose when you add the parameter $user_id in the fuction and then pass it trough the action 'bp_core_activated_user', the action returns the ID of the memeber beeing activated. 
        $nfl_team = bp_get_profile_field_data('field=2&user_id='.$user_id); // I erased the function get_member_nfl_team() and put the variable here with the new $user_id
        $nfl_team_slug = str_replace(" ", "-", strtolower($nfl_team));
        $group_slug = "aficionados-a-los-".$nfl_team_slug;
        $group_id = BP_Groups_Group::group_exists($group_slug);    
        groups_join_group( $group_id, $user_id ); // Instead of groups_accept_invite() as @henrywright suggested
    }
    add_action( 'bp_core_activated_user', 'add_members_to_nfl_group' );

    And thats all.

    Henry Wright
    Moderator

    Instead of groups_accept_invite(), try using groups_join_group().

    So in your code above, you’d use: groups_join_group( $group_id, $bp_user_id )

    #240408
    mrjarbenne
    Participant

    I find this plugin incredibly helpful when managing — and allowing others to manage — the membership of groups, without availing them to the dashboard: https://wordpress.org/plugins/invite-anyone/

    danbp
    Participant

    Hi @godsdead,
    This should not be displayed to non-members. Normally, it is not displayed !
    By default, BP private group content is only for

    Only users who request membership and are accepted can join the group.
    This group will be listed in the groups directory and in search results.
    Group content and activity will only be visible to members of the group.

    Could it be possible that Paul invited mr dork to join the group ?

    #239549
    danbp
    Participant

    You can remove the creation option from the template. You have to do this from within a child theme by using a template overload.

    Concerned file is bp-templates/bp-legacy/buddypress/groups/create.php

    Part to remove for the “hidden” option is

    <label>
    	<input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 
    	<strong><?php _e('This is a hidden group', 'buddypress' ); ?></strong>
    </label>
    	<ul>
    		<li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
    		<li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
    		<li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    	</ul>
    #238367
    danbp
    Participant

    @bewitchingfiction, @caniwigirl,

    have you read group forum install instruction ?

    Installing Group and Sitewide Forums

    Note also that for hidden group


    Only users who are invited can join the group.
    This group will not be listed in the groups directory or search results.
    Group content and activity will only be visible to members of the group.

    Members who are part of such a group can see their group activity on their profile, when they’re logged-in.

    Groups

    On a correctly installed BP, user can access to hidden group forums via the profile, the group activity itself or the group forum.

    This how BP handles members and how bbPress is built. And has nothing to do with a standard coded theme.
    If you don’t believe, try by activating one of Twenty default theme.

    #237299
    5high
    Participant

    Brilliant! It worked a treat, and I used the ‘user_register’ as suggested. So for anyone else looking for this solution, this is the code i used to turn some on and some off by default on new user registration:

    add_action( 'user_register', 'bpdev_set_email_notifications_preference');
    function bpdev_set_email_notifications_preference( $user_id ) {
    //I am putting some notifications to no by default and the common ones to yes to enable it.
    //ref. https://bp-tricks.com/snippets/changing-default-buddypress-notifications-settings and BP forum
    $settings_keys = array(
    'notification_activity_new_mention' => 'yes',
    'notification_activity_new_reply' => 'yes',
    'notification_friends_friendship_request' => 'no',
    'notification_friends_friendship_accepted' => 'no',
    'notification_groups_invite' => 'no',
    'notification_groups_group_updated' => 'no',
    'notification_groups_admin_promotion' => 'no',
    'notification_groups_membership_request' => 'no',
    'notification_messages_new_message' => 'yes',
    );
    foreach( $settings_keys as $setting => $preference ) {
    bp_update_user_meta( $user_id, $setting, $preference );
    }
    }

    and this went in my child theme functions.php file.
    Hooray! Thanks so much again – it will make a big different to our users experience.
    Cheers 🙂

    #237239
    Reginald
    Participant

    Here is my issue once again

    I am using wordpress 4.1.1 and buddypress Version 2.2.1

    When I try to create a new Group it allows me to Put in the name of the Group, and when I hit next, it shows in the browser like it goes to the settings page, but it does not bring up any of the settings.

    Whem I click next nothing comes up. I can type in the browser this link ../groups/create/step/group-avatar/
    and it will act like it’s on the Avator page, but nothing on the page like the settings page.

    When I maually type in the browser groups/create/step/group-invite/ it acts as it going to the invite page but again nothing comes up. When I click Finish it goes back to the Details Page.

    When I type in the Group Name in the Browser it appears there, but it will not all me to create any new ones. That group still shows like it needs to be finished, although it appears in my groups.

    I have tried to, switch to twenty fourteen and still getting the same error so I tried to uninstall buddypress, deleting it and reinstalled it, and I am still getting that error. My Tested one of my other WP Sites the same version of BP & WP and it creates new groups just fine amy suggestions.

    #237182
    Reginald
    Participant

    I am using wordpress 4.1.1 and buddypress Version 2.2.1

    When I try to create a new Group it allows me to Put in the name of the Group, and when I hit next, it shows in the browser like it goes to the settings page, but it does not bring up any of the settings.

    Whem I click next nothing comes up. I can type in the browser this link http://www.earndailypay.com/groups/create/step/group-avatar/
    and it will act like it’s on the Avator page, but nothing on the page like the settings page.

    When I maually type in the browser groups/create/step/group-invite/ it acts as it going to the invite page but again nothing comes up. When I click Finish it goes back to the Details Page.

    When I type in the Group Name in the Browser it appears there, but it will not all me to create any new ones. That group still shows like it needs to be finished, although it appears in my groups.

    I have tried to, switch to twenty fourteen and still getting the same error so I tried to uninstall buddypress, deleting it and reinstalled it, and I am still getting that error. My Tested one of my other WP Sites the same version of BP & WP and it creates new groups just fine amy suggestions.

    #236475
    5high
    Participant

    Hi @mrjarbenne,

    Thanks so much for helping – I’ve only just found your reply (don’t know what happened to the email notification this time). Anyway, I’ve added it into my bp-custom.php as suggested and Bingo! it works brilliantly. just tried a new test member and I’m instant joined to all 3 of my groups!

    Thanks so much for this. Just for clarity for others this is the code i used as per @modemlooper info above:

    function automatic_group_membership( $user_id ) {
       if( !$user_id ) return false;
     
       groups_accept_invite( $user_id, $group_id );
    }
    add_action( 'bp_core_activated_user', 'automatic_group_membership' );

    I have left the spacing exactly as he’d done, just in case… but maybe I could get rid of some of the extra spaces in it?

    Cheers 🙂

    Mickey
    Participant

    No, the groups dont show up and I definitely have them as public with forum enabled.
    When I invite someone to a group and they accept then they can see it, but they should should just see it under groups

    #236011
    MonkimoE
    Participant

    I already test on new wp + bp install.
    These code not work! 🙁

    // MODIFY GROUP NAME TABS
    $bp->bp_options_nav['groups']['home']['name'] = 'Group Activity'; //NOT WORK
    $bp->bp_nav['groups']['home']['name'] = 'Member Activity 2'; //NOT WORK
    
    //REMOVE SPECIFIC GROUP TAB
    bp_core_remove_subnav_item($bp->groups->slug, 'send-invites');

    taken from: http://wordpress.stackexchange.com/questions/14469/remove-tabs-from-buddypress-groups-and-members-pages >> It’s not work anymore in latest BP 2.2.1

    I’m using latest WordPress 4.1.1 and latest Buddypress 2.2.1
    So.. how to exactly modified Group Tabs in single group page?

    anybody? Please help. stuck in 3 days for this.
    Thank you.

    #234712
    danbp
    Participant

    hi @vikingpoker,

    I’m sorry to hear that BuddyPress has upset you.
    Members are the heart of BuddyPress and the plugin comes with anything necessary to let you manage them.

    We might be able to help, would you please let us know exactly which components you activated during the BP setup ?

    BuddyPress use the WordPress page system for internal purpose only. Content is shown dynamically, depending the context. When you click on a username, BP calls the pre defined member page and use the appropriate template to show the profile.

    BuddyPress has also his own menu, on which you’ll find activity, members, groups so far you have activate the respective component. To access this menu, go to dashboard > appearence > menu. If you don’t see it, go to the top right corner of the screen and open the sceen option, and check “buddypress”.

    You’re using a framework theme, which is not the easiest to handle if you have not much experience with WP theing. I tested it a while ago and can understand your disapointment. You may probably find good advice about BuddyPress on the Hueman support forum.

    I would recommend you to use 2015 or 14 theme during the time you familiarize yourself with BuddyPress.

    I invite you to read also the Codex to start with your BuddyPress.

    Oh, and if you don’t understand why this is not a #1 topic in this forum, it’s probably because a large majority of user haven’t this issue. And discover here all what you can do with BuddyPress. 😉

    #234669
    wolfied
    Participant

    All right, here we go:
    http://inviteshare.net/groups/world-wide-news/forum/

    Noone can create any any topics under this Entire forum. It’s not just one topic, but instead, none works. So, for the public groups, anyone should be able to post without joining this. Even the members are complaining about it. If needed, I can give you moderator/admin access to the forum for your helping me out.

    WordPress 4.1 running OneCommunity theme.
    bbPress 2.5.4
    BuddyPress 2.2

    18 active plugins.
    Achievements
    Akismet
    bbPress
    BP-WP Profile Reviews
    BuddyPress
    Contact Form
    Mass Messaging in Buddypress
    myCRED
    Quick Cache
    Register IPs
    SI CAPTCHA Anti-Spam
    Simplr User Registration Form Plus
    Stop Spammer Registrations Plugin
    TinyMCE Advanced
    WP-Polls
    WP Slimstat
    WP SMTP
    WP User Control

    #234608
    tammywashington
    Participant

    Sorry about the lack of information. See the updated information:

    We are currently hosting on Amazon’s cloud running Amazon Web Services. Our PhP version is 5.4.31. Using the latest version of the Sweet Date theme. We have four major plugins installed. BuddyPress 2.2.0., bbPress 2.5.4, s2Member Framework Version 150203 + s2Member Pro v150203 and Event Espresso 4.6.6.p. The other plugin do not control permissions,groups our user classifications.

    We are not sure exactly when this problem occurred because we were not using the friend request feature. However we did test this successfully in the past but are not sure of the plugin versions.

    The changes we recently made were the following:
    We had Buddy Press, s2Member and Event Espresso installed with the latest versions. We then installed latest version of bbPress. We created users groups and assigned the appropriate permission of user to subscribe and receive invites to join the group. We learned that members can not join a group unless they are friends with an individual already in a particular group.

    When we send a friend request to a user that person receives the request. They are able to see the notification in their profile under Friends-Pending Request. At this point everything looks good. The user can see the requester image and can the ability to clink Accept Button or Reject Button. When either of the buttons are clicked nothing happens. We waited for exactly 2 minutes and just refreshed the page. We get the same actions if the Reject Button is selected also. Any advice or help is greatly appreciated.

    #233850
    modemlooper
    Moderator

    did these plugins not work?
    https://wordpress.org/plugins/buddypress-groupomatic/
    https://wordpress.org/plugins/buddypress-auto-group-join/

    or function

    function automatic_group_membership( $user_id ) {
       if( !$user_id ) return false;
     
       groups_accept_invite( $user_id, $group_id );
    }
    add_action( 'bp_core_activated_user', 'automatic_group_membership' );
    #232736
    eVersatile
    Participant

    Ah nevermind. apparently it was “my-groups” duh lol. I don’t know why it wouldn’t show up as a slug though.
    Could you possibly help me one another issue?
    Within the groups I have changed all of the navigation menu using;

    function jm_move_group_activity_tab() {
      global $bp;
      if (isset($bp->groups->current_group->slug) && $bp->groups->current_group->slug == $bp->current_item) {
        $bp->bp_options_nav[$bp->groups->current_group->slug]['forum']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['members']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['admin']['name'] = 'new name';
        $bp->bp_options_nav[$bp->groups->current_group->slug]['send-invites']['name'] = 'new name';
      }
    }
    add_action('bp_init', 'jm_move_group_activity_tab');

    Though, I am unable to get the “forum” slug to change. I have tried many other options though nothing seems to work. Do you know if there may be another script for just that?

    r-a-y
    Keymaster

    We’re looking to improve the invite process for BuddyPress 2.3.

    I’m going to ping @dcavins, as he will be implementing the invite improvements, so he’s aware of this.

    Just to answer your questions:

    Notification in the profile window’s (there are 3 notifications: message (1) – friends (1) – but in GROUPS there is no notification).

    The “Groups > No Pending Invites” nav item is for invites you have requested. Not invites that are pending for the entire group.

    The user (A) has posted in a group wall’s and the user (B) has done a comment.
    The user (A) hasn’t received notification neither admin toolbar or administration profile windows.

    Currently, notifications do not occur for activity comments. We’ll likely add this enhancement into core eventually, but for now, you’ll have to use a plugin for this:

    BuddyPress Activity Comment Notifier

    The user (A) has opened a forum in a grup. The user (B) has done a comment.
    The user (A) has received notification in the administratio toolbar. But when the user (A) has done a comment the user (B) don’t has received the notification.

    How did user A reply to user B? On the group activity homepage or on the actual group forum topic? If user A replied on the group forum topic, then this sounds like an issue with bbPress, not BuddyPress.

    #230355
    marvc
    Participant

    I have the following on another network:

    <?php
    /*
    Plugin Name: BP Multi Network
    Plugin URI: http://wpmututorials.com/news/new-features/multiple-buddypress-social-networks/
    Description: Segregate your BP networks in a multi-network WP install (must be installed in the mu-plugins folder)
    Version: 0.1.1
    Author: Ron Rennick
    Author URI: http://ronandandrea.com/
    */
    /* Copyright: (C) 2011 Ron Rennick, All rights reserved.
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    */
    
    function ra_bp_multinetwork_filter( $prefix ) {
    global $wpdb;
    
    if( $wpdb->siteid > 1 && $prefix == $wpdb->base_prefix ) {
    $current_site = get_current_site();
    return $wpdb->get_blog_prefix( $current_site->blog_id );
    }
    
    return $prefix;
    }
    add_filter( ‘bp_core_get_table_prefix’, ‘ra_bp_multinetwork_filter’ );
    
    function ra_bp_multinetwork_meta_key_filter( $key ) {
    global $wpdb;
    static $user_meta_keys = array(
    ‘last_activity’ => false,
    ‘bp_new_mention_count’ => false,
    ‘bp_favorite_activities’ => false,
    ‘bp_latest_update’ => false,
    ‘total_friend_count’ => false,
    ‘total_group_count’ => false,
    ‘notification_groups_group_updated’ => false,
    ‘notification_groups_membership_request’ => false,
    ‘notification_membership_request_completed’ => false,
    ‘notification_groups_admin_promotion’ => false,
    ‘notification_groups_invite’ => false,
    ‘notification_messages_new_message’ => false,
    ‘notification_messages_new_notice’ => false,
    ‘closed_notices’ => false,
    ‘profile_last_updated’ => false,
    ‘notification_activity_new_mention’ => false,
    ‘notification_activity_new_reply’ => false
    );
    
    if( $wpdb->siteid < 2 || !isset( $user_meta_keys[$key] ) )
    return $key;
    
    if( !$user_meta_keys[$key] ) {
    $current_site = get_current_site();
    $user_meta_keys[$key] = $wpdb->get_blog_prefix( $current_site->blog_id ) . $key;
    }
    
    return $user_meta_keys[$key];
    }
    add_filter( ‘bp_get_user_meta_key’, ‘ra_bp_multinetwork_meta_key_filter’ );
    #230354
    marvc
    Participant

    In terms of the BP Multi-Network plugin I have the following on one network:

    <?php
    /*
    Plugin Name: BP Multi Network
    Plugin URI: http://wpmututorials.com/news/new-features/multiple-buddypress-social-networks/
    Description: Segregate your BP networks in a multi-network WP install (must be installed in the mu-plugins folder)
    Version: 0.1
    Author: Ron Rennick
    Author URI: http://ronandandrea.com/
    */
    /* Copyright: (C) 2011 Ron Rennick, All rights reserved.
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    */
    
    function ra_bp_multinetwork_filter( $prefix ) {
    global $wpdb;
    
    if( $wpdb->siteid > 1 && $prefix == $wpdb->base_prefix ) {
    $current_site = get_current_site();
    return $wpdb->get_blog_prefix( $current_site->blog_id );
    }
    
    return $prefix;
    }
    add_filter( ‘bp_core_get_table_prefix’, ‘ra_bp_multinetwork_filter’ );
    
    function ra_bp_multinetwork_meta_key_filter( $key ) {
    global $wpdb;
    static $user_meta_keys = array(
    ‘bp_new_mention_count’ => false,
    ‘bp_favorite_activities’ => false,
    ‘bp_latest_update’ => false,
    ‘total_friend_count’ => false,
    ‘total_group_count’ => false,
    ‘notification_groups_group_updated’ => false,
    ‘notification_groups_membership_request’ => false,
    ‘notification_membership_request_completed’ => false,
    ‘notification_groups_admin_promotion’ => false,
    ‘notification_groups_invite’ => false,
    ‘notification_messages_new_message’ => false,
    ‘notification_messages_new_notice’ => false,
    ‘closed_notices’ => false,
    ‘profile_last_updated’ => false,
    ‘notification_activity_new_mention’ => false,
    ‘notification_activity_new_reply’ => false
    );
    
    if( $wpdb->siteid < 2 || !isset( $user_meta_keys[$key] ) )
    return $key;
    
    if( !$user_meta_keys[$key] ) {
    $current_site = get_current_site();
    $user_meta_keys[$key] = $wpdb->get_blog_prefix( $current_site->blog_id ) . $key;
    }
    
    return $user_meta_keys[$key];
    }
    add_filter( ‘bp_get_user_meta_key’, ‘ra_bp_multinetwork_meta_key_filter’ );
    #223412
    crina27
    Participant

    The quote typo appeared when I copied the functions.
    function bp_group_chat_format_notifications( $action, $item_id, $secondary_item_id, $total_items) {
    global $bp;

    switch ( $action ) {
    case ‘new_group_chat’:
    $group_id = $secondary_item_id;
    $group = new BP_Groups_Group( $group_id );
    $group_link = bp_get_group_permalink( $group );

    $groupSlug=groups_get_slug( $secondary_item_id);
    $url=home_url( $bp->groups->slug . ‘/’ .$groupSlug . ‘/group-chat’ );
    $return=’‘ . sprintf( __( ‘%s group broadcast invite!’, ‘group-chat’ ), $groupSlug ) . ‘‘;
    break;
    }
    do_action( ‘bp_group_chat_format_notifications’);
    return $return;

    }

    Which code button do I have to use?

    Henry Wright
    Moderator

    Try this function:

    function bp_set_notification_default( $user_id ) {
        $keys = array( 'notification_activity_new_mention', 'notification_activity_new_reply', 'notification_friends_friendship_accepted', 'notification_friends_friendship_request', 'notification_groups_admin_promotion', 'notification_groups_group_updated', 'notification_groups_invite', 'notification_groups_membership_request', 'notification_messages_new_message', 'notification_messages_new_notice' );
    
        foreach ( $keys as $key ) {
            update_user_meta( $user_id, $key, 'no' );
        }
    }
    add_action( 'bp_core_signup_user', 'bp_set_notification_default', 100, 1 );

    Ref: http://premium.wpmudev.org/forums/topic/how-can-i-disable-buddypress-notification-email

    #198719
    shanebp
    Moderator

    I suspect a theme issue.
    [ I cannot recreate this issue with WP 4, BP 2.1, standard WP theme ]

    You’re using BuddyBoss theme – your issue is best addressed to them.

    Some hints:
    Looking at the page source you provided, several things are missing.
    No ul tags, li is opened but not closed, etc.
    The form appears but the fields do not.

    This is how the first step form fields should appear – compare it to yours.

    <div class="item-list-tabs no-ajax" id="group-create-tabs" role="navigation">
    		
    	<ul>
    			
    	<li class="current"><a href=".../groups/create/step/group-details/">1. Details</a></li>
    	<li><span>2. Settings</span></li>
    	<li><span>3. Photo</span></li>
    	<li><span>4. Invites</span></li>
    	
    	</ul>
    </div>
Viewing 25 results - 101 through 125 (of 351 total)
Skip to toolbar