Print Page | Close Window

Mod Req: Anti-Bump Protection

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19447
Printed Date: 29 March 2026 at 5:17am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Mod Req: Anti-Bump Protection
Posted By: thataintchicken
Subject: Mod Req: Anti-Bump Protection
Date Posted: 20 April 2006 at 7:44am

I would like for there to be a way to keep people from posting twice in a row in a topic. If someone has already posted, I would like them to be presented with a message saying something similar to the following:

You are not allowed to create bump posts. Please wait until someone replies to the thread, or edit your last post to include additional information.
 
If you decide to do this, good luck to you.


-------------
"I not only use all of the brains I have, but all I can borrow."
    --Woodrow Wilson, 28th President of the United States



Replies:
Posted By: javi712
Date Posted: 20 April 2006 at 1:23pm
I second this. A lot of people like to make extra unecessary posts when it all could have gone on just one.


Posted By: Mikey
Date Posted: 20 April 2006 at 9:39pm
Yeah i third that one, bloody good idea. I guess it would be as simple as checking the last post in that thread and making sure the usernames don't match.

I'll have a look but i don't think this is something i could do.


-------------
Handyman man?


Posted By: MadDog
Date Posted: 20 April 2006 at 9:55pm
i 4th this idea!

-------------
http://www.iportalx.net" rel="nofollow">


Posted By: psycotik
Date Posted: 21 April 2006 at 2:06am
bump!


Posted By: WebmasterFF
Date Posted: 21 April 2006 at 12:53pm
I fifth this. I hate it when people double/triple post just to boost their post count up by putting either something meaningless, or sommat that could have been edited into the last post


Posted By: Mikey
Date Posted: 21 April 2006 at 4:37pm
I did try to get this working but my head hurts an it looks like one of the good coders will have to give it a go.

What i was trying to do was get the author ID of the previous post and if it was the same as the post the user is trying to post then sending them to an error page stating that they 'cannot post bump posts'

I know the word 'post' comes up alot in that sentance but i hope you all understand what i mean lolLOL


-------------
Handyman man?


Posted By: GuidingLight
Date Posted: 29 April 2006 at 4:58am

Is there any news or progress for this mod at all?



Posted By: venki
Date Posted: 29 April 2006 at 4:17pm

in file new_post.asp at line 534 you will find this code

'******************************************
'***       Anti-spam Check  ***
'******************************************
 
and ADD this code after this code (add it at line 537)
 
'Mod by Venky, http://venki.somee.com - http://venki.somee.com , mailto:hrvojevencl@gmail.com - hrvojevencl@gmail.com
strSQL = "SELECT "
If strDatabaseType = "SQLServer" OR strDatabaseType = "Access" Then
 strSQL = strSQL & "TOP 1"
End If
strSQL = strSQL & " " & strDbTable & "Thread.Author_ID " & _
"FROM " & strDbTable & "Thread " & strDBNoLock & " " & _
"WHERE " & strDbTable & "Thread.Topic_ID = " & lngTopicID & " " & _
"ORDER BY " & strDbTable & "Thread.Message_date DESC"
If strDatabaseType = "mySQL" Then
 strSQL = strSQL & " LIMIT 1"
End If
strSQL = strSQL & ";"
'Open the recordset
rsCommon.Open strSQL, adoCon
 if not rsCommon.EOF then
  if rsCommon("Author_ID") = lngLoggedInUserID then strReturnCode = "bump"
 End if
 
'Clean up
rsCommon.Close
then in file not_posted.asp at line 116 you will find this code
 
End If       

REPLACE it whit this code

ElseIf strErrorCode = "bump" Then
 Response.Write("You are not allowed to create bump posts. Please wait until someone replies to the thread, or edit your last post to include additional information.")
End If      
 



Posted By: Mikey
Date Posted: 29 April 2006 at 4:23pm
Good old Venki...
I'll give this a try in a sec and let you know how it goes...

EDIT: Nice one Venki it works a treat with no problems Clap


-------------
Handyman man?


Posted By: GuidingLight
Date Posted: 29 April 2006 at 10:56pm
Thanks Venki, haven't actually got around to trying it yet, but does it allow for admins to double post in case they need update a post such as a news and updates one or can they just edit the original and it will come up in active topics again.


Posted By: nexus
Date Posted: 01 May 2006 at 4:52pm
GREAT SUGGESTION!!
 
I even like this idea so much that I think -Borg (if you're reading this, then listen to us ;)) should consider implementing it in WWF as an official feature :D
 


Posted By: venki
Date Posted: 01 May 2006 at 6:11pm

This MOD will not allow admin duble posts, to allow it for admins use changed code here:

in file new_post.asp at line 534 you will find this code

'******************************************
'***       Anti-spam Check  ***
'******************************************
 
and ADD this code after this code (add it at line 537)
 
'Mod by Venky, http://venki.somee.com/ - http://venki.somee.com , mailto:hrvojevencl@gmail.com - hrvojevencl@gmail.com
if NOT blnAdmin then
strSQL = "SELECT "
If strDatabaseType = "SQLServer" OR strDatabaseType = "Access" Then
 strSQL = strSQL & "TOP 1"
End If
strSQL = strSQL & " " & strDbTable & "Thread.Author_ID " & _
"FROM " & strDbTable & "Thread " & strDBNoLock & " " & _
"WHERE " & strDbTable & "Thread.Topic_ID = " & lngTopicID & " " & _
"ORDER BY " & strDbTable & "Thread.Message_date DESC"
If strDatabaseType = "mySQL" Then
 strSQL = strSQL & " LIMIT 1"
End If
strSQL = strSQL & ";"
'Open the recordset
rsCommon.Open strSQL, adoCon
 if not rsCommon.EOF then
  if rsCommon("Author_ID") = lngLoggedInUserID then strReturnCode = "bump"
 End if
 
'Clean up
rsCommon.Close
End if
 
then in file not_posted.asp at line 116 you will find this code
 
End If       

REPLACE it whit this code

ElseIf strErrorCode = "bump" Then
 Response.Write("You are not allowed to create bump posts. Please wait until someone replies to the thread, or edit your last post to include additional information.")
End If    


Posted By: wistex
Date Posted: 03 May 2006 at 2:51am
Originally posted by psycotik psycotik wrote:

bump!

LOL


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: aks427
Date Posted: 06 May 2006 at 2:49am

Only if it was in the forum permissions with all the other ones (Post, Edit, Delete, Calendar Event, etc), otherwise it would grow into too much of a pain.



Posted By: venki
Date Posted: 06 May 2006 at 11:21am
That would request new column (Yes/No) in database.


Posted By: skbohler
Date Posted: 24 May 2006 at 10:01pm

Hi Venkie:

Have you thought of creating a mod to create a digest of posts like this one a person made for phpBB?

http://www.phpbb.com/phpBB/viewtopic.php?t=112451 - http://www.phpbb.com/phpBB/viewtopic.php?t=112451

I'm in desperate need of that functionality and I figured you were the person that could get it done.

Let me know your thoughts.

Steve




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net