Version: 1.6, by Xenon
Developer Last Online: Oct 2023
Version: 3.0.6
Rating:
Released: 01-07-2004
Last Update: 02-05-2005
Installs: 288
Code Changes
No support by the author.
When a User posts into a thread where he already has the lastpost, no new post will be added. The lastpost of him will be edited and the new text is put after his first message, attachments will be added to the old post as well.
This will be done until the old post is older than 1 hour (you can change this timespan yourself)
by changing $do_bump in the script, you can define wether the post's time will be altered or not.
Enjoy, and don't forget to click install
Notice: If you have installed the Proxy ip to real ip conversion or Proxy Detector v3.1 Hack, then you should probably take a look at this post.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
@Xenon
It seems like this hack does provide some kind of "backdoor": It allows the user to add more images to his post then he would normally be allowed to have.
Furthermore, it seems like this adds a query whenever a new reply is posted.
What about adding $threadinfo['lastposter'] == $bbuserinfo['username'] to the condition before $doublepost = ...?
As this evaluates to false if there is no double post (and thus the whole term will be false) it's not necessary to continue evaluating the query, or am I wrong?
@Kirby: hmm, right, the backdoor is possible, will have to take a look at it...
As for the second part. yes, you can avoid the query in the if clause, by that, but you will still need the query when you update the post later (because of deleting the postindex, updating the pagetext...
Also as we have had some problems sometimes, when the lastposter cache isn't correctly or something like, then the string compare would resolve incorrectly.
I think it doesn't matter that much, but i'll consider it when i have the time to look through all of my hacks soon
It now checks if the new post is valid regarding the settings (max images/ max characters...)
If it is, then it will merge the post, if it's not, then the new post will be a true doublepost.
I did it that way, because the limit will appear when doing an edit on a merged post otherwise.
Also i have removed a bit overhead of the code.
My test worked well, but i consider it as RC, until some of you can confirm they don't have problems (there shouldn't be, but you cannot be too sure )
my question and forgive me if it was mentioned before, what if a user clicks the Quick Reply icon to replay to the first post and clicked it again to replay lets say to the 3rd post in there and clicked again to reply to the 6th reply in there, would this hack merge all 3 posts as you see there seperate replies