Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add Email send for the moderators

  • Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Hi.
    Thanks for the great plugin.
    I ‘m trying to add the ability to send a mass group email also for the moderators.

    I have tried by adding the
    `groups_is_user_mod( $bp->loggedin_user->id , $group_id )`
    into the functions `ass_admin_notice_form` and `ass_admin_notice`
    into the if clause together with the`groups_is_user_admin`
    but it doesn’t seems to work

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    maybe there is another is admin check when the email gets sent out.

    Avatar of lenasterg
    lenasterg
    Participant

    @lenasterg

    Hi Dwenaus.
    If a moderator if log in, the create mail screen doesn’t appear at all.

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    i think you need this instead:
    `groups_is_user_mod( $bp->loggedin_user->id , $bp->groups->current_group->id ) `
    but soon that function will be replaced with a better one that logs group admin emails. this one is legacy code from the orig plugin developer that never got properly integrated.

    Avatar of Dwenaus
    Dwenaus
    Participant

    @dwenaus

    also you’ll have to do something similar on line 1041 where the actual email gets sent.

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

You must be logged in to reply to this topic.