I am attempting to make a slight modification to Nelsaidi's infractions mod so that it bans users if they have a set number of infraction points (numbers hard coded in as that's just the easiest way to do it).
user_ban("user", $user_row["username"], -1, "2013-02-02", false, 0, "ban test", "test ban");
User is not banned. Function returns true (or 1) though, because I passed this function through trigger_error() just to confirm.
user_ban("user", "test", -1, "2013-02-02", false, 0, "ban test", "test ban");
Still not banned.
The ban by minutes option isn't working either.
I have also included the following at the beginning of the issue function:
What am I missing. I'm pretty new to PHP, though I've been coding for windows platforms for years so I have the theory down.
Discuss general development subjects that are not specific to a particular version like the versioning control system we use or other infrastructure.
1 post • Page 1 of 1