Method |
Description |
|
activityModel_afterGet_handler ( ActivityModel $sender ) |
Attach to the Activity model and remove all records by trolls (unless the current user is a troll) |
|
base_beforeCommentBody_handler ( type $sender ) |
Identify troll comments for moderators. |
|
base_beforeDiscussionMeta_handler ( type $sender ) |
Identify troll discussions for moderators. |
|
base_render_before ( Gdn_Controller $sender ) |
Fingerprint the user. |
|
commentModel_afterGet_handler ( CommentModel $sender ) |
Attach to the Comment model and remove all records by trolls (unless the current user is a troll) |
|
commentModel_beforeUpdateCommentCount_handler ( CommentModel $sender ) |
Do not let troll comments bump discussions. |
|
discussionModel_afterAddColumns_handler ( DiscussionModel $sender ) |
Attach to the Discussion model and remove all records by trolls (unless the current user is a troll) |
|
discussionModel_beforeSaveDiscussion_handler ( DiscussionModel $sender ) |
Auto-sink troll discussions. |
|
getTrolls ( ) : array |
Get list of current troll user IDs. |
|
profileController_beforeProfileOptions_handler ( ProfileController $sender ) |
Add toggle option to add/remove troll status from users |
|
profileController_beforeUserInfo_handler ( ProfileController $sender ) |
If user has been marked as troll, write a message at the top of their
profile for moderators to read. |
|
profileController_render_before ( ProfileController $sender ) |
Display shared accounts on the user profiles for moderators. |
|
profileController_userLoaded_handler ( ProfileController $sender ) |
Hide counters on profile of trolls unless viewer is a moderator. |
|
setTrolls ( array $trolls ) |
Save list of current troll IDs to config. |
|
setup ( ) |
Setup: on enable |
|
structure ( ) |
Database structure: on update |
|
userController_markTroll_create ( UserController $sender, $userID, $troll = true ) |
Validates the current user's permissions & transientkey and then marks a user as a troll. |
|