|
Joined: Jan 2001
Posts: 1,940
Developer
|
Developer
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
|
|
|
|
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... 
|
|
|
|
Joined: Sep 2000
Posts: 49
Member
|
Member
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
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: 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: 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.
|
|
|
|
Joined: Jan 2001
Posts: 1,940
Developer
|
Developer
Joined: Jan 2001
Posts: 1,940 |
Yeah, that looks about right.
Added to check list.
q
|
|
|
|
Joined: Jan 2001
Posts: 1,940
Developer
|
Developer
Joined: Jan 2001
Posts: 1,940 |
|
|
|
|
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"  it'll ban any name that trys to register with that group of letters in it anywhere?
|
|
|
|
Joined: Jan 2001
Posts: 1,940
Developer
|
Developer
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
Joined: May 2001
Posts: 1,042 Likes: 7 |
A thousand thanks qasic. That fixed the problem.
|
|
|
|
Joined: Jun 2001
Posts: 38
Member
|
Member
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? 
|
|
|
|
Joined: Jan 2001
Posts: 1,940
Developer
|
Developer
Joined: Jan 2001
Posts: 1,940 |
Play it safe and manually hack it in.
qasic
|
|
|
|
Joined: Aug 2001
Posts: 14
Junior Member
|
Junior Member
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** HOpe someone find a solution to this problem 
|
|
|
|
Joined: Feb 2001
Posts: 16
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 16 |
|
|
|
|
Joined: Aug 2001
Posts: 14
Junior Member
|
Junior Member
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
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
Joined: Jan 2001
Posts: 1,940 |
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
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
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
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
Joined: Nov 2001
Posts: 16 |
qasic... would u please email me the 6.05 version [email protected]
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|