WordPress.org

Ready to get started?Download WordPress

Forums

BP Group Categories/Types
No Categories Saving (3 posts)

  1. Andrew Tegenkamp
    Member
    Posted 4 years ago #

    I'm using the newest WP and BP on a new install and get nothing when testing this plugin.

    I create a group (either in admin at the bottom with the new links or on the front end) and it gives me a choice if a category or a user group. I select category but when I go to make another group I don't have any choices for a category to put it in. On my groups page it says it is a Category Group though.

    Any ideas what happened? It appears it does not make any changes to the database structure.

    http://wordpress.org/extend/plugins/bp-group-categoriestypes/

  2. Andrew Tegenkamp
    Member
    Posted 4 years ago #

    Ok, I tried again with a -1 and it is now working as I expected it to work. So far so good. I think I am just confused as to how a parent_cat of 0 is supposed to work?

    I updated my code to default to -1 instead of 0 in bp-grouptypes-classes.php because it just doesn't make any sense, so if you can explain what a parent_cat of 0 does I'd appreciate it!

    Thanks,
    Andrew

  3. Nick
    Member
    Posted 3 years ago #

    Hey, I have exact same problem, except when I set parent_cat to -1 on line 449 of the code:
    groups_update_groupmeta($bp->groups->current_group->id,'parent_cat', 0);
    to
    groups_update_groupmeta($bp->groups->current_group->id,'parent_cat', -1);

    Nothing happens. Did I get it wrong; is there another place?
    Thanks,
    Nick

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic