Skip to:
Content
Pages
Categories
Search
Top
Bottom

How Place Group Tree First?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Avatar of PiManIII
    Jam
    Member

    @pimaniii

    I have the same question: is there anyway to have the group tree as the default when you go to groups?

    Also, is there any way to have one level deep showing be default?

    Thanks

    It sounds like you may want to hide the normal group list.

    If you want to have both displayed, then the group tree has to be last. That’s where the hook for other group listings is. You could edit your theme file to get around this, but it isn’t something I could include in the plugin.

    Avatar of PiManIII
    Jam
    Member

    @pimaniii

    Hi, @David Dean,

    Could you point us to how we should edit our themes (at least for the BP-Default) to do this? I think it is very useful for many people

    Avatar of mutualdesigns
    MutualDesigns
    Member

    @mutualdesigns

    @PiManIII – If you just want to display it first, you can edit the ul in groups/index.php. Put do_action( ‘bp_groups_directory_group_types’ ) before the other li.

    @David Dean – I think what we may be looking for is a way to display only the group tree. I want my users to start off seeing only the top level groups and then be able to drill down. Suggestions? I was hoping to just link directly to the group tree page, but it appears to be completely controlled by ajax.

    Avatar of mutualdesigns
    MutualDesigns
    Member

    @mutualdesigns

    Figured it out!

    Replace:


    in groups/index.php
    with:

    <?php
    $loop_template = apply_filters(‘bp_located_template’,locate_template( array( “tree/tree-loop.php” ), false ), “tree/tree-loop.php” );
    load_template($loop_template);
    ?>

    To change the menu, change the ul as I described above.

    Avatar of mutualdesigns
    MutualDesigns
    Member

    @mutualdesigns

    Figured it out!

    Replace:


    in groups/index.php
    with:

    <?php
    $loop_template = apply_filters('bp_located_template',locate_template( array( "tree/tree-loop.php" ), false ), "tree/tree-loop.php" );
    load_template($loop_template);
    ?>

    To change the menu, change the ul as I described above.

    Avatar of mutualdesigns
    MutualDesigns
    Member

    @mutualdesigns

    Figured it out!

    Replace:

    Code:
    <div id="groups-dir-list" class="groups dir-list">
    <?php locate_template( array( ‘groups/groups-loop.php’ ), true ) ?>
    </div><!– #groups-dir-list –>

    in groups/index.php
    with:

    Code:
    <div id="groups-dir-list" class="groups dir-list">
    <?php
    $loop_template = apply_filters(‘bp_located_template’,locate_template( array( "tree/tree-loop.php" ), false ), "tree/tree-loop.php" );
    load_template($loop_template);
    ?>
    </div><!– #groups-dir-list –>

    To change the menu, change the ul as I described above.

    Avatar of mutualdesigns
    MutualDesigns
    Member

    @mutualdesigns

    On a side note, BuddyPress should work on their website because it does not allow you to edit nor delete posts… :/

    Very useful info, thanx!
    On a similar note, could you by any chance hint how to make the “My groups” tab rather than the hierarchical tab be the default when you click on “Groups”? Just swap places and make My groups the default when you go to:
    http://www.example.com/groups/
    Grateful for any hint!
    I guess I would also like to have a menu that goes directly to:
    http://www.example.com/members/username/groups/my-groups/
    Like the groups admin menu item if possible.
    How can I make one?

    thanx!

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

You must be logged in to reply to this topic.