Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group members cant create group events

  • Avatar of mark-ter-s
    mark-ter-s
    Participant

    @mark-ter-s

    If you make a group in Buddypress it is only possible for the group admin to create a group event with events manager plugin

    Now i have two questions:

    First i would like to make it possible for regular group members to create events for their group by themselves.

    ands second, i would like to know if it is possible to create an option, when creating a new group you can select which members of the group can create and manage new events. like the same option there is for choosing which members can invite new members.

    Plugin Author told me to tweak or override the following code, in buddypress/em-bp-groups.php;

    `/**
    * @param boolean $result
    * @param EM_Event $EM_Event
    */
    function bp_em_group_event_can_manage( $result, $EM_Event){
    if( !$result && !empty($EM_Event->group_id) && bp_is_active(‘groups’) ){ //only override if already false, incase it’s true
    if( groups_is_user_admin(get_current_user_id(),$EM_Event->group_id) && current_user_can(‘edit_events’) ){
    //This user is an admin of the owner’s group, so they can edit this event.
    return true;
    }
    }
    return $result;
    }
    add_filter(‘em_event_can_manage’,’bp_em_group_event_can_manage’,1,2);`

    Just need the correct code, that lets members of groups to create and manage there own group events, just like group admins can. without letting them be group admin.

    Really hope there is someone out there that can provide this :)

Viewing 1 replies (of 1 total)
  • Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @mark-ter-s you need to address this to the plugins support found via the pluginsĀ  download page if you don’t understand their instructions.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.