Author |
Topic  |
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 26 November 2004 : 05:22:30
|
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 |
 |
|
CmptrDude1
Starting Member
6 Posts |
Posted - 26 November 2004 : 20:11:48
|
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! |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 26 November 2004 : 20:53:35
|
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
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 26 November 2004 : 23:13:35
|
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. |
|
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 27 November 2004 : 02:14:01
|
Fair enough dayve, but I still prefer the single condition  |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 02 December 2004 : 17:22:31
|
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. |
|
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 02 December 2004 : 18:18:51
|
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 |
 |
|
samyot
Junior Member
 
Canada
242 Posts |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 12 January 2005 : 13:35:43
|
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. |
|
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 13 January 2005 : 06:11:01
|
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.” |
 |
|
keng38
New Member

United Kingdom
80 Posts |
Posted - 07 February 2005 : 12:22:21
|
How do you add this code into the topic.asp quick reply part? |
 |
|
Topic  |
|