Skip to:
Content
Pages
Categories
Search
Top
Bottom

Let moderators mark members as spam

  • @umar007

    Participant

    Please check this image

    Direct Link: http://s10.postimg.org/84qc1h4zd/markspam.jpg

    null

    I as an admin can mark a member as spam. I also want to give this option to moderators. How can i achieve this?

    I am using a role editor plugin and have already enabled list_users capability for them.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • @shanebp

    Moderator

    This is a WP question, not a BP question.
    They will need the edit_users capability.

    @umar007

    Participant

    edit_users capability will let them do many other things that i don’t want.

    I think spam and extended features have been added by buddypress therefore i am asking here.

    I have a blog where i am not using buddypress plugin. I don’t see spam and extended option there.

    @shanebp

    Moderator

    >I think spam and extended features have been added by buddypress therefore i am asking here.
    Sorry, my mistake.

    Before adding the ‘spam’ link BP checks to see if
    current_user_can( 'edit_user', $user_id )

    Members can also be marked as spammers via the front-end.
    Take a look at :
    \bp-templates\bp-legacy\buddypress\members\single\settings.php
    You might be able to adjust it to check for a cap of your choice.

    @umar007

    Participant

    Members can also be marked as spammers via the front-end.

    Moderator (test user) with list_user capability can see spam option on Back-end/dashboard but he can’t see this option on front-end.

    As an admin i can mark a member as spam on front-end also.

    If moderator could mark a member as spam only via dashboard, i am ok with it.

    I am not a coder. Can you help me? How to edit it to achieve desired results? Is there a code that i can add in functions.php?

    I want this for 2 /users/moderators.

    @shanebp

    Moderator

    >If moderator could mark a member as spam only via dashboard, i am ok with it.

    Due to the current_user_can check, afaik it is not possible via dashboard unless you hack core files.

    @umar007

    Participant

    If moderators could mark members as spam on front-end, it is also acceptable.

    But Moderator (test user) with list_user capability can’t see this option on front-end.

    If he clicks on settings, there should be a link Capabilities on user profile. But there is no Capabilities link.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Let moderators mark members as spam’ is closed to new replies.
Skip to toolbar