Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2004
Posts: 3
Lurker
Lurker
Offline
Joined: Nov 2004
Posts: 3
Mod Name / Version: PreventDoublePosting 0.3b

Description: denied user to make another posting, if his post was last and time $timedoubleposting doesn't go. It just add his message to previous post.

Working Under: UBB.Threads 6.4-6.5

Mod Status: Beta

Any pre-requisites: none

Author(s): NoOne

Date: 11/05/04

Credits: NoOne, Jector

Files Altered:

New Files: http://no1.stsland.ru/ubb/prevent_doubleposting.php.txt

Database Altered:

Info/Instructions: See http://no1.stsland.ru/ubb/prevent_doubleposting.php.txt

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
122591-prevent_doubleposting.php.txt (0 Bytes, 240 downloads)

Sponsored Links
Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Doesn't 6.4-6.5 already prevent double-posting of an identical message/reply?

I know in 6.3 there's the following in addpost.php...

Code
// ----------------------------------------------------------------<br />// Now we need to see if this post has already been made, basically<br />// protects from spamming<br />   $query = "<br />      SELECT B_Number<br />      FROM   {$config['tbprefix']}Posts <br />      WHERE  B_Posterid = '{$user['U_Number']}' <br />      AND    B_Subject  = '$Subject_q' <br />      AND    B_Body     = '$BodySig'<br />      AND    B_Board    = '$Board_q'<br />   ";<br />   $sth = $dbh -> do_query($query);<br />   list($B_Number) = $dbh -> fetch_array($sth);<br />   if ($B_Number) {<br />      $html -> not_right($ubbt_lang['NO_DUPS'],$Cat);<br />   }   



Unless yours has a different purpose?

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
If I understood it correctly, it prevents a user making several subsequent posts in the same thread within a certain timeframe by appending each new post to the last post.

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
If so, that would be a kind of flood control I guess. I dunno, imo it would be messier to append all replies to the same post like that (*unless it only applies to multiple responses made to the SAME POST for any given poster*).

Otherwise if you're replying to one person, the reply might be made to someone else and cause mass confusion after it's appended to the previous post? Made even worse with threaded view.

If I was gonna do that, I would just make them wait before posting at all *shrug*

Joined: Nov 2004
Posts: 3
Lurker
Lurker
Offline
Joined: Nov 2004
Posts: 3
Excuse me for my bad English.
Twisty
There are a lot of people in our forum, who just want to post and post and post a lot of useless messages, and that loads database.
If somebody didn't understand, what is the mod. doing, I give an example:
If one user posted two messages in sequence:
[]
Somebody1 hi
[/]
and
[]
Somebody2 hi
[/]

modification make them to one:
[]
Somebody1 hi

Added after X minutes

Somebody2 hi
[/]

Sponsored Links
Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Ok, but if someone is quickly replying to 2 different posts (as opposed to making 2 new posts) then won't one of their replies be made to the wrong person after it's appended?

If so, then I think it's better to just limit everyone to x-number of posts with x-minutes

Joined: Nov 2004
Posts: 3
Lurker
Lurker
Offline
Joined: Nov 2004
Posts: 3
To say the truth, I don't know the difference between posting and replying... As I see, the messages of replying and posting are the same...
Can you explain the difference?

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
I basically mean starting a new thread versus replying to someone else's post.

Joined: Aug 2004
Posts: 1
Lurker
Lurker
Offline
Joined: Aug 2004
Posts: 1
Fixed version:
- $timedoubleposting is really working
- it update thread's B_Last_Post to show that there are new reply in this thread
Attachments
124091-prevent_doubleposting-04.txt (0 Bytes, 29 downloads)

Joined: Oct 2002
Posts: 64
Power User
Power User
Offline
Joined: Oct 2002
Posts: 64
[]Jacek_FH said:
Fixed version:
- $timedoubleposting is really working
- it update thread's B_Last_Post to show that there are new reply in this thread [/]

thnx

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 443
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 26
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)