Search Results for 'how to invite to groups'
-
AuthorSearch Results
-
April 24, 2018 at 6:05 pm #272384
In reply to: Buddypress Intranet functionality
Varun Dubey
Participant@everaertlawyers Friendship component is not required for groups; you can use https://wordpress.org/plugins/invite-anyone/ it will allow inviting any member of your site.
Members will display at member directory page after their first login.April 18, 2018 at 1:14 pm #272194In reply to: Exclusive network
Venutius
ModeratorI think you will have the same issue, you are looking to implement hierarchical connections within BuddyPress and that functionality does not exist. I was thinking you could possibly use group memberships to do this – BP supports hierarchical groups, but I’m not sure that would work.
What I was thinking is that the primary user could send out a join invite, and when the new member joined they would be automatically joined to the root group. But I think you’d still have to make significant modifications to the way BP works – every function would have to check for group memberships before giving access to content.
January 9, 2018 at 7:25 am #270027In reply to: How to hide CPT Links from profile view
leog371
ParticipantJust to be sure of what your asking, Are you trying to hide these from everyone including the person who owns the profile?
Just in case you dont want to hide them from the profile owner, you should know that any links that are edit, upload rtmedia links only display for the profile owner and no one else and most other things like this are hidden by default from users and friends anyways. Only a profile owner can upload and make changes to his profile or post activity on their profiles.
Also, each member has privacy options in their profile settings. You can set defaults in the dashboard for this as well.
If this is not the case, could you clarify what you hope to achieve?
If you simply wish to remove links for everyone in your site including the profile owner, just use something like this in bp-custom.php file
/* Example to Remove subnav tabs from Group Settings https://codex.buddypress.org/developer/navigation-api/#examples*/ function remove_group_manager_subnav_tabs() { // site admin will see all tabs if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) { return; } // all subnav items are listed here. // comment those you want to show $hide_tabs = array( // 'group-settings' => 1, // 'delete-group' => 1, // 'group-avatar' => 1, // 'group-invites' => 1, // 'manage-members' => 1, // 'forum' => 1, // 'group-cover-image' => 1 ); $parent_nav_slug = bp_get_current_group_slug() . '_manage'; //Remove the nav items foreach ( array_keys( $hide_tabs ) as $tab ) { bp_core_remove_subnav_item( $parent_nav_slug, $tab, 'groups' ); } } add_action( 'bp_actions', 'remove_group_manager_subnav_tabs' );January 6, 2018 at 5:24 pm #269956In reply to: i want to edit buttons.
leog371
Participant/* Example to Change item names of user’s and group’s nav menus ... Profile Menu https://codex.buddypress.org/developer/navigation-api/#examples */ function bpcodex_rename_profile_tabs() { buddypress()->members->nav->edit_nav( array( 'name' => __( 'My Forums', 'textdomain' ) ), 'forums' ); buddypress()->members->nav->edit_nav( array( 'name' => __( 'MY Groups', 'textdomain' ) ), 'groups' ); } add_action( 'bp_actions', 'bpcodex_rename_profile_tabs' );/* Example to Rename Group Menus https://codex.buddypress.org/developer/navigation-api/#examples*/ function bpcodex_rename_group_tabs() { if ( ! bp_is_group() ) { return; } buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Discussion', 'buddypress' ) ), 'forum', bp_current_item() ); buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Members', 'buddypress' ) ), 'members', bp_current_item() ); buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Activity', 'buddypress' ) ), 'home', bp_current_item() ); } add_action( 'bp_actions', 'bpcodex_rename_group_tabs' );/* Example to Remove subnav tabs from Group Settings https://codex.buddypress.org/developer/navigation-api/#examples*/ function bpcodex_remove_group_manager_subnav_tabs() { // site admin will see all tabs if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) { return; } // all subnav items are listed here. // comment those you want to show $hide_tabs = array( // 'group-settings' => 1, // 'delete-group' => 1, // 'group-avatar' => 1, // 'group-invites' => 1, // 'manage-members' => 1, // 'forum' => 1, // 'group-cover-image' => 1 ); $parent_nav_slug = bp_get_current_group_slug() . '_manage'; //Remove the nav items foreach ( array_keys( $hide_tabs ) as $tab ) { bp_core_remove_subnav_item( $parent_nav_slug, $tab, 'groups' ); } } add_action( 'bp_actions', 'bpcodex_remove_group_manager_subnav_tabs' );October 25, 2017 at 1:49 pm #268661Max
ParticipantHi moefahmy,
Just registered my first WordPress.org account since over hundreds of sites I’ve built in the past, hehe. I’m facing exact the same issue as you have. I seriously thought that BuddyPress would support features like this. In the wp-admin > Groups > Single Group, there’s even an option that says: ‘Who can invite others to this group?’, WHY is this option available but not ‘Which usertype can post to this group? e.g. Administrators, Moderators, Subscribers etc.’.
Is there a plugin that anyone in this community is aware of which handles above feature? I really need a feature to assign posting permissions to users or userlevels…
August 17, 2017 at 2:45 pm #267596In reply to: Can an xProfile field be used to auto add to group
Peter Hardy-vanDoorn
ParticipantAs far as I know, there’s no way to do that with BuddyPress’ built-in tools.
However, it is possible with plugins such as the one you identified.
I had a similar requirement and ended up doing it by utilising BP’s Member Types functionality (which require a plugin or custom code to set up), a plugin called BuddyPress Xprofile Member Type Field to map that to an xprofile field (so that the user can change it herself… it was the easiest way I found to add that to the user’s profile, although there might be a better way), all tied together with custom code to patch in to the
xprofile_updated_profileaction to check what the change is and then use thegroups_accept_invite()andgroups_remove_member()functions to change the membership accordingly.I know that’s not very detailed, but due to lots of other functionality, such as adding to email lists, my code ended up being quite complex, so it’s not possible to paste it here.
Hope that helps
May 3, 2017 at 3:07 pm #265780In reply to: Hook to add group member
Peter Hardy-vanDoorn
Participantgroups_accept_invite( $user_id, $group_slug );April 25, 2017 at 4:37 am #265604In reply to: Private Group Admission
Anil Sharma
ParticipantYou can use something like this 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' );March 31, 2017 at 3:38 pm #265103In reply to: ONE word I can’t find/translate.. Please help?
danbp
ParticipantHi,
open your buddypress-nk_NO.po file with a text editor (notepad++ or so) and check you have a plural form for the untranslated string.
The’re several strings containing “members” with a count, but it will be easy to find if you search for “msgid_plural”.
At least, you should find something constructed like this:#: bp-templates/bp-legacy/buddypress/members/single/groups/invites.php:34 msgctxt "Group member count" msgid "%d member" msgid_plural "%d members" msgstr[0] "%d medlem" msgstr[1] "%d medlemmer"Again, note that it is only an example, you may find other strings containing “medlem” that you have eventually to adjust.
The important thing to control is the existence of “%d” and naturally, the presence of the plural form string in the translation.
If you still have trouble after controling/repairing/modifying, it could be possible that it is your theme. To ensure, do the same check in your theme translation.
Other thing to take in account
I’m not 100% sure, but so far i remember, the norvegian buddypress version is not completely translated.
Unfortunately, translate.wordpress.org is actually down and it is impossible to access the plugins translations at this time…What i expect is that you have an old po file, fully translated, but perhaps not with the most recent changes and updates, which could explain that even if you have plural forms in your translation, they won’t show up in some places.
For ex. because the plural code changed from %s (in your version) to %d or something like that.
To avoid this, you can download the most recent pot file and rename it to buddypress-nk_NO.po.
Then you rename YOUR current version to .pot(with a T), import it to the new file, and adjust or complete the missing strings.February 8, 2017 at 4:53 pm #263617Topic: Self-inflicted BP Tables Madness
in forum How-to & Troubleshootingwarezit
ParticipantHello!
I am having an issue with BP, that I caused myself. I intentionally deactivated, then deleted, BP (on a 5 day old site) thinking that I wasn’t going to use it. Then I ran ‘WP Optimize’ which removed all the unused tables from the plugins I had installed, and removed unused transients, etc… This is what caused the problem.
Some time later, I went to re-install BP – which succeeds with no issues. Here’s where the issues crop up… Next, I went to create a new Group on the BP front-end, and it reports an error:
There was an error saving group details. Please try again.Enabling WP debug mode in “wp-config.php” reports this:
WordPress database error: [Table 'wordpress.wp_bp_groups' doesn't exist] SELECT id FROM wp_bp_groups WHERE slug = 'create' WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist] SELECT id, user_id, date_recorded FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity' AND user_id IN (1) LIMIT 1 WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist] SELECT id, user_id, date_recorded FROM wp_bp_activity WHERE component = 'members' AND type = 'last_activity' AND user_id IN (1) LIMIT 1 WordPress database error: [Table 'wordpress.wp_bp_activity' doesn't exist] SHOW FULL COLUMNS FROM <code>wp_bp_activity</code> WordPress database error: [Table 'wordpress.wp_bp_notifications' doesn't exist] SELECT * FROM wp_bp_notifications n WHERE user_id IN (1) AND component_name IN ('friends','messages','activity','groups','blogs') AND is_new = 1 WordPress database error: [Table 'wordpress.wp_bp_messages_recipients' doesn't exist] SELECT SUM(unread_count) FROM wp_bp_messages_recipients WHERE user_id = 1 AND is_deleted = 0 AND sender_only = 0 WordPress database error: [Table 'wordpress.wp_bp_friends' doesn't exist] SELECT id FROM wp_bp_friends WHERE (initiator_user_id = 1 OR friend_user_id = 1) ORDER BY date_created DESC WordPress database error: [Table 'wordpress.wp_bp_groups_members' doesn't exist] SELECT COUNT(DISTINCT m.group_id) FROM wp_bp_groups_members m, wp_bp_groups g WHERE m.group_id = g.id AND m.is_confirmed = 0 AND m.inviter_id != 0 AND m.invite_sent = 1 AND m.user_id = 1 WordPress database error: [Table 'wordpress.wp_bp_messages_notices' doesn't exist] SELECT id FROM wp_bp_messages_notices WHERE is_active = 1I have been trying to find a solution for this online, for the last 4+ hours… and I have gotten nowhere… So, I am humbly asking for help here, on how to recreate these tables – WITHOUT DELETING AND RECREATING MY ENTIRE SITE. I have nearly 100 hours into this site so far, and I am NOT starting over. Starting over is NOT an option, so please save everyone’s time and skip suggesting this.
I have reviewed all of these links, and followed all of their respective directions, when applicable:
https://buddypress.org/support/topic/reinstall-should-i-delete-old-tables-from-db/
and, many many many many more links, that I am not going to go back and try to find…Any help with this would be great – I’d really like to use BP again… I have seen a number of other people online with this issue, so I know I am not the only one. There has to be some elegant solution to re-create the required SQL tables for the plugin, right?
I have tried running this, after I reinstalled BP the 4th time (with my TDL inserted, ofc):
https://xxxxxx.com/wp-content/plugins/buddypress/bp-core/bp-core-update.php?f=bp_update_to_2_7_4
But, it didn’t seem to do anything…Ubuntu 16.04.1
Apache 2.4.18
PHP 7.0.13
WP 4.7.2
BP 2.7.4
no other BP extension/plugins have been installed since the 1st time removing BPI am more than happy to provide any requested log files!
Thank you a TON in advance!! I look forward to getting this working again.
December 7, 2016 at 10:17 pm #261860In reply to: Core Pages not Populating
danbp
ParticipantPlease be serious,
why do you use index.php (it is a file), when i give you the correct path in my previous answer ?
Such URL‘s can’t work:http://eltconjunction.com/index.php/groups/You’re on buddypress support forum and your BP pages where correctly displayed, a few hours back when i visited your site.
The error you have now is related to ppress. If you have issue with it, you have to ask for help on the appropriate support.
I invite you to read any plugins documentation you want to use BEFORE using them. And encourage you to learn a bit about internet, wordpress and how to build a site…
November 26, 2016 at 10:30 am #261342In reply to: Adding Friends to Groups
Venutius
ModeratorYes the default operation in BP groups is that you can only invite friends of your BP Profile. You can change this behaviour with Invite Anyone, which gives you the ability to invite your friends to join the site and for you to invite any BP user to the group, not just your friends.
Another plugin that you might like to think about is BP Auto Group Join, with this plugin you can ensure all new site members automatically join a group.
With these two plugins, you can invite your friends to join your site and make sure they all join your group at registration.
November 18, 2016 at 8:17 pm #261164In reply to: Group header file problems
jaumearagay
ParticipantIn the group page you get this output:
int(91) string(21) "bp_groups_memberships" object(stdClass)#5452 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5465 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5465 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5465 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5751 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5753 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(91) string(21) "bp_groups_memberships" object(stdClass)#5753 (12) { ["id"]=> string(2) "91" ["group_id"]=> string(2) "13" ["user_id"]=> string(1) "6" ["inviter_id"]=> string(1) "0" ["is_admin"]=> string(1) "0" ["is_mod"]=> string(1) "0" ["user_title"]=> string(0) "" ["date_modified"]=> string(19) "2016-09-15 11:37:10" ["comments"]=> string(0) "" ["is_confirmed"]=> string(1) "0" ["is_banned"]=> string(1) "0" ["invite_sent"]=> string(1) "0" } int(6) string(22) "bp_friends_friendships" object(stdClass)#5774 (6) { ["id"]=> string(1) "6" ["initiator_user_id"]=> string(1) "6" ["friend_user_id"]=> string(2) "36" ["is_confirmed"]=> string(1) "1" ["is_limited"]=> string(1) "0" ["date_created"]=> string(19) "2016-09-06 09:22:58" } int(1) string(22) "bp_friends_friendships" object(stdClass)#5775 (6) { ["id"]=> string(1) "1" ["initiator_user_id"]=> string(1) "6" ["friend_user_id"]=> string(1) "5" ["is_confirmed"]=> string(1) "1" ["is_limited"]=> string(1) "0" ["date_created"]=> string(19) "2016-08-22 10:25:37" } int(6) string(16) "bp_last_activity" array(3) { ["user_id"]=> string(1) "6" ["date_recorded"]=> string(19) "2016-11-18 20:15:56" ["activity_id"]=> string(1) "1" }November 8, 2016 at 9:01 pm #260856In reply to: “Create Group” button not showing
claudiosinopoli
ParticipantDear danbp,
first of all tank you for killing the discussion with your silence.
Almost two months ago I asked you for help, without success.After a while I realized that I can perform a supposedly so simple task myself.
I’m writing now to inform other people that want the “create a group” button in the single member’s “groups” page or somewhere else in a buddypress template page.After reading some buddypress documentation I replicated in my child theme the buddypress templates and css folders structure.
Looking into the group-related php files I noticed that the function for the button “create a group” is called bp_groups_directory_group_filter.
The “groups” page for the single member is generate by the file located in the following folder in my child theme: my_child_theme/buddypress/members/single/groups.php
It is starting with the following code
<?php /** * BuddyPress - Users Groups * * @package BuddyPress * @subpackage bp-legacy */ ?> <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> <ul> <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?> <?php if ( !bp_is_current_action( 'invites' ) ) : ?> <li id="groups-order-select" class="last filter"> <label for="groups-order-by"><?php _e( 'Order by:', 'buddypress' ); ?></label> <select id="groups-order-by"> <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>It’s enough to add the line
<?php do_action( 'bp_groups_directory_group_filter' ); ?>
after line 12
<?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
and you do the trick.Now in the single member’s “groups” page there will be the following buttons:
Memberships | Invitations | Create a groupIn the same way you can add this button to any other template page, taking care that the function it’s placed in the right position in the code.
Thank you again danbp: your silence was not very professional but perhaps stimulating in order to take initiative, learn something and solve a problem by myself.
October 6, 2016 at 5:04 pm #259539In reply to: Moderator add users to group
Slava Abakumov
ModeratorSo far there is no such plugin.
You can try to dive into
bp_get_new_group_invite_friend_listfilter, and you will need to rewrite/buddypress/groups/single/send-invites.phptemplate.So quite a lot of work.
September 11, 2016 at 11:01 pm #258638danbp
ParticipantI’m unable to reproduce your issue on a single install with over 20 plugins active and plenty of custom functions active in bp-custom.php
I can upload medias without problem with different 3th party themes or Twenty’sTry to upload a fresh copy of WordPress and BP and see if it makes a difference.
Now about the snippet.
It works more or less, no code error. You commented the action, so it is deactivated if someone copy/paste it without correcting this.That said, what is the reason behind using a redirection to login if the site, or at least the buddyPress parts, should be private ?
Wouldn’t it be more logic to redirect visitors to an anonymous page with some important information, from which the first one could be Sorry, but this site is private ? Followed by some informations how to register or pay a fee or whatever the reason.
A private site has two type of visitors: those invited to join and the others. Don’t give the opportunity to those who are there by chance to enter the site so easily.
I let you think about this and eventually create an appropriate page and template.
Here a code example redirecting to a page called Intranet and the correct calls to slugs for all components (including bbPress).function bpfr_guest_redirect() { global $bp; // enter the slug or component conditional here if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) || is_bbpress() ) { // not logged in user are redirected to - comment/uncomment or add/remove to your need if( !is_user_logged_in() ) { //wp_redirect( get_option('siteurl') ); //back to homepage //wp_redirect( get_option('siteurl') . '/register' ); // back to register page wp_redirect( get_option('siteurl') . '/intranet' ); // back to whatever page } } } add_filter( 'get_header', 'bpfr_guest_redirect', 1 );Add it to child-theme’s functions.php
September 11, 2016 at 11:27 am #258628In reply to: “Create Group” button not showing
danbp
ParticipantYour site works as intended and the button isn’t missing! Because it doesn’t exist where you thinck there should be one…
As already explained:
This button comes only up on Group Directory: All Groups | My Groups | Create Group and not when you’re inside an existing group (where you see Send invites).September 9, 2016 at 5:45 pm #258588In reply to: New Member Emails Not Sending
macroccs
ParticipantI am fairly new to WordPress, so I can’t answer with certainty. As far as I can tell, it’s just the Buddypress emails that aren’t sending.
Plugins Include:
BuddyPress Follow Version 1.2.2
BuddyPress Global Search Version 1.1.5
BuddyPress Group TinyChat Pro Version 1.4
BuddyPress Groups Extras Version 3.6.9
BuddyPress Message Attachment Version 2.1.1
BuddyPress Reorder Tabs Version 1.0.9
BuddyPress Security Check Version 2.1.2
Buddypress Social Version 2.0
BuddyPress User Blog Version 1.1.1
Chat by Flyzoo – Group Chat & Live Support Version 2.2.7
cometchat Version 1.0.0
Disable Comments Version 1.5.2
Embedly Version 4.0.12
Events Manager Version 5.6.6.1
Inline Google Spreadsheet Viewer Version 0.10.2
Insert Adsense Version 2.0
Invite Anyone Version 1.3.11
Send From Version 2.2
VideoWhisper Video Presentation Version 4.1.3
WangGuard Version 1.7.2
WordPress Reset Version 1.4
WP Project Manager – Sub Task Version 0.1
WP Project Manager PRO Version 1.5
WP Project Manager pro – BuddyPress Integration Version 1.2
WP Super Cache Version 1.4.8September 8, 2016 at 1:27 pm #258521In reply to: “Create Group” button not showing
danbp
ParticipantHi !
unable to recreate this issue on a standart install and 2016 activated.
This button comes only up on Group Directory: All Groups | My Groups | Create Group and not when you’re inside an existing group (where you see Send invites).
There is another button for this on the WP Toolbar > Usermenu > Groups > Create Group
And both are displayed correctly on Twenty Sixteen.Within buddypress.css default file, there is no specific rule for it.
In case of, button’s ID on BuddyMenu is #group-create-navFor now,
– is group creation allowed for all users (see in BP options) ?
– do you see the button in the usermenu (top right corner) and does it work ?No idea what’s your issue, but i don’t believe it is BuddyPress. Maybe a plugin or a JS issue. Difficult to say more without a live URL. 😉
September 6, 2016 at 3:53 pm #258450acedesign123
ParticipantHi @itsasiak
I am facing the same problem, That i get the error message of
Are you sure you want to do this?on the second step after I create the group name and description.My
bp-custom.phpfile looks like this.function remove_group_creation_steps() { global $bp; unset( $bp->groups->group_creation_steps['group-settings'] ); unset( $bp->groups->group_creation_steps['group-avatar'] ); unset( $bp->groups->group_creation_steps['group-invites'] ); unset( $bp->groups->group_creation_steps['group-cover-image'] ); } add_action( 'bp_before_create_group_content_template', 'remove_group_creation_steps', 9999 );This code hides the menus on top when I create a group, as seen by the image

But If I click FINISH it takes me to this screen ::

Do you know where I can put code to solve this?
September 2, 2016 at 7:36 am #258306In reply to: Unable to invite friends
danbp
ParticipantHi,
usually it is because you haven’t established any friendship. Go on a profile or Members Directory, click on Add as Friend.
Back to the group and see if this profile appears on the Invite tab.
If you are in a BP dicovery phase, i recommand you to use BP Default Data plugin. Once activated you will have fake content in all BP active components (users, groups, friendships and so on). So you can see where and who see what.
August 26, 2016 at 11:53 am #258082In reply to: Isolated Groups
BILL
ParticipantThanks @DanBP
I can’t figure out how to do it with BuddyPress so I am asking for any opinions that could point me in a useful direction. My thought concerning bbPress was that maybe by adding forums I would be able to limit what the Group Leader and Students can see to just that groups user list.
So, my question isn’t how to get bbPress to do this but what way can I do this. Does BuddyPress have this functionality and I need to find some instructions that have eluded me so far? Or, is there a plugin that I have to use or possibly do I have to learn about using the multisite feature or some other method to create isolated groups that the group leader can invite and remove users without seeing other companies/clients?I accept I may be missing something obvious to knowledgeable WP Devs, actually, I hope it is something I just haven’t found in the BuddyPress docs.
To be clear, this project is still in development and I can use whatever is best for this important and seemingly simple situation.
August 7, 2016 at 9:28 pm #257327In reply to: [Resolved] the right way to remove nav items
danbp
ParticipantHi,
two snippets to remove profile and group items.
function bpex_hide_profile_menu_tabs() { if( bp_is_active( 'xprofile' ) ) : if ( bp_is_user() && !is_super_admin() && !bp_is_my_profile() ) { // BP's profile main menu items. Comment those to show. // bp_core_remove_nav_item( 'activity' ); bp_core_remove_nav_item( 'profile' ); bp_core_remove_nav_item( 'friends' ); bp_core_remove_nav_item( 'groups' ); // exist only if you use bbPress bp_core_remove_nav_item( 'forums' ); // BP's profile main menu items. Comment those to show. // bp_core_remove_subnav_item( 'activity', 'personnal' ); bp_core_remove_subnav_item( 'activity', 'mentions' ); bp_core_remove_subnav_item( 'activity', 'favorites' ); bp_core_remove_subnav_item( 'activity', 'friends' ); bp_core_remove_subnav_item( 'activity', 'groups' ); } endif; } add_action( 'bp_setup_nav', 'bpex_hide_profile_menu_tabs', 15 ); function bpex_remove_group_tabs() { if ( ! bp_is_group() ) { return; } $slug = bp_get_current_group_slug(); // hide items to all users except site admin if ( !is_super_admin() ) { // bp_core_remove_subnav_item( $slug, 'members' ); bp_core_remove_subnav_item( $slug, 'send-invites' ); // bp_core_remove_subnav_item( $slug, 'admin' ); // bp_core_remove_subnav_item( $slug, 'forum' ); } } add_action( 'bp_actions', 'bpex_remove_group_tabs' );August 1, 2016 at 3:04 am #257144In reply to: how to add new members to groups automatically?
buddycore
ParticipantFirst you are creating a custom function called
automatic_group_membership()this takes one parameter$user_id.This function terminates if there is no
$user_idprovided, meaning you don’t run rogue code and your site is more optimised.When a
$user_idis present thegroups_accept_invite()function is run. This function is a BuddyPress core function you can find it inwp-content/plugins/buddypress/bp-groups/bp-groups-functions.phpon line 1400.It accepts two parameters a
$user_idand a$group_id. You need both in order to create the relationship.This function is “hooked” with
add_action()which is a WordPress core function. This functionadd_action()has many hooks available for various situations. You can read more about hooks here https://codex.wordpress.org/Plugin_API/Hooks.Essentially it’s an opportunity to run your own code against WordPress core, or in this case BuddyPress core. BuddyPress provides the hook and we use them to achieve cool things.
So the hook in this case is
bp_core_activated_userand the code we want to run when this hook is available would be the customer functionautomatic_group_membershipwhich is passed as a second parameter.I’m not sure where the
$user_idgets populated along the way here, nor the$group_idmaybe someone can help?Otherwise, I would do this not on activation but when a user has logged in for the first time.
Then we have access to
global $bpwhich contains aloggedin_user->idwhich can be used with this function and you could manually set the$group_idin bp-custom.phpAugust 1, 2016 at 12:45 am #257139In reply to: how to add new members to groups automatically?
peterBerlin
ParticipantHi,
For a newbie like me, could I kindly ask to see how the code:
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’ );As its supposed to look so its ready for use in bp-custom.php
Kind regards and have a nice Sunday.
-
AuthorSearch Results