but I'm sure it'll work without any issues; it's fairly simple.... famous last words.
Look for the following lines (appx 1333-1335):
if strSignatures = "1" then
strSql = strSql & " M_SIG = '" & ChkString(Request.Form("Sig"),"message") & "', "
end if
Change them to say:
if strSignatures = "1" then
' ## Anti-Spam Humans Below
If strAntiSpamDays > 0 or strAntiSpamPosts > 0 Then
strSqlP="SELECT M_POSTS, M_DATE FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID=" & MemberID
Set rsP=my_Conn.Execute(strSqlP)
If not rsP.EOF Then
strDays=rsP("M_DATE")
intPosts=rsP("M_POSTS")
rsP.Close
End If
Set rsP=Nothing
If strAntiSpamPosts > 0 Then
If intPosts<strAntiSpamPosts Then
If inStr(ChkString(Request.Form("Sig"),"message"), "http")>0 Then
Go_Result "Not authorized to post links.",0
Response.End
End If
End If
End If
If strAntiSpamDays > 0 Then
intDays=DateDiff("d",StrtoDate(strDays),Now())
If intDays<strAntiSpamDays Then
If inStr(ChkString(Request.Form("Sig"),"message"), "http")>0 Then
Go_Result "Not authorized to post links.",0
Response.End
End If
End If
End If
End If
' ## Anti-Spam Humans Above
strSql = strSql & " M_SIG = '" & ChkString(Request.Form("Sig"),"message") & "', "
end if
If strAntiSpamDays > 0 Then
intDays=DateDiff("d",StrtoDate(strDays),Date(Now))
If intDays<strAntiSpamDays Then
If inStr(txtMessage, "http")>0 Then
Go_Result "Not authorized to post links.",0
Response.End
End If
End If
End If
If strAntiSpamDays > 0 Then
intDays=DateDiff("d",StrtoDate(strDays),Now)
If intDays<strAntiSpamDays Then
If inStr(txtMessage, "http")>0 Then
Go_Result "Not authorized to post links.",0
Response.End
End If
End If
End If
Originally posted by AstralisChange that to say this:Code:intDays=DateDiff("d",StrtoDate(strDays),Now)
intDays=DateDiff("d",StrtoDate(strDays),Now())
If strAntiSpamDays > 0 or strAntiSpamPosts > 0 Then
strSqlP="SELECT M_POSTS, M_DATE FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID=" & MemberID
Set rsP=my_Conn.Execute(strSqlP)
If not rsP.EOF Then
strDays=rsP("M_DATE")
intPosts=rsP("M_POSTS")
rsP.Close
End If
Set rsP=Nothing
If strAntiSpamPosts > 0 Then
If CInt(intPosts)<CInt(intAntiSpamPosts) Then
If inStr(txtMessage, "http")>0 Then
Go_Result fLang(strLangGatekeeper00170),0
Response.End
End If
End If
End If
If strAntiSpamDays > 0 Then
intDays=DateDiff("d",StrtoDate(strDays),Now())
If CInt(intDays)<CInt(intAntiSpamDays) Then
If inStr(txtMessage, "http")>0 Then
Go_Result fLang(strLangGatekeeper00170),0
Response.End
End If
End If
End If
End If
Originally posted by Carefreeconfig_new stores everything as strings and the problem was not only that one. You have two sets of variables with very similar names, the difference being the start of their names: a set starts with str and keeps configuration values (whether the options to check number of posts or number of days since registration are active), the other set keeps the minimum number of days since registration or the minimum number of posts to allow link posting.
Neither M_POSTS nor DateDiff can return anything but integer values, so cInt(intDays) and cInt(intPosts) should not change anything. The other ones I concede LOL. Didn't think about config_new storing them as strings.