Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Removal of ‘settings’ step in group creation


  • Swagga
    Participant

    @swagga

    Hello guys!

    I have been searching on the forum and not found any topics for what I am looking for, if I have missed any please let me know!

    Basically I’d like to remove the ‘settings’ step when creating a group, and have ‘hidden group’ default selected as well and ‘only admins’ to be able to edit the page.

    Currently I have a custom create.php with only the fields I want pre selected, but I’d like to remove the whole step but have desired pre selections selected, possible?

    Is there a way of removing this step and keeping some default values there? How would I go about doing this?

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

  • Swagga
    Participant

    @swagga

    Anyone? I have see things to do with ‘unset’ but it seems that was in bp 1.6 and previous? Been looking around for a while and still no solution.


    shanebp
    Moderator

    @shanebp

    and ‘only admins’ to be able to edit the page.

    Do you mean site admins?
    If so, why enable group creation on the front end?

    If you need front end creation, you’ll need to manipulate the create steps.
    Use these hooks in function groups_action_create_group() in \bp-groups\bp-groups-actions.php

    do_action( 'groups_create_group_step_save_' . bp_get_groups_current_create_step() );
    do_action( 'groups_create_group_step_complete' );

    Or completely by-pass the BP create groups code with your own – not recommended.


    Swagga
    Participant

    @swagga

    Thanks Shane, I think I have solved this.

    For anyone else who wants to have the group created with just ‘details’ filled in I added this

    function my_bp_remove_group_steps_init() {
    global $bp;
    unset( $bp->groups->group_creation_steps );
    }
    
    add_action( 'bp_actions', 'groups_action_create_group', 'my_bp_remove_group_steps_init' );

    Which appears to work just fine!


    Glenn
    Participant

    @rglennnall

    this is JUST what i’ve been trying to do for a couple of hours – please tell me WHERE exactly you placed this function?

    thanks!!


    PinkishHue
    Participant

    @pinkishhue

    @rglennall I’m assuming this should go in your bp-custom.php file, see info here if unfamiliar:

    bp-custom.php

    Hope that helps!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Removal of ‘settings’ step in group creation’ is closed to new replies.
Skip to toolbar