Skip to:
Content
Pages
Categories
Search
Top
Bottom

Request forum for group?


  • bmcconach
    Participant

    @bmcconach

    Hello,

    First, if this appears twice, it’s because someone had the bright idea that my request for assistance was “spam”.

    I can’t seem to locate a plugin off-hand that does what I’m looking for, and I’m not well versed enough in BP to be able to come up with a solution off-hand, so I thought I’d check and see if anyone here might have the know-how to accomplish this.

    What I am aiming to do is to have group admins request that a forum be created for their group, which would alert the site administrator, and then commence automating the process if the request is approved. I’ve already limited group creation to members with at least 3 days under their registration belt to help keep the possibility of group-forum spamming down, but it would be nice to have group forums only for groups that actually need it and not every single group on the site.

    If nothing like this exists, I can get on board with the idea of placing a form on the group management -> forums page, hiding the “Yes, I want this group to have a discussion forum.” checkbox, and manually creating the forums as an admin. That being said, I haven’t found a way to make these changes other than to modify the plugin files directly, which would of course disappear on the next update. Any ideas on a snippet or two that, when placed in my functions.php file, would allow me to edit this?

    As a point of note: I’m using the BuddyBoss theme/plugin suite; most plugins/function snippets work without an issue, but I wanted to make sure I mention it now and not later.

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

  • bmcconach
    Participant

    @bmcconach

    I dug around a bit and managed to find a way for me to prevent anyone other than the site admin from seeing the tab once in the group management section, which isn’t exactly what I was looking for, but will suffice.

    The issue I’m now running into is that, even though I have removed the forum options (slugged “topic” in BuddyBoss) using the code below, the group creation still goes to that slug when clicking the “Next” button and now displays a blank screen. Any chance someone could point out what I’m missing from my code to skip that step completely?

    function remove_group_creation_steps() {
    	global $bp;
    	unset( $bp->groups->group_creation_steps['topic'] );
    	unset( $bp->groups->group_creation_steps['forum'] );
    }
    add_action( 'bp_before_create_group_content_template', 'remove_group_creation_steps', 9999 );

    shanebp
    Moderator

    @shanebp

    These are the forums for BuddyPress.
    BuddyBoss is a fork of BuddyPress and does some things differently.
    You may have better luck asking the folks at BuddyBoss.

    But here is a hint, instead of unset, use the filter:
    apply_filters( 'bp_rest_group_settings_forum', $fields, $group_id );
    Found here:
    buddyboss-platform\bp-groups\classes\class-bp-rest-group-settings-endpoint.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Request forum for group?’ is closed to new replies.
Skip to toolbar