Ban users by x warnings

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 27900
Joined: Sat Aug 16, 2003 7:36 am

Ban users by x warnings

Post by Extensions Robot » Thu Nov 22, 2007 3:26 pm

Modification name: Ban users by x warnings
Author: Paul
Modification description: Bans a user automaticlly when a user has the number of warnings thats set in the ACP when there is a warning added. The user will be banned for the number of minutes thats set in the ACP, and thats by default 1 day.
Modification version: 1.0.1
Tested on phpBB version: 3.0.6

Download file: warnban1.0.1.zip
File size: 31.38 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--
Last edited by Extensions Robot on Mon Mar 27, 2017 3:10 pm, edited 9 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 25180
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Ban users by x warnings

Post by Paul » Thu Nov 22, 2007 3:26 pm

Modification validated/released

Notes:
the description says it all I think :)
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

Hockey_
Registered User
Posts: 13
Joined: Mon Oct 22, 2007 1:08 pm

Re: Ban users by x warnings

Post by Hockey_ » Thu Nov 22, 2007 4:01 pm

Awesome!

User avatar
Tripp
Former Team Member
Posts: 1358
Joined: Sun May 20, 2007 5:14 am
Location: G'boro, North Carolina
Name: Tripp
Contact:

Re: Ban users by x warnings

Post by Tripp » Thu Nov 22, 2007 6:35 pm

Glad to see this got released. I dunno why it wasn't included in phpBB 3 though. Sort of pointless to have a warning system when it doesn't ban or somehow disipline someone with so many warnings. Oh well, greay mod.
The box said 'You need Windows XP or better' .... so I installed linux.

Formerly Drugs

Hockey_
Registered User
Posts: 13
Joined: Mon Oct 22, 2007 1:08 pm

Re: Ban users by x warnings

Post by Hockey_ » Thu Nov 22, 2007 6:59 pm

Wow, this is only the second thing I've installed to my phpBB3 forum and it took me about 2 minutes to install! The first thing I tried didn't work.

Tom@S
Registered User
Posts: 96
Joined: Thu Jul 12, 2007 7:33 pm
Location: SVK
Contact:

Re: Ban users by x warnings

Post by Tom@S » Thu Nov 22, 2007 8:09 pm

finally ist it out.Great thx
Whit this mod http://www.phpbb.com/community/viewtopi ... 00&start=0 it is very nice upgrade

User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: Ban users by x warnings

Post by WhiteWolfSix » Sat Nov 24, 2007 1:02 pm

Paul, great MOD! I have only one question concerning 'Expiration time for automatic bans'. Is the time set up to 0 minutes for permanent ban? I guess so, but I would need to be sure. ;)
Image
WhiteWolfSix (WW6)

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 25180
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: Ban users by x warnings

Post by Paul » Sat Nov 24, 2007 1:09 pm

WhiteWolfSix wrote:Paul, great MOD! I have only one question concerning 'Expiration time for automatic bans'. Is the time set up to 0 minutes for permanent ban? I guess so, but I would need to be sure. ;)
Iam not fully sure, I also think so. Dont have the code here in front of me. Best way to know is to try it :)
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: Ban users by x warnings

Post by WhiteWolfSix » Sat Nov 24, 2007 2:00 pm

Haha, Paul, I thought you already tested it. :mrgreen:
Image
WhiteWolfSix (WW6)

User avatar
WhiteWolfSix
Registered User
Posts: 258
Joined: Sun May 15, 2005 5:43 am

Re: Ban users by x warnings

Post by WhiteWolfSix » Sat Nov 24, 2007 7:50 pm

Paul, would it be possible to add a feature of the automatic setting of the rank or group for banned users? This could help to differentiate banned users from other users in postviews. ;)
Image
WhiteWolfSix (WW6)

MrJacky
Registered User
Posts: 17
Joined: Tue Jun 05, 2007 10:43 pm

Re: Ban users by x warnings

Post by MrJacky » Mon Nov 26, 2007 8:26 am

Do you have a demo available?

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 25180
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: Ban users by x warnings

Post by Paul » Mon Nov 26, 2007 8:53 am

MrJacky wrote:Do you have a demo available?
No.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

RdJ1
Registered User
Posts: 119
Joined: Thu Oct 25, 2007 8:18 am
Location: The Netherlands

Re: Ban users by x warnings

Post by RdJ1 » Wed Nov 28, 2007 7:03 pm

Nice work! :D

I want to set the ban expiring more than 9999, how can I to this?

vb6
Registered User
Posts: 11
Joined: Wed Mar 09, 2005 2:09 pm

Re: Ban users by x warnings

Post by vb6 » Thu Nov 29, 2007 6:52 pm

You can temporary change it in hour until the author release next version.
Open: includes/mcp/mcp_warn.php
Find:

Code: Select all

user_ban('user', array($user_row['username']), $config['warnings_ban_expire'], false, 0, $user->lang['AUTO_WARN_BAN']);
Replace:

Code: Select all

user_ban('user', array($user_row['username']), $config['warnings_ban_expire']*60, false, 0, $user->lang['AUTO_WARN_BAN'], $user->lang['AUTO_WARN_BAN']);
Open: includes/acp/acp_board.php
Find:

Code: Select all

'warnings_ban_expire'	=> array('lang'	=> 'WARNINGS_BAN_EXPIRE',	'validate' => 'int',	'type' => 'text:3:4', 'explain'	=> true, 'append' => ' ' . $user->lang['MINUTES']),
Replace:

Code: Select all

'warnings_ban_expire'	=> array('lang'	=> 'WARNINGS_BAN_EXPIRE',	'validate' => 'int',	'type' => 'text:3:4', 'explain'	=> true, 'append' => ' ' . $user->lang['HOURS']),

RdJ1
Registered User
Posts: 119
Joined: Thu Oct 25, 2007 8:18 am
Location: The Netherlands

Re: Ban users by x warnings

Post by RdJ1 » Thu Nov 29, 2007 7:27 pm

Thanks

Locked

Return to “[3.0.x] MOD Database Releases”