Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add a menu item to the groups page?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of imath
    imath
    Moderator

    @imath

    Hi,

    You can use the Group Extension API to build your own group area : http://codex.buddypress.org/developer/group-extension-api/

    Avatar of Morgan Kay
    Morgan Kay
    Participant

    @gwendydd

    I have read over that page a dozen times, and tried the code samples, but they don’t seem to do what I want. Could you give me more guidance?

    Avatar of danbp
    danbp
    Participant

    @danbp

    Both example mentionned by imath on the codex are working. And the output goes nice when you’re on a group page. Just tested them with 2014 and the whole code in functions.php…

    But can you be more explicit of what you want ?
    Do you mean the group directory menu only ? Like this:
    | All Groups (3) | My Groups (1) | My item |

    Avatar of Morgan Kay
    Morgan Kay
    Participant

    @gwendydd

    I pasted all of the code from that page into my bp-custom.php, and it didn’t do anything.

    I want to change the menu on a group page, not on a user profile page. So when you view something like example.com/groups/group-name, the default menu is this:
    Home | Members | Admin

    I want to add an item to that menu, so it is:
    Home | Members | Campaigns | Admin

    Avatar of danbp
    danbp
    Participant

    @danbp

    I confirm: the code example doesn’t work from within bp-custom.php. But he works in theme/functions.php

    And if all is goig well, you’ll have the right result after that. ;-)

    Avatar of Morgan Kay
    Morgan Kay
    Participant

    @gwendydd

    Thanks, @danbp! You’re right – the code works in a theme’s functions.php, but not in bp-custom.php or in a plugin file. That’s a bit annoying for my project, but definitely glad to have it working!

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

You must be logged in to reply to this topic.