Skip to:
Content
Pages
Categories
Search
Top
Bottom

change default group status from public to private


  • longilineo
    Member

    @longilineo

    I found and removed the code that shows radio to select public as group status, but if users exit from create group procedure before complete the second step(‘settings’), status is set to public.

    I also edit
    plugin/buddypress/bp-groups/bp-groups-screens.php (line 513 and 514) into:

    // Checked against a whitelist for security
    $allowed_status = apply_filters( ‘groups_allowed_status’, array(/*’public’,*/ ‘private’, ‘hidden’ ) );
    $status = ( in_array( $_POST, (array)$allowed_status ) ) ? $_POST : /*’public’*/’hidden’;

    But i can’t resolve.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You shouldn’t edit core files directly. What are you trying to do? Remove public groups and force them to be private?


    longilineo
    Member

    @longilineo

    Groups should be only private or hidden.

    I know I should not change the core, but I do not know how to do otherwise.

    By changing the core, I can remove the ‘public groups’ among those available during the creation process of the group.

    In truth, to remove the radio button, I do not modify the core but a view of the active theme.

    But the default groups are still created as public. This occurs when you create the group by setting only the name and description of the group (first step).


    longilineo
    Member

    @longilineo

    How to set default type to private rather than public?

    I looked at the “Group Extension Api”. As I understand, they allow only to add steps in creation and editing groups.

    I don’t find nothing that allows to override default behavior in creation and editing of groups.

    Can someone help me?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change default group status from public to private’ is closed to new replies.
Skip to toolbar