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?
You're almost there! You just need some more understanding of the scope of variables. Inside of your function you only have two variables: $sender and $args. $sender is an instance of the CommentModel. It is always worth checking if a class provides a property that could be helpful. In this case, there is no helpful… -
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?
If a link has the class "Popup", Vanilla uses Javascript to open the link as a popup. In the text you post was a typo. Most of the code I write down here is completely untested and it might be full of typos and do not even work at all. But most of the time you should be able to make it work with just a few adjustments. If…
4 results