Skip to:
Content
Pages
Categories
Search
Top
Bottom

“Create Group” button not showing


  • claudiosinopoli
    Participant

    @claudiosinopoli

    Hi there,
    I recently installed WordPress 4.6.1 and BuddyPress 2.6.2
    I’m using a child theme of the Enfold theme by kriesi.at and everything runs nice but the “Create Group” button inside the Groups page is missing so I can see only “Memberships” and “Invitations”.
    It works though with the theme Twenty-Fourteen and Twenty-Fifteen but not with the Twenty-Sixteen.
    I was googling this and most of the people says that’s an issue related with fact that the_title(); tag in the theme’s page.php is placed “outside the WordPress loop”.
    Unfortunately nobody has a solution.
    Can you please tell me how to fix this issue? Some php lines in the child’s functions.php or something like that?
    Thanks a lot.

Viewing 8 replies - 1 through 8 (of 8 total)

  • danbp
    Moderator

    @danbp

    Hi !

    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-nav

    For 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. 😉


    claudiosinopoli
    Participant

    @claudiosinopoli

    Hi danbp!
    Thanks for your prompt reply.

    Replying your questions:
    – Yes, group creation is allowed for all users
    – Yes, it works in the usermenu

    You can visit my website at http://www.claudiosinopoli.com/sinergy/ and login with the following
    user: aldo
    pwd: aldo

    As you can see if you are in the page http://www.claudiosinopoli.com/sinergy/groups/ you get the button but when you are in http://www.claudiosinopoli.com/sinergy/members/aldo/groups/ the button is missing.

    The same is happening with the Twenty-Sixteen (see HERE)

    If required I can give you admin access.


    danbp
    Moderator

    @danbp

    Your site works as intended and the button isn’t missing! Because it doesn’t exist where you thinck there should be one…


    danbp
    Moderator

    @danbp

    Your 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).


    claudiosinopoli
    Participant

    @claudiosinopoli

    Hi,
    thanks for your reply.
    Actually http://www.claudiosinopoli.com/sinergy/members/aldo/groups/ is not “inside an existing group” but just the page “Groups” inside my profile.. let’s call it “My Groups”.
    The page inside an existing group has as url http://www.claudiosinopoli.com/sinergy/groups/aldos-test-group/
    Anyway I understand that the button is not supposed to be there.
    Now my question is: is it possible to add some script in oder to have the button “Create a Group” also after “Membership” | “Invitation” in the so called My Gropus page?
    It would be more user friendly to have the possibility to add a new group also from there.
    Can you help me with that?
    Thanks!


    claudiosinopoli
    Participant

    @claudiosinopoli

    Dear 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 group

    In 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.


    designvorlage
    Participant

    @designvorlage

    With BuddyPress/bbPress installed you can add a link to your profile with ##profile_link## in the URL input from Links section bellow. Example: ##profile_link##/messages

    You can also include the members username next to the My Account avatar with ##member_name## in the Title Attribute field.

    For add Create Groups for everyone type in the Title Attribute field
    ##profile_link##/groups/create/step/group-details/


    chrisp333
    Participant

    @chrisp333

    Hi Hope someone answers me sooni, good idea, I want to create a custom button to create a group.

    with ##member_name##/groups/create/step/group-details/

    My Buddypress profile is displayed with a group creation form in the first step.

    How can I create a Create Group Button in a page ?.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar