Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hyerarchical groups for BP

  • @marcogiustini

    Participant

    https://github.com/dcavins/hierarchical-groups-for-bp

    Unfortunately, this very important plugin is no longer updated with the latest version of BP and crashes the system. It would be helpful if it was updated and if possible integrated directly into the BP core, as Buddyboss has already done.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @dcavins

    Keymaster

    Hi Marco,

    I’m the author of the plugin you linked above, and the plugin doesn’t help much with BP Nouveau, but I’m not seeing any fatal errors. Can you share your setup? I’m using WP 6.6.2 and BP 14.2.1 with Legacy or Nouveau template packs and the twenty twenty-four theme.

    Thanks!

    @dreampixel

    Participant

    Thank you for this plugin @dcavins!

    Didn’t know someone took the time to update the old “BP Group Hierarchy” plugin by David Dean.

    Can confirm it works for me with the following setup:

    WordPress - Version 6.6.2
    BuddyPress - Version 14.2.1
    Template Pack - Legacy

    The only minor issue I’m having is that my theme doesn’t support the setting:
    Replace the flat groups directory with a hierarchical directory.

    This makes sense though and isn’t necessary.

    Thank you for updating this. 🙂

    @quandt

    Participant

    Great plugin.

    But yup, needs some attention to update to latest… logically works though, just visuals seem to be programmatic.

    wordpress: 6.8.2
    buddypress: 14.3.4

    legacy:
    almost works 100%, groups directory view shows a caret for groups, unfortunately when you expand the caret (groups are not getting filtered for the child groups, ie the children are simply the list of all groups again)

    nouveau:
    ehh, no tree view, but the include top-level groups only kind of functions, but again don’t think there’s any code to support this under nouveau

    I hope to do some debugging and work on this plugin, wish me luck.

    @quandt

    Participant

    Update, in legacy view as to why when expanding your ‘Child groups’ each group is listed again.

    So not sure exactly, however, cause is related to the template stack not getting loaded when called via ajax. Not being an expert in buddypress nor wordpress, I’d guess that BP now requires something special for ajax style calls (or frankly maybe the code should be rewritten to remove ajax… in my mind that’d be preferable)

    This is the code line not getting executed when called via ajax… cuz your not in the groups directory… or wherever the groups directroy might be on your verson of BB

    "public/class-hgbp.php" 
        /* Changes to the groups directory view. **********************************/
        /** 
         * Add our templates to BuddyPress' template stack. 
         *
         * @since    1.0.0
         */ 
        public function add_template_stack( $templates ) {
            if ( bp_is_current_component( 'groups' ) ) {
                $templates[] = plugin_dir_path( __FILE__ ) . 'views/templates';
            }
            return $templates;
        }

    Simply executing the template stack add, gets you much better results, but is the right answer, doubt it?

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