![]() |
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. |
Ya that seems like a great feature. Both of them.
|
When someone double posts does it bring the post back to the top of the Forum Display?
|
No, the post will stay in its original position.
|
Well how can you make it so that it goes back to the top. Wouldnt that make more sense? Can you please tell me how that can be done. Because what if someone wants to bump a topic that is far away down the Forum Display? Thanks
|
There is a bump hack somewhere as I recall...
find it, install it, use it ;) |
Nice hack Xenon. Little but usefull.
|
@Velocd: Ok, will do so :)
@Logician: Sorry, you have missunderstood something: The old post won't be deleted, it would just became longer :) @BigJonson: That's why theres also a timestamp in it, if the lastpost has been a long time ago then a real new post is put to the end of the thread, so it became bumped |
Velocd: i have updated the installation file, now it should add an edited by message :)
|
Nope the txt file is not updated. No chages were made.
|
???
it is, have just looked in it and it is updated. $editsql="";.... if this line is in it it is updated, and as i can see here it is |
How about adding an Edit Reason, too (Like Firefly's Edit Reason hack)? That way we will know that they added to the message instead of just editing it. :)
Quote:
|
Ya can there be somewhere where it would say DOUBLE POSTING FEATURE and then under that it would show the message instead of just having a Break in the post and then the new edited message.
|
Can you show the update. Maybe it has somehting to do with the cache. This is all i see
PHP Code:
|
Normally you can simply add this for yourself.
I won't add it to the hack because it's no standart in vb, so who hasn't installed chens hack would get an error. I haven't installed chens hack so i don't know exactly how it works, but as i think adding one line and changing one should be enough |
bump. we both posted at the same time hehe.
|
@Big: hmm, must have something to do with the cache thats what i have in the attachment:
PHP Code:
Quote:
replace the \n\n with whatever you want |
O thanks so much worked amazingly well.
|
amazing someone finally made this hack Oo... i had this like 4 month ago funny. Nice job.
|
:)
and i has also wondered why no one has made that already ;) |
I'm not finding this:
PHP Code:
PHP Code:
|
hmm, which version of vb are you using?
try just change the $title in $subject in my replacements and implement it. |
Nice hack..... Thanks ;)
|
I'm finding the same as X-Fan. We should change $subject to $title?
|
no change the $title in my instructions into $subject :)
i think it should work, but i don't really know, here at my files its $title :) |
To change the time that the post would be new "new" instead of added to, is this the line that needs to be changed?
PHP Code:
|
Well I don't really want to go installing a hack and changing a string value if noone is certain that it will work or not!
Can someone please check it first on a test board to make sure that changing $title to $subject works? |
@Smothie yes :)
@X-Fan: just make a backup of your newreply.php, if it doesn't work, you can upload your backup agin without any problems. tell me what vb-version you use, because i couldn't find $subject in my newreply.php (except of the one which is used to send email to mods) |
I'm using v2.2.5 if that helps any.
|
arg, problems on this server now, can't acces to page 2 anymore....
hmm, i also use v2.2.5. this is the part of the original file: PHP Code:
just replace evere $title in my hack with $subject. but i'm wondering why you have differen files then. |
I've got that in my newreply.php as well. My board is a heavily-hacked one, so I'm wondering if it may be another hack that has changed that line?
|
All times are GMT. The time now is 01:40 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:
|