Forum Replies Created
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.
Development version is available at: http://downloads.wordpress.org/plugin/bp-group-hierarchy.zip
Glad to here there aren’t any table issues! Let me know if you notice an improvement.
I’ve refactored a bunch of the loading and posted a new development version. It appears stable, but I can’t tell whether it’s any faster. You’re welcome to give it a shot, and let me know if you notice any changes!
A new release won’t be out for a week or more; it’s undergoing major changes since support for BP 1.2 was dropped.
If you want to grab the development version, the new function is called `groups_hierarchy_create_group`. It’s in the `bp-group-hierarchy-functions.php` file, and you can paste it into your theme’s `functions.php` if you want to use it right away. Just remember to wrap it in a `function_exists` check or you’ll get an error when the next version comes out.
@shaunmacrae – that’s crazy! These are the first reports I’ve had of big slowdowns, but it’s obviously a big concern.
Do you happen to have a LOT of groups? Also, can you check out your groups table and confirm that the `parent_id` column and corresponding key exist?
I gave P3 a shot, and all I got was an Apache crash… Can you provide details from your P3 run, along with more info on your setup?
Sorry, @snomo – there isn’t a way to do that right now. There isn’t currently a taxonomy for BP groups, and this plugin doesn’t create one.
Keep an eye on this ticket for updates on taxonomy support: https://buddypress.trac.wordpress.org/ticket/4017
In the mean time, you did make me realize there isn’t even a function to create sub-groups. I’ll add that to the next release.
`bp_group_hierarchy_fixup_permalink` is not intended to be called directly – you should be able to get the same effect by calling `bp_get_group_permalink`, which it filters.
If you’re getting a white screen, there should be error(s) noted in you web server’s logs. Can you provide any errors messages?
@MutualDesigns – if you’re using BP 1.5 and are willing to try the development version, you should notice a reduction in processing steps, and possibly processing time. Let me know if you get a chance and whether it makes a difference for you!
@tomraff – are you still using BP 1.2.x? The `bp_get_page_title` function was deprecated with BP 1.5.
I’ll try changing the part of Group Hierarchy that checks for the deprecated `bp_page_title` filter to be a strict version check, but I only call it when in the groups component, so I don’t know how it could be affecting non-group pages.
It’s hard to say without more details of your install, or preferably examples of the queries. While some additional queries are normal (it is checking for parent groups and such), that sounds way overboard.
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.
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.
`/tree` folder should be parallel to `/groups` and the others. The template files aren’t calling any other BuddyPress templates.
I haven’t used Gantry or RocketTheme, but it sounds like you should copy the `tree` folder out of the `templates` folder.
Can you provide any info on your setup?
WP / BP / plugin versions?
Does this occur with the bp-default theme?
Any other plugins running?
Is there anything unusual about your install (e.g. moved wp-content folder)?
That info would be a great start to troubleshooting this problem.
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.
@imacg – thanks! The DB error is really helpful. Are you saying you get a white screen on all non-group pages, and that the DB error you posted is recorded? Or is that one just recorded upon activation?
As far as the Dynamix theme problem goes, I don’t really know what to tell you; I don’t have access to that theme. Are you able / permitted to provide the contents of the lines that are reporting the errors, or even just the parameters in question?
@tomraff – can you provide some more details on your setup? Is this a new install? Any other plugins in use? Also, can you provide any error log messages you can find?
That must be it.
The column should be: bigint(20) default 0.
I’m not really sure how it’s happening, but the change in prefix is a great clue. I’ll dig around in the activation code and see what I can find. And that’s the only table modification, so you should be set after that.
Let me know if you run into anything else!
Thanks for the response! Can you check your `wp_bp_groups` table and confirm that there’s a `parent_id` column?