HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Anyone know of an addon to ban users from a discussion?
-
Re: Anyone know of an addon to ban users from a discussion?
Some explanations on Vanillas "saving processes". As I've said before there is (generally spoken) one model per table. Without looking at the files you could be sure that there is a class CommentModel with a save() method. The way Vanilla allows a plugin author to take influence on data and output is by firing events.… -
Re: Anyone know of an addon to ban users from a discussion?
-
Re: Anyone know of an addon to ban users from a discussion?
Ok so I think this should work but still not stopping banned user from submitting. public function CommentModel_BeforeSaveComment_Handler($sender, $args) { //$DiscussionID = $args['Discussion']->DiscussionID; $DiscussionID = $args['FormPostValues']->DiscussionID; $DiscussionModel = new DiscussionModel(); $Discussion =… -
Re: Anyone know of an addon to ban users from a discussion?
-
Re: Anyone know of an addon to ban users from a discussion?
When I look at class.commentmodel.php and do a search for BeforeSaveComment I find this: // Prep and fire event $this->EventArguments['FormPostValues'] = &$FormPostValues; $this->EventArguments['CommentID'] = $CommentID; $this->fireEvent('BeforeSaveComment'); Strange because it needs to insert the discussionid when it…
6 results