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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Prevent Double posts!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

slemieux
Junior Member

USA
234 Posts

Posted - 04 January 2001 :  11:46:04  Show Profile
Got this off www.dynamicdrive.com to try to cut down on duplicate posts. Thought it might be useful for someone.


In Post.asp
Find:
<form action="post_info.asp" method="post" name="PostTopic">



Replace with this:
<script>

/*
Submit Once form validation-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}
</script>
<form action="post_info.asp" method="post" name="PostTopic" onSubmit="submitonce(this)">




Scott LeMieux
Ready... Fire... Aim!! <img src="http://www.thepercussionist.com/adf/dance2.gif" border=0>

Edited by - slemieux on 04 January 2001 11:47:29

Capt_Dunzell
Junior Member

USA
160 Posts

Posted - 04 January 2001 :  12:38:22  Show Profile  Visit Capt_Dunzell's Homepage
Is there a way to make this similar to the flood control of the UBB.

I would very much like to see or figure out how to do this. In the UBB the flood control only applies to members. Moderators and Administrators are not affected by it. I ran a UBB for a friends site for a while, and it came in very handy at times to not be bound by it when you had members causing problems.

http://www.dunzellsden.com/forum/
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 05 January 2001 :  00:01:48  Show Profile
Hey Slemieux,
Da_Stimulator had posted this already:
http://forum.snitz.com/forum/link.asp?TOPIC_ID=1788

But the post needs to be fixed cause of the javascript.

<center><font color=green>*----*----*----*----*----*----*----*----*
<font size=2>"To Get To Heaven,
It's Who You Know That Counts."</font id=size2>
*----*----*----*----*----*----*----*----*</font id=green></center>
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 05 January 2001 :  00:24:49  Show Profile
The code at that post has been fixed.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20587 Posts

Posted - 05 January 2001 :  03:13:21  Show Profile  Visit HuwR's Homepage
I addded a mod here
http://forum.snitz.com/forum/link.asp?TOPIC_ID=2776
it adds a delay between allowing posts, so you have to wait before you can post again

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

slemieux
Junior Member

USA
234 Posts

Posted - 05 January 2001 :  16:20:37  Show Profile
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hey Slemieux,
Da_Stimulator had posted this already:
http://forum.snitz.com/forum/link.asp?TOPIC_ID=1788
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

lol I must have been asleep <img src=icon_smile.gif border=0 align=middle>

Scott LeMieux
Ready... Fire... Aim!! <img src="http://www.thepercussionist.com/adf/dance2.gif" border=0>
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.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07