![]() |
Prevent Doubleposting
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. |
Oh yes! I've been waiting for this one. Thanks a lot!
|
Quote:
|
I'm about to check this myself but one of my admins made the following observation: "if you post, then someone else does, it adds you next post to your post two above".
EDIT: Yep! I notice that too. I'm going to install it afresh just in case... EDIT 2: Yeah, still a problem. |
Thanks for releasing this! I'm going to wait until that issue Zelda-King mentioned has been resolved before I install.
|
Quote:
I added this code and after that it works fine. I don't know yet if there is a better way to do it. Code:
// delete the parsed post |
gahh, didn't think of the parsecache.
ok, both little bugs have been fixed. |
Quote:
$tpye != 'thread' isn't it $type != 'thread' ? :) |
:p
i guess you are right ;) well it doesn't change anything, it is just to optimize it a bit ;) |
thanks xenon, this was a must have for my community :D you're awesome :D
|
Installed the fixed version. Seems fine now. Thanks for the promptness! :)
|
[high]* Koutaru installs!
[/high] Thanks for porting it over :) |
:) that's why i'm here
|
Great work. Been waiting for this one :) Install has been clicked
|
Great hack! :) *clicks install*
|
Nice job Xenon
INSTALLS |
I have a question: where would I change the time before people can double-post?
And is it possible to make it so people can NEVER double post, or at least not for a really long time - like a month, or even a year? Edit: I think I fixed it, just by deleting: Quote:
|
There are a couple of bugs in this hack that will cause a mysql error on forums with table prefixes in their database.
To fix [FIXES APPLIED] |
Thx, i've applied the fixes.
seems i forgot a prefix in one of my queries ;) btw. i edited tyour post, as i want to keep that thread clean, and two screen posts don't help there :) |
Excellent as always Xenon, thanks.
|
I hope this isn't a dumb question... But I just want to make certain I understand this correctly...
This hack is to prevent a user from posting back-to-back messages, correct? And if they do, are they sent anywhere that they are told anything? (ie "doubleposting is turned off, please edit your previous post if you would like to add to your statement, or wait for someone to respond) If not, It would be a really nice thing to be able to turn it on and off in the admin cp, as well as set a message for users... Thank you. |
If you doublepost, the doublepost is inserted into the previous post as an edit. Thereby, it counts as an edit on a new line rather than as a new post.
|
I installed it and it works.
I have a question, however. When someone double posts within an hour, how would I make "DOUBLE POST" appear above the second post IE: Bob: Hello Double Post How are you |
Quote:
PHP Code:
Code:
SET pagetext = '" . addslashes($doublepost['pagetext'] . "\n\n" . $post['message']) . "', Code:
SET pagetext = '" . addslashes($doublepost['pagetext'] . "\n\n<b>Double Post</b>\n\n" . $post['message']) . "', Satan |
instead of <b> you have to use [b] but the rest is correct :)
|
One of my moderators just brought this to my attention. Is it possible to have the query which updates a post in the case of a doublepost to also update the post dateline so that users are aware there is new content?
|
Not sure if it's already a feature, but I've managed to edit the code to do this. If anyone wants it, it's fairly simple.
|
i will add it to the next version.
be sure you also update the thread/forum's lastpost info if you change the dateline :) |
Quote:
|
infact...I've changed my mind......that is by FAR the greatest hack Ive ever...EVER seen! Well dont lad! Its saved me no end!
|
Thanks, that worked.
|
Quote:
Oh that's GENIUS. I'm installing this one for sure after the next release... Genius, I tell you... |
I've uploaded a new version.
Now there is a variable included so you can define yourself, wether the post's date will be altered or not :) |
I think one of my users has spotted a bug. If someone posts, then deletes their post, then posts again then the new text is appended to a deleted post, and thus it's not visible. Is there something you can add in to check if the post it is about to be added to is deleted or not?
|
d'oh.
yesterday i reported a quite similar vb3 bug and now i made it myself.... thx, i've fixed it :) |
I've already installed it, and I'd rather not do the whole thing over again, so could you tell me what needs to be changed to fix that error?
|
it's just the very first query:
PHP Code:
|
Ahh nice... I believe I'll install this. Beats macgyvering one up on my own. :p
|
This is a DIVINE one ! thanx
|
I've just got round to installing this one and I love it, such a simple idea, yet so usefull. Something I should have added to my board along time ago ;)
|
All times are GMT. The time now is 01:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|