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)
 MOD : Stopping double-posters
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

masterao
Senior Member

Sweden
1678 Posts

Posted - 26 November 2004 :  05:22:30  Show Profile  Visit masterao's Homepage
quote:
Originally posted by laser

In reality, they are still the lastpostauthor because if you click on the "jump to last post" link then you will go to their editted message (even if it's page 1 of a 10 page thread).



I know, although I didn't think of that when I added the mod.

quote:
Originally posted by laser

You could change the code to work the way you want, but I'll leave that for someone else to do. Good to see this mod getting a bit of mileage as well



I'll see if I can find a solution to it. I think it would require a new field in the reply table, but I'll see what I come up with.

Thanks for a great mod, laser .

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

CmptrDude1
Starting Member

6 Posts

Posted - 26 November 2004 :  20:11:48  Show Profile
quote:
Originally posted by dayve

CmptrDude1, I guess you missed my post that was done 18 mintues prior

You should use strForumTimeAdjust and not Date() & " " & Time(). Some people have their forums time zones set differently.


I saw your post shortly after... I was working on writing the code when you posted. Oh well, gave me a little practice. I did notice the strForumTimeAdjust and have updated the code on my site. Thanks!
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 26 November 2004 :  20:53:35  Show Profile
After some comments from my moderators, I made a similar change to allow Admin's & Mod's to be able to double-post. Sorta like CmptrDude1's but a bit more elegant :


If MemberID = rs("T_LAST_POST_AUTHOR") and mLev < 3 Then
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 26 November 2004 :  23:13:35  Show Profile  Visit dayve's Homepage
quote:
Originally posted by laser

After some comments from my moderators, I made a similar change to allow Admin's & Mod's to be able to double-post. Sorta like CmptrDude1's but a bit more elegant :


If MemberID = rs("T_LAST_POST_AUTHOR") and mLev < 3 Then



actually this is not more elegant because there is no reason to hit the database if you're going to allow a moderator to consecutively post. I think the way I posted it is the best for necessary database hits.

Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 27 November 2004 :  02:14:01  Show Profile
Fair enough dayve, but I still prefer the single condition
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 02 December 2004 :  17:22:31  Show Profile  Visit dayve's Homepage
After someone pointed out how frustrated they were after typing a long post and being given a message that they were not allowed to consecutively post I got to thinking that this bit of code may be suited best to be place in post.asp and not post_info.asp. This way they will be given the message before even typing one character.

post.asp

		case "Reply", "ReplyQuote", "TopicQuote"
			if ((blnCStatus = 0) or (blnFStatus = 0) or (blnTStatus = 0)) and (AdminAllowed = 0) then
				Go_Result "You have attempted to Reply to a Locked Topic"
			end if
			If Not (mLev = 4) or (mLev = 3) Then
			 strSql = "SELECT T_LAST_POST_AUTHOR, T_LAST_POST "
			 strSql = strSql & " FROM " & strActivePrefix & "TOPICS "
			 strSql = strSql & " WHERE TOPIC_ID = " & strRqTopicID
			  set rs = my_Conn.Execute (strSql)
			   LastPostTime = datediff("n",ChkDate(rs("T_LAST_POST"),"",true),strForumTimeAdjust)
			    If MemberID = rs("T_LAST_POST_AUTHOR") and LastPostTime < 30 Then
			      Go_Result "You have attempted to make consecutive replies, please just edit your last post on this thread "
			    end if		
			  rs.Close
			  set rs = nothing
			end if


I am also going to make the necessary changes to prevent a previously edited post from stopping a non-consecutive post.

Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 02 December 2004 :  18:18:51  Show Profile  Visit masterao's Homepage
Good thinking, Dayve.

For full effect, this should also be added to the quickreply sub in topic.asp , given that it is possible to post from there too if the feature is activated.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

samyot
Junior Member

Canada
242 Posts

Posted - 12 January 2005 :  11:12:33  Show Profile  Visit samyot's Homepage  Send samyot a Yahoo! Message
Just wondering what this does different than the flood control option?

Sylvain Amyot
Forum | Home

MY OTHER SITES:
http://www.mypcsecurity.ca
http://www.mynature.ca
http://www.myworkshop.ca
http://www.toptechsites.com
http://www.topsportsites.com
http://www.mysportsforums.net
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 12 January 2005 :  13:35:43  Show Profile  Visit dayve's Homepage
quote:
Originally posted by samyot

Just wondering what this does different than the flood control option?


it does not allow consecutive posts within a thread (within a certain amount of time).

flood prevention allows consecutive posts to be made after a small period of time.

Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 13 January 2005 :  06:11:01  Show Profile
Cheers, laser & dayve - this will come in very handy Have bookmarked it so I can come back to it when I have a bit more time, maybe take a look at the editing issue while I'm at it.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

keng38
New Member

United Kingdom
80 Posts

Posted - 07 February 2005 :  12:22:21  Show Profile  Visit keng38's Homepage
How do you add this code into the topic.asp quick reply part?
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.58 seconds. Powered By: Snitz Forums 2000 Version 3.4.07