![]() |
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.
This will be done until the old post is older than 24 hours (you can change this timespan yourself:)) Nothing more to say about that, it's the quite same as my vb3.0 version. This Mod should run with 3.6 as well ** Please make sure you ENABLE this product after you install it - it is disabled by default. ** For vb 3.8 there are two alternative updates ; https://vborg.vbsupport.ru/showthread.php?t=203705 https://vborg.vbsupport.ru/showthread.php?t=204177 |
No hook for this yet? ;)
Well, I'll give it a shot. Just curious though, what it the "not crucial" bug? ;) EDIT: How do we allow Admins to bypass it? |
I somewhat doubt anyone except vBorg has functions ismod() and is_hack_forum() ;)
|
damn ^^
|
Maybe I should wait until those are taken out? ;)
|
already done ;)
well you see which boar i used as testboard ^^ |
Quote:
|
Ahhh, ok. That can wait. What about the admin bypass? ;)
|
Quote:
|
Yay :D I'll use this as soon as some of the other hacks are ported over.
[high]* Dan clicks install[/high] |
Hmm, I think i'll play around a bit with this when I got time ... want this a Plugin only :)
|
oh, on my side i have added :
$vbulletin->options['doublepost_automerge_timespan'] = number of minutes prefered $vbphrase[posting_doublepost_msg] = Automerge Double Posting ... good to have if you don't like to edit your hacks all the time! permission would be good too... "bypass per usergroup.." ;) ... and per forum... anyway, i'm god, i can do that myself.. lol |
Quote:
PHP Code:
|
Yay I have been waiting for this thanks man! :D
|
@Bob: it's
PHP Code:
and right now it is not possible as plugin only without adding a bunch of code, and i admit i was too lazy to do so ;) |
Thank you, sir. ;)
You got the right idea, Stefan. Make the boar you used as a testboard do the plug-in. LOL |
ok, i'll be VERY generous here, and release a hack already for this tool...
a Per Forum Activation of the Automerge... i add the prod in the html tag here... to set Per Forum if the Automerge is active or not, and here is the modification for the hack itself: in the hack, FIND: PHP Code:
PHP Code:
HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?> |
This is what I get when I click on your xml link. What gives, buddy? LOL
Quote:
|
Quote:
post updated... |
Quote:
|
Quote:
|
Quote:
|
I've had some of those Default 1's turn out to be off before. That's why I was checking. ;)
It should be on by default, so we are all set then. Although I would never see a reason to turn it off for a forum, but maybe that's just me. ;) |
lool, an addon for a betaversion of a modification of a software which is in RC state ^^
thx nexialsys :) |
Quote:
|
Well, I'll be the first to complain I guess ;) When someone uses the Quick Reply box with AJAX you see the "Please wait.." text for a second or what and then nothing happens; no refresh or anything so you don't see the text being added - which will cause more double posting (tries) most likely ;)
|
Quote:
To stay on topic, glad to see this ported. ^^ |
Quote:
right now it dosn't work on the vb.org testboard, but i'll look at it when i enable it :) |
Have been excited for this one. Thansk for getting it going Xenon! :)
I will probably wait to see if it can be done as a plugin though, or at least until some AJAX and other bugs are sorted. :) *rests finger over the install button and rubs, but doesn't quite press yet* lol |
kind of a show stopper if the behaviour exibited using quick reply is as stated
dont think theres a way around it. stuff like edited by is a known limitation of ajax that requires a page refresh |
Quote:
|
yeah, i have to look at the ajaxprocess, so it updates the last post instead of just doing nothing until a reload.
the hack itself works as designed, just Ajax doesn'T ^^ |
for the ajax thing, it's kinda tricky... the quick-reply have to be interacting with the Edit ajax of the last post if you are the author of that one, so if you post from the quick-reply, it will be connected to the EDIT of the last post you've made instead of posting a new one with the quick-reply ajax...
the problem with that situation, or at least the logic behind a problem, is that if someone else posts when you use the quick-reply, your post will be merged with your last post, even if someone posted between the two... logic applyed tell that it's not a problem, because if you use the quick-reply, you don't know if someone else reply afterward, so you don't actually reply to that last one... someone is lost here?! ;) |
i'll see with what i can come up :)
|
vBulletin should just have a function built in to autoban doubleposters. That would make everything so much easier for us all! lol
|
autoban doubleposters ?!... i think you did not quite understood the goal of this hack... but anyway...
|
Quote:
|
Definatly keeping an eye on this one :)
|
I fixed the AJAX process by adding..
Code:
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p=$id"; You need to add a new phrase "redirect_automerged" too. edit: It works but is printing the message twice. |
Working for gold?
|
All times are GMT. The time now is 06:28 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:
|