Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile Fields for GROUPS

  • @evanberard

    Participant

    Hi, I’m wondering if there’s any way to add a tab to groups which just displays group information the same way the profile fields are displayed. For members, you can set different fields that they can fill out for their public profile. I want to have this same functionality for groups. Is this possible?

    Just to make sure you know what I’m talking about: Go on facebook and go to any group or fan page. Click the info tab and see what I mean.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @andrewteg

    Participant

    I don’t know of anything like that at the moment and have poked around a little for it. Just curious, for your application, would it be the same profile fields for each group? Like Facebook groups have Location, Website, etc for each group but it’s the same list for each group I believe. I’ve been messing around with the Group Extension API (https://codex.buddypress.org/developer-docs/group-extension-api/) and have a basic plugin that has a few of these already pre-defined. It is certainly not very dynamic (yet) but if you have a set you need, I could send you that modified to your list, or the code changes from the base API to what I have if you’re interested in coding it yourself. That’s assuming someone else doesn’t come in and show us both a plugin that already does it which would not surprise me either :)

    @anonymized-96400

    Inactive

    There are hooks in place where form fields can be added and validated. You’d need to code it, though. Or get it coded. Just have a look through the group templates and you can find quite a few. For validation hooks you need to look in bp-groups.php.

    @evanberard

    Participant

    Andrew,

    Yes that’s exactly what I’m talking about :) I’m not really a coder, but I’m sure I can tweak it myself :P Could you send it my way?

    Thanks a million :)

    Evan

    @andrewteg

    Participant

    @EvanBerard ~ I hope this helps, but if not, let me know and I’ll see if I can help some more. The code is certainly not ready for prime-time but does give the ability to add profile fields for groups in Buddypress. You have to know your way around the code a little to understand what is going on though. You can see loader.php @ buddypress-group-fields.php @ http://pastebin.com/DfxwhLXU and compare it to my starting point which is the BP Group Extension API in the BP Codex @ https://codex.buddypress.org/developer-docs/group-extension-api/ to see what I’ve done, which isn’t much, but hopefully it helps you a bit! The ZIP is online for now at http://dl.dropbox.com/u/244479/buddypress-group-fields.zip if you want it but probably won’t keep that up there forever so I wanted to include the code as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Profile Fields for GROUPS’ is closed to new replies.
Skip to toolbar