Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @kriyou

    Participant

    Most definitely. I’ll check this later, but I need the attributes of the two (the post and corresponding group) to be very closely linked.

    This may be something slightly above my station, though I’m definitely willing to give it a go. If it comes to it, I could write a massive SQL statement to shove the details in to BP on the new post query, but that would break any future WP upgrades.

    Will report back for sure.

    @kriyou

    Participant

    Rich, I love you. I’ll pass on the advice so that others might know how to do it.

    At the top of /groups/index.php, you will see a H3 tag, with the ‘Create Group’ button next to it. This has a conditional around it to show the button if the user is logged in – this needs slight modification to check if the user is already part of a group. Define it first, above that tag:

    $count = groups_total_groups_for_user( $bp->loggedin_user->id );

    Around the button, the conditional was previously just for the ‘is_logged_in’ check, but I modified it to this:

    if ( is_user_logged_in() && $count < 1

    I am happy with the results, thank you Rich.

    @kriyou

    Participant

    And once again.

    Someone please help me with this.

    @kriyou

    Participant

    Any ideas?

    @kriyou

    Participant

    1) At the bottom of bp-groups.php.
    2) In a function enclosed on its own (which is just below where the function code ends).
    3) Definitely, positively logged in as a user.

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar