in inc_functions.asp find this:
elseif fField_Type = "message" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
change it to look like this:
elseif fField_Type = "message" then
if strAllowHTML <> "1" then
fString = HTMLEncode(fString)
end if
if strBadWordFilter = 1 then
fString = chkBadWords(fString)
end if
Then do a search for this function:
function chkBadWords(fString)
and add the following code just above it:
function chkNameBadWords(fString)
bwords = split(strBadWords, "|")
for i = 0 to ubound(bwords)
if instr(fString, bwords(i)) <> 0 then
Err_Msg = Err_Msg & "<li>Username may not contain the word <b>" & bwords(i) & "</b></li>"
exit function
end if
next
end function
now, in register.asp
find this code:
if (Instr(Request.Form("Name"), ">") > 0 ) or (Instr(Request.Form("Name"), "<") > 0) then
Err_Msg = Err_Msg & "<li> > and < are not allowed in the UserName, Please Choose Another</li>"
end if
and add the following code just above it:
if strBadWordFilter = 1 then
chkNameBadWords(Request.Form("Name"))
end if