BuddyDev

Search

[Resolved] Custom BP Groups Tab/Page

  • Participant
    Level: Enlightened
    Posts: 120
    Erich199 on #1503

    Hi again @sbrajesh,

    Sorry to keep bugging you with these things. I find bits and pieces of code scattered around the web but usually it’s not enough to make it work.

    I’m trying to make a custom tab in the group pages that is visible to the admin/moderators only.

    Inside the tab, is a custom page or a link that takes the group owner/moderators to a support page.

    I’m not sure if I want to use a Q&A plugin or bbpress for this but I’d want to keep it contained inside of this tab inside of the group if possible.

    If I can figure out a way for buddypress to automatically create a support forum for each group created, that would be nice because it would keep each individual group support separated and visible to that user. But, that might be a bit too complicated and the point of the support is to get feedback/request features added etc that would be a community effort rather than a individual group effort.

    I hope this makes sense.

    Thanks for all your help.

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #1506

    Hi Joshua,
    Thank you for asking.
    Though I am not 100% sure, I will try to explain a few things and may be some of them might be useful.

    1. with bbPress it is possible for each group to have separate forums but the forums will be available to all members, I don’t think that is something you want

    2. It is easy to add a link in group navigation that will take user to some other page on the site, will that work?

    3. If we need to show a Page inside the group(not just link), we will need to use group extension and some content to show. Is this that you are looking for?

    Can you please let me know which approach are you looking for or is it something else?

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 120
    Erich199 on #1510

    @sbrajesh,

    I won’t worry about the bbpress idea.

    I’d like to display the content inside of the tab if possible but if that won’t work, the link will be great as well.

    If I can pass template loops inside of the tab , that will work otherwise I’ll just use a link and build a different page. But ideally, I’d like the tab to be visible to group admins/mods only.

    • This reply was modified 9 years, 1 month ago by Erich199.
  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #1513

    Hi Joshua,
    I will post the code today. It will need us to use Group extension API, so that will be like writing a small plugin. I will do that and update you here. Sorry about the delays.

  • Participant
    Level: Enlightened
    Posts: 120
    Erich199 on #1514

    @sbrajesh,

    No worries at all! Thank you for all your help getting this together. Hopefully another user will want this as well. I see a lot of topics about it, but no solution over on buddypress.

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #1515

    Hi,
    Here is the extension
    https://buddydev.com/downloads/bp-group-content-display-example/versions/bp-group-extension-content-display.zip

    It should go to the plugins directory. Please do take a look at the display function in group-extension.php file.

    You can directly output content there or load from a file. I have tried to load it from groups/single/my-content.php

    Hope that helps.

  • Participant
    Level: Enlightened
    Posts: 120
    Erich199 on #1567

    @sbrajesh,

    This is exactly what I was looking for. Thank you so very much.

    I do have a fast question.

    In the plugin, you said it might be easier to output the contents of a page/post?

    I was thinking this might be a great way to build a page for the tab with visual composer and make building the page easier. How would I accomplish this?

    Thanks again! Great plugin and hope others can use it.

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #1568

    Thank you.

    We need some way to connect a page/post to Group. Easy solution will be adding a meta box in the group admin page and allowing site admins to link a page to group.

    We can store the page_id in meta and then while displaying fetch and show that content.

  • Participant
    Level: Enlightened
    Posts: 120
    Erich199 on #1570

    Is it possible to link a “default” page to every group?

    That sounds like it will be great.

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #1573

    Do you mean linking one page to all groups or a page per group?

The topic ‘ [Resolved] Custom BP Groups Tab/Page’ is closed to new replies.

This topic is: resolved