Continuing the discussion from Ability for users to act as moderators on their own topic:
This plugin has basically been developed and tested now.
Features
I don’t really like to explain its functions, so I decided to use pictures to illustrate what it can do.
Users
- It adds a button appears just after topic-admin-button for public topic’s creator
- PM is not supported since I don’t think it’s necessary.
- Everyone should apply before gain moderation permissions, but the application can be automatically approved.
- After application, moderatior buttons would appear.
Manipulating Groups
- This button appears in every topic
- The options below the dividing line will only appear if the user is Staff
Admins
- It added a whole tab to the settings because it was a bigger plan
- Site settings
- It will create logs in a special topic
Important notes
After installation, please follow the instructions below before enabling the plugin
-
Before enabling this plugin, you need to create an account to be used as a “User Assistant bot”. Although this plugin can automatically create bot user or use existing
@Discobot
, I don’t recommend doing that, because the bot users created by the plugin cannot be modified in the admin panel. You can grant it any permission you want, because in fact, the relevant code is specially written to make the bot always act as Admin, but I suggest that it is best to grant it Admin or moderator permissions. During development, sometimes unknown bugs that I cannot reproduce stably are caused due to this reason. -
Then, you need to create a topic, which can be a private message or a public topic. Fill in its topic_id to
SiteSetting.topic_op_admin_logger_topic
. Iftopic_op_admin_enable_topic_log
is turned on, the above bot will create more detailed log posts within the topic. -
After creating the user assistant robot, write down its user id, and then fill it in
SiteSetting.topic_op_admin_bot_user_id
above. -
Opening certain settings without following the above steps correctly can cause errors or even break your website