![]() |
Prevent Doubleposting
This is why i really want a Mini-Hack section here, please Chen ;)
What this hack does: When a User posts to 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. This would not be done, if he has an attachment in his new post or the old post is older than 1 hour (you can change this timespan yourself :)) Known bugs: None :) Hope someone can use it, i do :) Believe this hack includes just 1!! codehack. |
sweet. been looking for something like this.
|
Sweet hack!!
Satan |
thanx you 2 :)
ups, have seen one line is double in the attachment, delete one of the eval lines *gg* have corrected it here :) |
Ok thanks:)
Satan |
Cool...
*Runs to install* ;) |
This is great, I'll just modify it a bit to be different per forum.
|
feel free to do so, and please post the modifications here, who know who can use them else :)
|
Excellent hack Xenon, this is truly userful ;)
One request: Can you make it so when the user does double post, and his post is merged with the first post, that on the bottom it will state: Last edited by ... on 06-22-02 at 01:27 PM This would be more useful, because in some ways if a user wants to add-on to their original post by bypassing the "edited by", all they would have to do is double post. This stops them though. |
very nice idea Xenon. :)
May I suggest an improvement? Maybe you can add another query to $action=="newreply" section to check if he is the last poster to the thread. If he is, he can be pre-warned in the screen he writes his message that his last message will be replaced with this one. This will add an extra query to newreply.php but it can save the user from losing his last message in the thread especially when the hack is new in the board. |
All times are GMT. The time now is 08:11 PM. |
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:
|