MyBB Community Forums

Full Version: Permaban through warnings is buggy
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I set the warning level of 100% on my forum to ban the user "Permanently".

However, on the infraction screen (I renamed them to "infractions" >_>), it says that the user will be banned for "1 months", and in the actual ban listing screen, the place that would show the length of the user's ban is blank, with a title below that reads "( remaining)".

So, what might be the problem? Is this a known bug, or is there probably something else wrong?
For me, on the warning page, it says 'User will be moved to banned group (Banned)', and on the ban list, it just says '(Ban Ending Imminently)' with a blank line above it. Plus the redirect message after I give the warning says 'The user has also been moved to the Banned group for .'

Something's clearly wrong, you can report it as a bug on http://dev.mybb.com
I verify this as well. I didn't look into why.
I'm looking at the entry for the warning level under mybb_warninglevels, and it says this:

Quote:a:3:{s:4:"type";i:1;s:9:"usergroup";i:10;s:6:"length";s:2:"-1";}

I assume the "-1" stands for "permanently", but I have no idea how that markup is supposed to be read.
The code that deals with it will turn it back into a normal PHP array.

Array
(
    [type] => 1
    [usergroup] => 10
    [length] => -1
)

I'll add this to the bug tracker tomorrow.
I added it to the bug tracker: http://dev.mybb.com/issues/1389