Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 60 second delay against spam
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dammitjanet
Starting Member

3 Posts

Posted - 14 March 2001 :  18:36:22  Show Profile
Ive seen when searching for anti-spam mods, an article about installing HuwR's delay. All the posts say look in the Mod Forum With Code, but its not there. Either that or im too dense to see it.

i ask for all posts in the last year and get nothing from before 1st Jan 2001.

can someone please give me a link to the full article, or to the download link please?

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 14 March 2001 :  18:50:20  Show Profile  Visit HuwR's Homepage
I guess you mean this one

If you want to stop people doing multi posts,

Open up post_info.asp and insert this function at the end, just before the closing

%>


function CanUserPost(fTopicID, fMemberID)
lastAllowedPost = DateToStr(DateAdd("n",-1,strForumTimeAdjust))
strSql = "SELECT MAX(R_DATE) AS LASTPOST FROM " & strTablePrefix & "REPLY WHERE "
strSql = strSql & "TOPIC_ID = " & fTopicID & " AND R_AUTHOR = " & fMemberID
rsTmp = my_conn.execute(strSQL)
if rsTmp("LASTPOST") > lastAllowedPost then
CanUserPost = "no"
else
CanUserPost = "yes"
end if
end function


Next look for this code
'## Forum_SQL
strSql = "INSERT INTO " & strTablePrefix & "REPLY "

imediately above the insert statement, put this line of code

if CanUserPost(Request.Form("TOPIC_ID"), rs("MEMBER_ID")) = "yes" then

now scroll down past the updates for the counts until you find

my_Conn.Execute (strSql)

if Err.description <> "" then

change it be

my_Conn.Execute (strSql)
else
Err.description = "You have already posted, please wait 60 secs before reposting"
end if
if Err.description <> "" then



That should do it


It had been archived

Go to Top of Page

dammitjanet
Starting Member

3 Posts

Posted - 14 March 2001 :  19:10:54  Show Profile
Thank you very much, thats exactly what I was looking for.
Go to Top of Page

steve_dj_minton
Starting Member

2 Posts

Posted - 24 March 2001 :  18:26:17  Show Profile
I used the code from HuwR to create a flood control - my isp crashed however and I don't have a backup of the file and I can't for the life of me figure out where to place the code.

Could someone post in-depth instructions, or email to steveminton@lineone.net, or alternatively post/email a link/file??

Thanks in advance
Steve Minton
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07