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.
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.
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 /> }
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.
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*
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 [/]
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
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?
[]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 [/]
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.