This topic has 14 replies, 4 voices, and was last updated 7 years by Radu.

  • Author
  • #138641
     valuser
    Participant

    Have implemented  BuddyPress Group Types successfully with this set up:

    WP: v.4.61; Theme: Twenty Sixteen; Plugins: (1) – BuddyPress 2.7 rc-1, release candidate

    as per BuddyPress Group Types Codex

    i removed the line – line 13 of codex of Group Types codex page

    ‘create_screen_checked’ => true

    in order for it to work.

    Now to Kleo v.4.1.4

    inserted function in functions.php but nothing happens!

    Attachments:
    You must be logged in to view attached files.
    #138869
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #139047
     valuser
    Participant

    Thanks for pushing this up to devs.

    Now updated to kleo v. 4.1.5

    BuddyPress Group Types Codex Page is now updated.

    So i have in kleo (v.4.1.5) functions.php the following functions

    COPY CODE
    function my_bp_custom_group_types() {
        bp_groups_register_group_type( 'team', array(
            'labels' => array(
                'name' => 'Teams',
                'singular_name' => 'Team'
            ),
            // New for 2.7 - Change 'teams' to whatever slug you want your group type directory to have.
            'has_directory' => 'teams',
            'show_in_create_screen' => true,
            'show_in_list' => true,
            'description' => 'Teams are good',
            'create_screen_checked' => true
        ) );
    }
    add_action( 'bp_groups_register_group_types', 'my_bp_custom_group_types' );

    no response from theme to insert group types

    whereas in twenty sixteen see the following attachments.

    I think perhaps that the buddypress group component in your theme needs updating

    please keep me posted

    Attachments:
    You must be logged in to view attached files.
    #139050
     valuser
    Participant

    [attachment file=139051]

    Attachments:
    You must be logged in to view attached files.
    #139058
     Radu
    Moderator

    Hi,

    Can you please provide a download link for that plugin ?

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #139063
     valuser
    Participant

    hi there is only one plugin active on a local test site.

    Buddypress 2.7 release candidate 1

    it incorporates BuddyPress Group Types

    https://downloads.wordpress.org/plugin/buddypress.2.7.0-rc1.zip

    #139065
     valuser
    Participant

    see

    https://codex.buddypress.org/developer/group-types/

    was actually first introduced in 2.6

    #139074
     valuser
    Participant

    perhaps this is relevant

    https://bpdevel.wordpress.com/2016/10/11/changes-to-template-files-for-buddypress-2-7/

    also changes for 2.6 may be relevant

    #139265
     Radu
    Moderator

    Hi,

    I will add this to improvement list and in future we will implement this

    We will let you know

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #139269
     valuser
    Participant

    Thank you.

    I will add this to improvement list and in future we will implement this

    Any provisional timeframe?

    or Even if you could please now point to the files that need changing ?

    In the meantime is it reasonable comment to say that your theme is not entirely compatible with recent updates of BuddyPress e.g 2.6. ??

    Many thanks.

    #139311
     Radu
    Moderator

    The BP 2.6 It’s compatible, we will implement this week or nextweek

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #139362
     valuser
    Participant

    Many thanks – really looking forward to that.

    #139459
     Radu
    Moderator

    Ok we will let you know

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #151619
     Happiier
    Participant

    Hi Radu and Team,

    I have successfully added custom group types in this way (ie, group 1 group 2 and group 3 all belong to group type “Adventure”). However, I do not understand how to make these show up in the Group Masonry filter options so that only group type “Adventure” is populated in a specific area. Can you please provide a way to select a group type to show in kleo group masonry?

    With Gratitude,
    Blaze

    From Buddypress.org (LINK: https://codex.buddypress.org/developer/group-types/)

    “Querying by group type

    A common task is to retrieve a list of groups of a given type (or set of types). bp_has_groups() and BP_Groups_Group::get() accept a ‘group_type’ parameter, which can be a single group type or an array/comma-separated list of group types. This will filter query results to those groups matching the type. Example:

    // Fetch all teams and companies.
    $group_args = array(
    ‘group_type’ => array( ‘team’, ‘company’ ),
    );
    if ( bp_has_groups( $group_args ) ) { // …”

    #152233
     Radu
    Moderator

    Hi,

    I cannot figure out where the types should appear in masonry filter cuz in the masonry filter you can choose most members last active etc… there ?

    Provide a screenshot.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 15 posts - 1 through 15 (of 15 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?