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.
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17326
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Ban users by x warnings

Post by DavidIQ »

MOD Updated to version 1.0.1
See first post for Download Link
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
elpanatibu
Registered User
Posts: 38
Joined: Sun Nov 16, 2008 6:34 pm

Re: Ban users by x warnings

Post by elpanatibu »

please help me.

Code: Select all

SQL ERROR [ mysqli ]

Incorrect string value: '\xE1ximo ...' for column 'ban_reason' at row 1 [1366]

SQL

INSERT INTO phpbb_banlist (ban_userid, ban_start, ban_end, ban_exclude, ban_reason, ban_give_reason) VALUES (84, 1268464651, 1269064591, 0, 'El usuario ha alcanzado el m�ximo de advertencias, y ha sido autom�ticamente excluido.', '')

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/db/dbal.php
LINE: 485
CALL: dbal_mysqli->sql_query()

FILE: includes/functions_user.php
LINE: 1073
CALL: dbal->sql_multi_insert()

FILE: includes/mcp/mcp_warn.php
LINE: 519
CALL: user_ban()

FILE: includes/mcp/mcp_warn.php
LINE: 275
CALL: add_warning()

FILE: includes/mcp/mcp_warn.php
LINE: 63
CALL: mcp_warn->mcp_warn_post_view()

FILE: includes/functions_module.php
LINE: 517
CALL: mcp_warn->main()

FILE: mcp.php
LINE: 244
CALL: p_master->load_active()
Flooder
Registered User
Posts: 6
Joined: Mon Oct 26, 2009 10:30 pm

Re: Ban users by x warnings

Post by Flooder »

Mr_makaveli wrote:is it possible for different number of warning too diff things in editing script eg

1 warning = warning
2 warnings = warning
3 warnings = 1 day
4 warning = 1 week
5 warning = 1 month
I would also like to know. Can someone help?
fasko
Registered User
Posts: 185
Joined: Wed Jan 28, 2009 9:49 am

Re: Ban users by x warnings

Post by fasko »

Plees help my

Image
Sorry for my english
User avatar
RMcGirr83
Former Team Member
Posts: 21593
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Ban users by x warnings

Post by RMcGirr83 »

Post up line 766 from includes/functions_user.php and line 527 from includes/mcp/mcp_warn.php
Appreciate the extensions/mods/support then buy me a beerImage
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
fasko
Registered User
Posts: 185
Joined: Wed Jan 28, 2009 9:49 am

Re: Ban users by x warnings

Post by fasko »

includes/functions_user.php

Code: Select all

function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reason, $ban_give_reason = '', $ban_banner)



includes/mcp/mcp_warn.php

Code: Select all

user_ban('user', array($user_row['username']), $config['warnings_ban_expire'], false, 0, $user->lang['AUTO_WARN_BAN']);
Sorry for my english
User avatar
RMcGirr83
Former Team Member
Posts: 21593
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Ban users by x warnings

Post by RMcGirr83 »

You have my ban list mod installed. Do the edits as stated in this post.
Appreciate the extensions/mods/support then buy me a beerImage
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
fasko
Registered User
Posts: 185
Joined: Wed Jan 28, 2009 9:49 am

Re: Ban users by x warnings

Post by fasko »

RMcGirr83 wrote:You have my ban list mod installed. Do the edits as stated in this post.
Thanks
Sorry for my english
Flooder
Registered User
Posts: 6
Joined: Mon Oct 26, 2009 10:30 pm

Re: Ban users by x warnings

Post by Flooder »

Help-me ?
Flooder
Registered User
Posts: 6
Joined: Mon Oct 26, 2009 10:30 pm

Re: Ban users by x warnings

Post by Flooder »

Sorry for double post, but nobody else can help? it takes a lot
User avatar
RMcGirr83
Former Team Member
Posts: 21593
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Ban users by x warnings

Post by RMcGirr83 »

Post up line 766 from your includes/functions_user.php file
Appreciate the extensions/mods/support then buy me a beerImage
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
User avatar
CheeRees
Registered User
Posts: 92
Joined: Fri Jun 05, 2009 2:13 pm

Re: Ban users by x warnings

Post by CheeRees »

How to add ban for 2 month :?:
In minutes? :roll:
  • OurTube - YouTube clone for your phpBB !
Locked

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