Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hiding Sub-Groups from the Groups page?

  • Avatar of BlinkyBill01
    BlinkyBill01
    Participant

    @blinkybill01

    I’ve tried everything available in this plugin’s options.

    Is there any way to only show the Site Root groups and none of the sub-groups on just the /groups page? I’m separating my categories, and they show, but any sub-groups made also shows on the same page. I want my groups page to be neat and tidy, but listing every single sub-group on the main page kind of defeats the purpose of the hierarchy. Instead of showing them just the site root, it shows the site root and the sub-groups.

    What I’m trying to do is this:

    Groups Page > Site Root Categories
    Site Root Categories Page > Sub Groups
    Sub groups Page > More Sub Groups

    Basically I want to disallow Sub-Groups from listing on the Groups page. Then once users click on a group I have set up they can then create a group within that default group. The only time I’d like the sub-groups to be visibile is when on the default group and are taken to the default group page.

    *Edit*

    The more I think about it, is there a way that you can create a “shortcode” for only displaying groups or sub-groups? This is what I mean:

    Say I have created a page and save it as /groups on my wordpress site? If there was a shortcode like [SiteRootOnly] and save it on that page, it would just show the listing of the Site Root groups.

    Then if I created a new page and save it under the groups directory, like groups/toys. And if there was a shortcode like [CategoryToysSubGroups] and then save that page, then when I viewed groups/toys it would list only the Sub-Groups associated with the parent CategoryToys group that I made.

    Is something like this possible? Maybe something for a future update?

    Doing it this way, by making WordPress shortcodes and having them display on a created page would be so much more cleaner and neater than displaying all groups and subgroups on the same page.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Avatar of David Dean
    David Dean
    Participant

    @ddean

    This is what you get if you select to display the group tree and hide the flat list of groups.

    I can look into a shortcode, but no promises on an ETA. :)

    Avatar of BlinkyBill01
    BlinkyBill01
    Participant

    @blinkybill01

    Yeah, my site is heavily modded with plugins. (This is also the issue I believe I’m having with the other thead I started.) I’m using a RocketTheme theme working off the Gantry BuddyPress plugin. Since the Theme calls for the Gantry BuddyPress plugin files, many of the normal BP items do not display unless I add them to the /plugins/gantry-buddypress folder.

    In the Gantry BuddyPress directory I have the following folders:

    /_inc
    /admin
    /html
    /languages

    I was told by the RocketTheme people, about a previous BP error, that whatever template files from other plugins need to be put in the /html folder of their plugin. However I can not find template files for the Hierarchy plugin.

    Inside my /html directory I have:
    /activity
    /blogs
    /forums
    /groups
    /members
    /registration

    So I’m not sure what to add from the Hierarchy folder to the Gantry-BuddyPress folder. :/

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    I haven’t used Gantry or RocketTheme, but it sounds like you should copy the `tree` folder out of the `templates` folder.

    Avatar of BlinkyBill01
    BlinkyBill01
    Participant

    @blinkybill01

    I gave that a try, copying and moving the folder to all folders inside of /html and it didn’t do anything.

    I’m trying to get a reply back from RocketTheme, but I wanted to ask (since I know they will ask me) what parts of the BuddyPress groups are being called for in the template files? I’m hoping that the folks at RocketTheme will be able to know exactly where to place the /tree folder based on what the template calls for.

    Also, to go back to your previous reply, if you do decide to make shortcodes for this plugin, I would be indebted to you! :)

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    `/tree` folder should be parallel to `/groups` and the others. The template files aren’t calling any other BuddyPress templates.

    Avatar of BlinkyBill01
    BlinkyBill01
    Participant

    @blinkybill01

    Sadly it’s still not working. I’ve added the /tree folder into any directory that has a /groups, /members, etc folder. I’ve even added the /tree to other plugin directories that have their own /groups folder. Nothing is working.

    Unfortunately, I can not test to see if it’s working with the default bp theme. The way the Rocket Theme is set up, if I disable it, it will overwrite any saved settings.

    Might be out of luck on this plugin. Thanks anyway.

    Avatar of BlinkyBill01
    BlinkyBill01
    Participant

    @blinkybill01

    Though, thinking about it…

    In any of your .php files, so you have code in it that calls for anything directly from the buddypress plugin? Like, inside the index.php of /tree there is “

    I’m not a great coder, but do you have anything like that but calls for info directly out of the Buddypress plugin? If so, I might have to change it to call for something out of the Gantry-Buddypress plugin folder instead.

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    I don’t know what this means: “In any of your .php files, so you have code in it that calls for anything directly from the buddypress plugin?” Can you elaborate?

    Obviously this plugin hooks into BuddyPress in lots of ways. But it doesn’t call BuddyPress theme files or anything like that. I don’t know if that’s what you were asking, though. :)

    Avatar of BlinkyBill01
    BlinkyBill01
    Participant

    @blinkybill01

    I’m not a developer or coder, so I’m not sure of the lingo that is used. But this is what I mean:

    Does your plugin interact with the official BuddyPress plugin by reading files from within the plugin/buddypress folder? If so, that is what I believe my problem is.

    The Gantry Budypress plugin, made by RocketTheme, has its own plugin directory: plugins/gantry-buddypress.

    The Gantry BuddyPress folder contains files from the official BuddyPress plugin folder that have been edited to work with their own Gantry Framework. So, the Gantry BuddyPress reads info from both the official BuddyPress folder as well as their own Gantry Buddypress folder.

    So, if your plugin is reading files from the official BuddyPress plugin’s folder, then it may not be using the same files that Gantry BuddyPress uses. If I have an edited file, for example, named index.php in the Gantry Buddypress folder and the original file named index.php in the official BuddyPress folder, my BuddyPress will not read the file in the official folder. It will only read from their Gantry BuddyPress folder. So if you have lines of code that reflect the original BuddyPress folder instead of the Gantry BuddyPress folder, there will be issues.

    I was told by the people at RocketTheme that a basic solution was to take the template files/folders from other plugins and add it to their Gantry BuddyPress’ HTML folder to get them to read. That is fine. But if any of the files within your plugin call directly for info from the official BuddyPress plugin while it’s in the Gantry BuddyPress folder, it will not be reading what is needed… which happens to be in the Gantry BuddyPress folder.

    See what I mean? I hope you do. I’m not saying this is in fact the issue. I’m just trying to trace what could be the cause of the plugin not working alongside the Gantry BuddyPress plugin as well as the official BuddyPress plugin.

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    I think I see what you mean. This plugin doesn’t call any BuddyPress files.

    If you haven’t already tried this, you can also put the template files ( the whole `tree` folder) into your theme folder, rather than that Gantry BuddyPress plugin folder. This plugin is designed to check the theme folder (and a parent theme folder) before falling back to the files in the `templates` folder.

    Avatar of BlinkyBill01
    BlinkyBill01
    Participant

    @blinkybill01

    So, I’ve tried adding the “Tree” folder to the theme folder and nothing happened. I then added the Tree folder to every folder and sub-folder in my wordpress site and still nothing. I removed all of the Tree folders from all of the folders except for your plugin folder and decided to fiddle around with the plugin as-is.

    Now, I’m not sure (since this plugin has never really worked for me yet) but I don’t know if the plugin actually would work with my site and all of the Gantry stuff. I really hope this is not the case as I really need this plugin.

    With the Hierarchy plugin from a fresh re-install, in the options of the plugin from the dashboard, I was able to rename the Nav Item and Group Tree names and they show up perfectly on the groups page. But when I enable the “Show Group Tree” list, on the groups page, when I click on the group tree I get an empty page within the template. Now I’ve got at least 5 groups ordered through the Hierarchy but they are not showing on the Group Tree list. I remember this when I first intalled this plugin because I got the same thing. It just never hit me that the theme/gantry/whatever isn’t reading the plugin.

    I’m at a loss. I’ve no idea what to do. There are no other Hierarchy plugins and this one, if I can get it to work, will be one of the most used features of my website. I just have no idea where to look and try and figure this out.

    Can you tell me if this part is supposed to be like this?

    When I hover the Group Tree list, the URL is like this: http://www.domain.com/groups/?tree

    Is it supposed to read the end of the URL as “?tree” ?

    Avatar of BlinkyBill01
    BlinkyBill01
    Participant

    @blinkybill01

    OK, I haven’t given up on this yet. I wanted to find out from you what template is supposed to be loading when you get the error message when hiding the list and only showing the group tree on the groups page?

    This plugin would be the absolute key to my site but I really don’t know where to start. I’ve updated to the most recent version and I still have the /tree folder in the Gantry theme directory. I’ve even put the /tree inside the actual theme’s directory as well as the BuddyPress template directory and I still can’t figure out what’s supposed to be showing.

    Is there a live demo of this plugin that I can see so i can report back to RocketTheme and tell them what I see on the demo and what I don’t see on my site?

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    The template that loads just the group tree (hiding the flat list) is `templates/tree/index.php`

    I don’t run a live demo, but you may be able to find a good site posted in a thread here. I can point you to http://www.jerseyconnect.net/community/groups/ , but it uses a custom theme so it may not be what you’re looking for.

    Avatar of BlinkyBill01
    BlinkyBill01
    Participant

    @blinkybill01

    I don’t know if it was the changes you made in your newest version of Group Hierarchy or the changes made in the most recent BuddyPress, but this plugin is FINALLY working for me! :D

    Like you mentioned in the previous replies (and anyone using RocketTheme templates along with Gantry BuddyPress, take notice), that copying the Tree folder into the plugins/gantry-buddypress/html directory worked. The only thing I needed to so was clean up a bit of the borders and padding in the hierarchy.css file and it’s running the way I envisioned. Finally, the Hide Group works to 100% for me :D

    I do have a question, and I’m hoping it’s something as simple as adding a line of code to my bp-custom.php file, but I’m wondering how to change the Hierarchy slug name to something different. Like “sub-group” or “sub-division”?

    I know you can change the slug name for almost anything by adding a line of code to the bp-custom.php, something like
    `define( ‘GROUP_HIERARCHY_SLUG’, ‘sub-group’ );`

    I just don’t know what I would add to the space I wrote ‘GROUP_HIERARCHY_SLUG’.

    Any ideas? So excited that this is working for me now. This is going to be the most used feature on my site!

    Avatar of David Dean
    David Dean
    Participant

    @ddean

    ‘BP_GROUP_HIERARCHY_SLUG’

    Glad to hear things are working for you!

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

You must be logged in to reply to this topic.