Posts: 425
Threads: 8
Joined: Mar 2007
Reputation:
3
Jul 01, 2008, 10:50 PM
(This post was last modified: Jul 01, 2008, 10:52 PM by judel.)
Labrocca, I'm attempting to change the perm ban to a temp one. To test, I've added a week to the time function. Here is what I replaced "perm" with:
That time equates to a week in the future. I'm able to ban a user, but when I look in the ACP, I'm told the user was banned "today" and the ban is lifted "today" with remaining time in the negative at -337491 hours. There are only 168 hours in a week, and it shouldn't be negative, should it? Also, when I go to edit the ban, only 1 day is listed as the ban time.
Posts: 680
Threads: 81
Joined: Mar 2007
Reputation:
38
Change
PHP Code: $ban_array1 = array( "uid" => $buid, "gid" => "7", "oldgroup" => $banneduser['usergroup'], "oldadditionalgroups" => $banneduser['additionalusergroups'], "olddisplaygroup" => $banneduser['displaygroup'], "admin" => $mybb->user['uid'], "dateline" => time(), "bantime" => "perm", "lifted" => 0, "reason" => "", );
into
PHP Code: $ban_array1 = array( "uid" => $buid, "gid" => "7", "oldgroup" => $banneduser['usergroup'], "oldadditionalgroups" => $banneduser['additionalusergroups'], "olddisplaygroup" => $banneduser['displaygroup'], "admin" => $mybb->user['uid'], "dateline" => time(), "bantime" => "7-0-0", "lifted" => time()+604800, "reason" => "", );
Posts: 4,308
Threads: 223
Joined: Sep 2006
Reputation:
320
Yeah easy enough to do manually. I didn't want to add a setting for it.
Posts: 425
Threads: 8
Joined: Mar 2007
Reputation:
3
Thanks, Lex! I was thinking that the lifted area should be something other than 0 but had no idea how to change that myself!
Posts: 1
Threads: 0
Joined: Aug 2008
Reputation:
0
Posts: 68
Threads: 13
Joined: Nov 2007
Reputation:
1
whoud be nice a settings for quick ban. For reason & how much time.
Posts: 227
Threads: 11
Joined: Aug 2008
Reputation:
5
(Sep 11, 2008, 12:02 PM)ciorax Wrote: whoud be nice a settings for quick ban. For reason & how much time.
This defeats the point of a "Quick Ban".
Would love to see this for 1.4.
Posts: 3
Threads: 1
Joined: Sep 2008
Reputation:
0
Thanks alot for this it will come in handy
|