Skip to:
Content
Pages
Categories
Search
Top
Bottom

Let moderators mark members as spam

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

  • shanebp
    Moderator

    @shanebp

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


    Shaktimaan
    Participant

    @umar007

    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

    @shanebp

    >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.


    Shaktimaan
    Participant

    @umar007

    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

    @shanebp

    >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.


    Shaktimaan
    Participant

    @umar007

    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