UBB.Dev
Posted By: qasic [6.0x] NickBan v0.04 [ Finished ] - 04/14/2001 6:28 AM
Name: NickBan v0.04

Credits: qasic

Description: Stops certain words to be used in nicks. This is controllable via the "Ban Lists" option in the Control Panel.

Update Description: Fixed blank screen bug (thx Blackhawk)

Requirements: UBB v6.04b, Modification Wordlet Module

Download: http://www.qasic.com/ubbhacks.html
Posted By: Matt Jacob Re: [6.0x] NickBan v0.04 [ Finished ] - 04/19/2001 3:47 AM
A nice hack that I didn't see before. Thanks!
Posted By: AllenAyres Re: [6.0x] NickBan v0.04 [ Finished ] - 04/19/2001 5:04 AM
Yes, I need to install this here... wink
Posted By: KodoSan Re: [6.0x] NickBan v0.04 [ Finished ] - 04/19/2001 8:25 PM
I haven't taken a look at this yet..so I don't know if this is a good question to ask, But, would it possible to tie this ban list into your censor?
Posted By: Blackhawk Re: [6.0x] NickBan v0.04 [ Finished ] - 04/21/2001 10:26 PM
There seems to be a problem with NickBan, at least with version 6.04. In the check_name_bans function, you have this:
Code
code:
The problem is that if someone enters an invalid nick during registration, no HTTP header is written out, so the user is given a download dialog. It looks like you need to modify it to this:
Code
code:
Once I made this change, it worked as expected, displaying an error to the user that their nick was invalid and to go back and try again.
Posted By: qasic Re: [6.0x] NickBan v0.04 [ Finished ] - 04/22/2001 6:36 AM
Yeah, that looks about right.

Added to check list.

q
Posted By: qasic Re: [6.0x] NickBan v0.04 [ Finished ] - 04/24/2001 5:55 AM
Hack Updated.

q
Posted By: AllenAyres Re: [6.0x] NickBan v0.04 [ Finished ] - 04/24/2001 10:27 PM
Hey q, I installed it, muchas gracias... can it work similar to the censor list in that if you type in something like "skee" wink it'll ban any name that trys to register with that group of letters in it anywhere?
Posted By: qasic Re: [6.0x] NickBan v0.04 [ Finished ] - 06/20/2001 6:43 AM
Text file updated to fix fatal error involved when registering under a banned nick. Text file updated on my website.

Users don't need to upgrade unless experiencing a problem.

Inside ubb_lib.cgi

find:

sub check_name_bans {
# parameter:
#$_[0] : name to check

local(@name_ban_list, $banname);

#Check Name Ban List--
if (-e "$vars_config{NonCGIPath}/BanLists/NameBan.cgi") {
@name_ban_list = &OpenFileAsArray("$vars_config{NonCGIPath}/BanLists/NameBan.cgi");
}

if ($name_ban_list[0] ne '') {
CheckBanList: for $banname(@name_ban_list) {
chomp($banname);
$banname =~ s/^s//g; $banname =~ s/s$//g;
if ($_[0] =~ /$banname/i) {
print (
-charset => "$masterCharset",
-type => "text/html"
);
&StandardHTML("$_[0]: $vars_wordlets_mods{nickban_bad_nick}");
last CheckBanList;
} # end if ($_[0] =~ /$banname/i) {
} # end for $banname(@name_ban_list) {
}

} #end sub check_name_bans


and remove:

print (
-charset => "$masterCharset",
-type => "text/html"
);


qasic
Posted By: Brett Re: [6.0x] NickBan v0.04 [ Finished ] - 06/21/2001 3:11 AM
A thousand thanks qasic. That fixed the problem.
Posted By: lurili Re: [6.0x] NickBan v0.04 [ Finished ] - 06/21/2001 5:43 PM
q, I downloaded the .shw NickBan file. Just curious, is the same as version 0.04 or 0.02, as I think it states, or is the 0.02 just the shw files version? confused
Posted By: qasic Re: [6.0x] NickBan v0.04 [ Finished ] - 06/21/2001 9:53 PM
Play it safe and manually hack it in.

qasic
Posted By: overflow Re: [6.0x] NickBan v0.04 [ Finished ] - 09/02/2001 7:25 AM
I think i found a bug in this hack.
it work perfectly if i ty to ban normal name
but when i try to ban name like : ** or =- anyway any strange symbol i get this error when someone try to register using for example: **Name**

Quote
quote:
HOpe someone find a solution to this problem smile
Posted By: gbboy Re: [6.0x] NickBan v0.04 [ Finished ] - 09/02/2001 8:04 AM
Sweet. I need this hack.
Posted By: overflow Re: [6.0x] NickBan v0.04 [ Finished ] - 09/02/2001 3:35 PM
A part of the problem mentioned above can i ban for example "ch" or any combination of letter so that would censor all name contaaining ch
like: chato ?

Can't wait for advice on the problem and this.
Posted By: Brett Re: [6.0x] NickBan v0.04 [ Finished ] - 09/09/2001 6:35 AM
Hey qasic, can you put the link back on your site please? I wonna try and adapt it to 6.1. Thanks
Posted By: qasic Re: [6.0x] NickBan v0.04 [ Finished ] - 09/10/2001 2:47 AM
See https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=30&t=000052 for UBB 6.1 version.

qasic
Posted By: RandyM Re: [6.0x] NickBan v0.04 [ Finished ] - 09/10/2001 5:34 AM
I don't see this in your hacks area Qasic. Is it only available for 6.1 now? Can i get this from somewhere else?
Posted By: RandyM Re: [6.0x] NickBan v0.04 [ Finished ] - 09/14/2001 1:18 AM
Should I take this as a "no"?

Does anyone else have this hack for 6.0x?
Posted By: qasic Re: [6.0x] NickBan v0.04 [ Finished ] - 09/14/2001 6:55 AM
Xpert,

It's still available but I just didn't put it up. E-mail me and I'll e-mail it to you.

qasci
Posted By: cataroma Re: [6.0x] NickBan v0.04 [ Finished ] - 12/11/2001 7:41 PM
qasic...

would u please email me the 6.05 version

[email protected]
© UBB.Developers