Skip to:
Content

BuddyPress.org

Opened 7 years ago

Last modified 6 years ago

#7673 assigned enhancement

Group Creation Link On Member Profile

Reported by: destac's profile Destac Owned by: djpaul's profile DJPaul
Milestone: Awaiting Contributions Priority: low
Severity: minor Version: 1.0
Component: Groups Keywords:
Cc:

Description

Users can currently create groups by only going to the /groups/ page in BuddyPress (which works for admins such as us as we know that's the intention). However, I am in the middle of setting up a new BuddyPress community for a site I am working on and did test with my family, and friends and they had made comments regarding how to make their own groups.

After explaining that they can create groups by going to the /groups/ link in the menu they understood, however, I can understand the confusion it's a bit odd to have a link on the profile /members/name/groups/ which shows you your memberships, and if you received any group invites but there is no way to create new groups from that same section.

I think from a user standpoint it's a little bit odd, my site allows users to create posts from their profiles, they post their activity which is native, they can send messages, but as far as the workflow of creating a new group it's a little odd.

I think it should be looked at to add a "Create A Group" type link next to the memberships and invitations link.

I would like to add, I am not wanting to build a new interface that can all be done from the member's profile page but simply a link that can get them to that creation page. Of course, building it from the member profile would work a link would be the easier approach.

Change History (9)

#1 @Destac
7 years ago

I am going to attach the PHP code I added to my functions.php file as well for users who stumble across this ticket wanting to add this navigation item to their own websites.

<?php
function buddypress_group_setup_nav() {
if( bp_is_active( 'groups' ) ) {  
    global $bp;
    bp_core_new_subnav_item( array( 
        'parent_id' => 'groups',
        'name' => __( 'Create a Group', 'buddypress' ),
        'slug' => 'create',
        'parent_url' => $bp->loggedin_user->domain . $bp->groups->slug . '/',
        'parent_slug' => $bp->groups->slug,
        'screen_function' => 'group_document_list_function_to_show_screen',
        'position' => 55
    ) );
  }
}
add_action( 'bp_setup_nav', 'buddypress_group_setup_nav', PHP_INT_MAX );

#2 @DJPaul
7 years ago

  • Milestone changed from Awaiting Review to Under Consideration
  • Version changed from 2.9.2 to 1.0

Hi @Destac

Thanks for sharing your idea! I like it!

Some years ago, we have a "create group" button at the top of the group directory (next to the page title), but when we made some other change, we had to remove it, and the best compromise we found was adding it to the navigation menu where you find it today.

I think your point about users being able to create all other types of content directly from their user profile screen is a good one, and I agree totally about the idea of adding "Create a Group" in there.

For those passing through this ticket, here's what the code above produces: https://i.imgur.com/NWt2rxC.png The link goes to the existing example.com/groups/create/, so this change would only add a new navigation item, and no new template.

I'm all for this change, but what do other people think?

Last edited 7 years ago by DJPaul (previous) (diff)

This ticket was mentioned in Slack in #buddypress by djpaul. View the logs.


7 years ago

#4 @hnla
7 years ago

Agree in principle as long as the link is just a link through to /create/, we'll need to do check for users can create groups, but lets's patch core, looking at Nouveau nav functions and it should be ok with a possible bit of tweaking for nav order.

#5 @dcavins
7 years ago

I'm all for having a link to creating groups within the user groups tab--at least that works with how I imagine the user profile area to work, as a user's dashboard and control panel.

I would like for the link to be separated from the others a bit, though, because it does something different than the "Memberships" and "Invitations" links. I'd be happy if it were shunted to the right, for instance. However, the link text is clear and obvious as to what it does, so I'm not that hung up on the link being included with other links that are different.

Thanks, @Destac, for proposing this improvement.

#6 @DJPaul
7 years ago

  • Keywords needs-patch added
  • Milestone changed from Under Consideration to Awaiting Contributions

Great!

#7 @DJPaul
7 years ago

  • Milestone changed from Awaiting Contributions to Up Next

I think I'll put my name towards getting this done (in the next 6 months) unless someone beats me to -- patches welcome.

#8 @DJPaul
6 years ago

  • Keywords has-patch added; needs-patch removed
  • Milestone changed from Up Next to 4.0
  • Owner set to DJPaul
  • Status changed from new to assigned

#9 @DJPaul
6 years ago

  • Keywords has-patch removed
  • Milestone changed from 4.0 to Awaiting Contributions
Note: See TracTickets for help on using tickets.