Ban Reasons

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

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply

Rating:

Excellent!
18
86%
Very Good
2
10%
Good
0
No votes
Fair
1
5%
Poor
0
No votes
 
Total votes: 21

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28202
Joined: Sat Aug 16, 2003 7:36 am

Ban Reasons

Post by Extensions Robot »

Modification name: Ban Reasons
Author: eviL<3
Modification description: This MOD will allow you to add a Reson for banning a Person. HTML is also allowed. When the banned person tries to login, he/she will see the custom ban reason instead of the standard message.
Modification version: 1.0.5
Tested on phpBB version: 2.0.21

Download file: ban_reasons_1.0.5.zip
File size: 167121 Bytes

Modification overview page: View


Selected tags:
  1. category
    1. Admin Tools
  2. phpbb
    1. 2.0.21
    2. 2.0.22
Support for this modification needs to be asked within this topic. The phpBB Team is not responsible or required to give anyone support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.
Last edited by Extensions Robot on Sun Jul 29, 2007 6:21 pm, edited 2 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

User avatar
webmacster87
Former Team Member
Posts: 3758
Joined: Fri Jun 11, 2004 2:30 am
Location: San Mateo, CA
Name: Douglas Bell
Contact:

Post by webmacster87 »

MOD Validated/Released

Notes:
Lets you specify a reason for banning a person. This will be displayed to the banned user while he/she is banned.

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

Thanks Fountain of Apples! My first validated MOD! :D

All who are using the Beta, get this fix.


Demo Board: http://phpbbmodders.net/
Demo Username: Banned
Demo Password: demo

Demo Screenshots:

Image
Admin Control Panel

Image
A Custom Banned message

Image
The standard message

Image
The Ban list (contrib folder)

Here's the Beta topic.
Last edited by igorw on Mon Nov 06, 2006 12:16 am, edited 3 times in total.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
Saeru
Registered User
Posts: 622
Joined: Sun Feb 19, 2006 5:44 am
Location: Under a pile of PHP code.
Contact:

Post by Saeru »

I will always say that this mod is a god send to my forum :3
This along with the Temp Ban mod is the best thing to come to phpbb! :3
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]

coruscant
Registered User
Posts: 32
Joined: Tue Jul 04, 2006 6:31 pm

Post by coruscant »

can this be installed using EasyMOD?

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

coruscant wrote: can this be installed using EasyMOD?


Sure :)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

Kirsty2
Registered User
Posts: 320
Joined: Wed Jun 14, 2006 4:08 am

Post by Kirsty2 »

You can specify a reason for each individual you ban, or you can just change the message for everyone?

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10946
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye »

Kirsty2 wrote: You can specify a reason for each individual you ban, or you can just change the message for everyone?


By the look of it, for each individual :)
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw »

battye is correct, it's for each person. It's only if you ban a username, but that should be enough.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

letsjoy
Registered User
Posts: 8
Joined: Sat May 27, 2006 2:53 pm
Contact:

Post by letsjoy »

ohh thanx :D

fsd
Registered User
Posts: 8
Joined: Fri Jun 02, 2006 2:36 pm

Post by fsd »

looks nice

3wheel
Registered User
Posts: 142
Joined: Fri Apr 21, 2006 5:45 pm

Post by 3wheel »

Ok, I am trying to upload this mod and I am getting an error when I try to ban someone:
Couldn't insert ban_userid info into database

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' (ban_reason) VALUES (86, 'gay')' at line 1

INSERT INTO fasttrackz_banlist (ban_userid), (ban_reason) VALUES (86, 'gay')

Line : 199
File : admin_user_ban.php

I went to the source into the file of admin_user_ban.php and I tried to see what the problem was and it looks fine. In the instructions it says:

#-----[ IN-LINE FIND ]------------------------------------------
#

ban_userid

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#

, ban_reason

but in the admin_user_ban.php file there is no ban_userid its (ban_userid)
and even after I found that, I did it like this:

(ban_userid), ban_reason so it should work fine but I keep getting an error!

User avatar
Saeru
Registered User
Posts: 622
Joined: Sun Feb 19, 2006 5:44 am
Location: Under a pile of PHP code.
Contact:

Post by Saeru »

It should be

ban_userid, ban_reason
not
(ban_userid), ban_reason
why did you put the ()'s around it?
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]

3wheel
Registered User
Posts: 142
Joined: Fri Apr 21, 2006 5:45 pm

Post by 3wheel »

Ok, this is what the whole section is like now, but it still wont work:

$kill_session_sql .= ( ( $kill_session_sql != '' ) ? ' OR ' : '' ) . "session_user_id = " . $user_list[$i];

$sql = "INSERT INTO " . BANLIST_TABLE . " ban_userid, ban_reason
VALUES (" . $user_list[$i] . ", '" . str_replace("\'", "''", $ban_reason) . "')";
if ( !$db->sql_query($sql) )
{


Is that right?

3wheel
Registered User
Posts: 142
Joined: Fri Apr 21, 2006 5:45 pm

Post by 3wheel »

Does anyone know about this because I am need of serious help!!

Post Reply

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