Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Support: Creating & Extending

Existing and new plugins/components and themes.

group types (14 posts)

Started 2 years ago by: firetag

  • Profile picture of firetag firetag said 2 years ago:

    I was wondering if there is anyway to extend groups and add in the ability to have different group types. Depending on the certain group type the group would have certain features (supplied by another plugin). Basically the group types would be much like member types…. Is this possible without hacking out the core code?

  • Profile picture of firetag firetag said 2 years ago:

    I did some looking through the docs and found that using the group api would be the best way to achieve this….

  • Profile picture of Boone Gorges Boone Gorges said 2 years ago:

    I recommend using groupmeta to accomplish this. The functions you want are groups_get_groupmeta and groups_update_groupmeta.

  • Profile picture of firetag firetag said 2 years ago:

    yeah but whenever users create new groups I’ll have to add in a new group type like ( public, private, hidden, customgroup1 or whatever ). But I guess the reason for using group meta would be because it’s easier to cache?

  • Profile picture of firetag firetag said 2 years ago:

    Well I am just about done with this.. I’ll try to post a tut of what I did after my volunteer job tomorrow. It’s really not that hard, but I got the core all hacked up right now so I’m just converting it to all work with actions.

    If people want I could make a plugin with this kind of functionality.

    I need to skip over a chunk of code using the actions…is the only way to do this is by making a div and making it hidden?..but then people can technically still access it? nvm guess it doesn’t matter if they can access it anyway

  • Profile picture of agrundner agrundner said 2 years ago:

    @firetag I’m interested in seeing how you did it. How are you planning to filter the group types for browsing on your site?

  • Profile picture of Travel-Junkie Travel-Junkie said 2 years ago:

    I’d keep group types separate from your normal types (public, private, hidden). You’d still want a group of a certain type to be able to be either public, private or hidden…

  • Profile picture of Svenl77 Svenl77 said 2 years ago:

    @firetag +1 please make a plugin!

  • Profile picture of firetag firetag said 2 years ago:

    Ok I just got back from work, but I need to get a client site on today that I forgot about lol so I’ll post a tut or something tomurrow…

    @agrundner I am going to filter the group types in the theme it’s the only way to do it… Unless someone knows a better way?

    @Travel-Junkie It is separate from the normal types its actually separate from the whole create new group (at least that’s the way I’m doing it I’ll show everyone how to do it with normal group creation if it’s requested)

    @Svenl77 I’ll try to make a plugin, but you’ll still need to edit your them for it to work…

  • Profile picture of stwc stwc said 2 years ago:

    @firetagas I talked about here, I’m really keen to have something to start from to get this going. Would much appreciate anything you can share to help!

  • Profile picture of firetag firetag said 2 years ago:

    Ok sorry update took to long got stuck doing other work… Anyway the way I am handling new group types is by using meta data as Boone Gorges suggested, but I am doing it quite different than the way it’s handled on the buddypress.org site….just because that’s what my site requires.

    anyway the new group type is totally separate from other groups….(for users it’s actually not even called a group) It creates a whole new directory for this certain type of group…

    @stwc I will add in rating functionality hopefully because this could be useful to my site also…

    edit: after working on it for a little I have decided the functionality I need is a lot different than what everyone is asking for, but I’ll try to work on both at the same time..

  • Profile picture of bplove bplove said 2 years ago:

    @firetag Sweet :) ~ This is a great addition ~ powerful ~ God speed ;)

  • Still no working plugin for different group types?

  • Profile picture of @mercime @mercime said 1 year, 9 months ago:

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