Skip to:
Content
Pages
Categories
Search
Top
Bottom

API Documentation?

  • Is there better buddypress API documenation available than the lists of functions and tags found on http://codex.buddypress.org?

    I need to understand things like querying for the owner/admin of a group, members of a group, a list of all groups…

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

    @crashutah

    Nope. Although, it’s often good to consult the WordPress codex as well since all of those functions can be used also.

    I’ve also learned to love this piece of code to output what’s being stored in various vars (just replace $bp with the var you want to see):
    echo ”

     ";
    var_dump($bp);
    echo "

    “;
    die;
    (the echo should be the pre html code since this won’t display code right)

    Otherwise, I look at plugins that do similar things to what I want to do to find new code or ask in the forums and sometimes people will answer with the code.

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    techguy is right – there isn’t really robust documentation at the moment. (Though you are welcome to participate in expanding the documentation at codex.buddypress.org as you figure things out!)

    Just off the top of my head, you might look in the following places:
    - for determining the admins of a group, look at bp-themes/bp-default/groups/single/group-header.php, where this is done in the context of group headers. The function to look for is bp_group_list_mods(), which is defined in buddypress/bp-groups/bp-groups-templatetags.php.
    - Members of a group can be figured out with a group members loop. The codex page on this subject is quite good: http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-group-members-loop-bp_group_has_members/. See also the same group templatetags file, where bp_group_has_members() is defined.
    - A list of all groups can be had with bp_has_groups. See the codex http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-groups-loop/ and, again, bp-groups-templatetags.php (see a pattern emerging here?)

    Avatar of sanjay kumar sahoo
    sanjay kumar sahoo
    Participant

    @sanjaysilu

    how i can start using buddypress . i mean to say how i can develop my own site using buddypress . I am new to buddypress can somebody will help me out where to download and what to download and which document i need to follow. Help will be great

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

You must be logged in to reply to this topic.