Pierre's Wordspew
Editor can't ban users (3 posts)

  1. _WILCO_
    Posted 5 years ago #

    Hello, thanks for your useful plugin.

    My problem is: I am the administrator of the blog, and i can ban ips easily with a simple button at the bottom of the control panel. The editors of the blog can clear messages but they doesn't have the possibilities for ban users because the button doesn't exist at their cpanel. How can I fix that? How can i show the "ban user" button for the editors level of the blog?

    Thank you very much for the answer.

  2. Pierre_02
    Plugin Author

    Posted 5 years ago #

    Hi _WILCO_,

    the shoutbox use the native moderation list of WP but Editors can't access this list. Just try to load the "/wp-admin/options-discussion.php" in your browser when you'll be logged as Editor and you'll see what i mean ;) this is not my choice it's a WP constraint...

    So BTW i haven't reason to show them the "ban user" button ;).



  3. _WILCO_
    Posted 5 years ago #

    Thanks for your answer Pierre.

    This morning I resolved the problem. My php is bad and i don't know exactly what i did. But it works.

    I`ve copied the code of the line 574 in wordspew_admin.php:
    <input type="button" name="jal_ban" value="'.__("Ban this IP",wordspew).'" onclick="BanIP('.$r->id.',\''.$r->ipaddr.'\')"/>

    ...And i`ve pasted it a few lines below, before the "delete" button.

    Now the administrator panel has two buttons to ban users, and the EDITOR panel has one button to ban. It`s ok for me.

    Sorry for my English, and congratulations for your great plugin.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pierre's Wordspew
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic