Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
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

Sponsored Links
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
A nice hack that I didn't see before. Thanks!

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Yes, I need to install this here... wink


- Allen wavey
- What Drives You?
Joined: Sep 2000
Posts: 49
Member
Member
Offline
Joined: Sep 2000
Posts: 49
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?

Joined: Apr 2001
Posts: 7
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 7
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.

Sponsored Links
Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Yeah, that looks about right.

Added to check list.

q

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Hack Updated.

q

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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?


- Allen wavey
- What Drives You?
Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
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

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
A thousand thanks qasic. That fixed the problem.

Sponsored Links
Joined: Jun 2001
Posts: 38
Member
Member
Offline
Joined: Jun 2001
Posts: 38
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

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
Play it safe and manually hack it in.

qasic

Joined: Aug 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 14
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

Joined: Feb 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 16
Sweet. I need this hack.

Joined: Aug 2001
Posts: 14
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 14
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.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Hey qasic, can you put the link back on your site please? I wonna try and adapt it to 6.1. Thanks

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
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?

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Should I take this as a "no"?

Does anyone else have this hack for 6.0x?

Joined: Jan 2001
Posts: 1,940
Developer
Developer
Offline
Joined: Jan 2001
Posts: 1,940
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

Joined: Nov 2001
Posts: 16
Junior Member
Junior Member
Offline
Joined: Nov 2001
Posts: 16
qasic...

would u please email me the 6.05 version

[email protected]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)