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?
Ok moving on to saving (again)... Ok I thinkthis is what we are looking for in the serialized comlumn save. I understand that $sender->RequestArgs[0] is the discussionid and i have taken the usernames and gotten an array of userids and then imploded and appended the brackets. I am assuming that we had to create the string… -
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… -
Re: Anyone know of an addon to ban users from a discussion?
That looks weird and I'm not sure what you are doing... O.o UserModel->getByUsername returns an object with information about the user. Roughly said, it contains every column of the GDN_User table as a property. So if you have $user = $userModel->getByUsername($name) you have an object that has a property UserID. You can… -
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.…
24 results