Skip to:
Content
Pages
Categories
Search
Top
Bottom

Getting started with extending your Buddypress Groups.

  • Avatar of CJ Kruger
    CJ Kruger
    Participant

    @cj-kruger

    I wrote a simplified plugin which is used as the base for my Bp Twitter, Bp Google + and Bp Klout plugins. It is intended to be a starting block for any one keen on extending the functionality of thier groups or releasing plugins back to the community.

    I am by no means a experienced developer though have learned by hacking other plugins to suit my needs. Its a great way to learn and get hands on with some code and I would like to make it easier for others to get started.

    I would really appreciate it if I could get some feedback about the documentation i have provided – where ppl are not understanding or are having difficulty.

    Though before I start writing pages of info.. Could one of the core devs have a look at the way I have layed out the plugin ( its really basic ) as to not get people of to a wrong start?

    Once it’s gotten a seal of approval, I will finish up the documentation and with user feedback, present it in a ‘beginner’ friendly way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of CJ Kruger
    CJ Kruger
    Participant

    @cj-kruger

    *bump* @core devs

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    @cj-kruger Sorry for the delay in getting back to you – this got lost in my todo list.

    The basic idea behind this is quite nice. It does give the foundation for adding lots of custom data to your group. I should note that, terminologically, you’re not really creating a “component” in the BuddyPress sense. (For that, you should see the BP Skeleton Component, and especially the BP_Component class: https://github.com/boonebgorges/buddypress-skeleton-component/blob/master/includes/bp-example-loader.php.) What you’ve really given is a template for adding additional metadata to groups. Really useful, but somewhat different from ‘components’ in BP terminology.

    Your method of adding the groupmeta is pretty good. The one big suggestion I would make about your code is that you use wp_enqueue_style() to load your CSS, rather than printing the “ entity directly into the document head. See https://codex.wordpress.org/Function_Reference/wp_enqueue_style

    You should also avoid referencing the $bp global when possible. Instead of `$bp->groups->current_group->id`, use `bp_get_current_group_id()`.

    Otherwise looks nice. Thanks for contributing!

    Avatar of CJ Kruger
    CJ Kruger
    Participant

    @cj-kruger

    When I first got started with buddypress, I took a look at the skeleton component and was kinda deterred. I know that a great deal of work and ‘processing’ have gone into it though from the perspective of a beginer, it would be much easier to get to grips with bp if the components where brocken down into ‘bite sized’ pieces.

    That’s why I though the plugin might help out a few ppl, even if its ten ppl, that’s potentially ten new plugins and furthering the possibilities of a bp install.

    Thanks for the feedback Boone, much appreciated.

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

You must be logged in to reply to this topic.