This mod enables you to stop users from double posting and bumping/spamming the topic.
It removes Quick Reply if a bump is not allowed, but does NOT remove the 'Reply' buttons, this is intentional and is set up to facilitate users receiving the error message, rather than asking (repeatedly) "Why can't I reply?"
Finally using hooks and no file edits for SMF 2!
Just thought I'd be the first to thank you for making this mod, and also say that it is an excellent addition!
Thank you :).
I just made this based on a request Lol :P
Haha, yeah I remember reading that topic, I'm not sure if I posted something in there or not, but yeah my goal is to get as good at making packages as you and karlbenson :).
Thank you!!
Mod is a very useful!
Translation in Italian:
// Double Post stopper strings
$txt['double_post_attempt'] = 'Mi spiace, non puoi fare post consecutivi, modifica il tuo messaggio precedente!';
$txt['permissionname_doublePost'] = 'Consenti doppio post';
$txt['permissionhelp_doublePost'] = 'Attivandolo permetterà loro di fare post consecutivi.';
$txt['doublePostAdmin_main'] = 'Tempo prima di poter creare un post consecutivo';
$txt['doublePostHelp'] = ' Tempo (in giorni). Un utente non è autorizzato a postare di continuo post consecutivi entro un determinato tempo limite.';
$txt['doublePostAdmin_sub'] = ' È impostato come in Giorni. Fare clic su "?" Se volete maggiori informazioni. Lasciare in bianco per impedire sempre i post consecutivi';
Thank you :). I have added them to the package.
Thanks for the modification. I'm using it :)
Translation in Turkish:
// Double Post stopper strings
$txt['double_post_attempt'] = 'Aynı konuya arka arkaya ikinci bir ileti göndermeye yetkiniz yok. Lütfen geri dönüp önceki iletinizi düzenleyiniz.';
$txt['permissionname_doublePost'] = 'Flood mesajlara izin ver';
$txt['permissionhelp_doublePost'] = 'Bunu seçerseniz flood mesajlara izin vermiş olursunuz.';
$txt['doublePostAdmin_main'] = 'Flood mesaj atabilmek için gereken süre';
$txt['doublePostHelp'] = 'Flood mesajların engelleneceği süre (gün olarak). Kullanıcı belirtilen zaman içinde ikinci bir mesajı gönderemez.';
$txt['doublePostAdmin_sub'] = 'Gün olarak belirlenir. Ayrıntılı bilgi için "?" tıklayınız. Flood mesajları sürekli engellemek istiyorsanız boş bırakınız.';
not sure if it was just me but through package manager i saw it click it and then tried to install it. it would not allow me to do that. i had to download it then upload it again.
otherwise good mod
Looks like it was just you :P
Fantastic! There used to be mod like this, but then it was stopped. Im glad there is a new one :) Great job!
Awesome works great.
Can i ask another mod here?
Ok, no choice :P
Can you do the same for karma system? Doesn't allow to karma the same post twice?!
Thanx. Great job.
I don't know that how does Karma Functions so I am not sure.
But thanks for complement.
@tüякмαѕtєя - I'll Add it as soon as I get my main computer fixed.
@aldo - Glad you liked it :)
I am using the ApolloBB theme. I installed the mod and it works.
It looks normal Admin > Posts and Topics > Topic Settings
I have a ? with a box or days. Seem correct ;)
My Bug or My Eyesite is going. I can not find any reference to Double post in the Admin Permissions by MemberGroup.
Can you tell me where to locate the Double Post in the Admin>Permissions sections?
PS. I also notice that if you try to do an attachement and the board rejects the attachment because it is to large. Double Post will not let you Post even though the post was never completed. Just thought you should know.
Admin > Permissions > <Group>, thats where it should be
And about your second concern, I don't get it? Are you telling that there is a problem there?
Well I am not crazy. Ok, I went back and set the board to the default theme and double post shows up under permissions->Permissionbymembergroup. Under the heading Posts
If I set my board back to apolloBB then there is no box under the heading Posts. Thus the problem has to be with the theme. Any ideas what I would edit?
Regarding second concern. It kinda of a problem, but I don't know if you can fix it. I just thought you should know about it. If you go to post something and lets say your attachment is to big thus the board restricts it. When you go back and change say your attachement and try to post again Double Block blocks it. It thinks the 1st post was successful when in reality it was not. Thus the user now can't post at all. Small problem and I have only had 1 person complain.
Thanks for the reply.
Chuck
F r e n c h t r a n s l a t i o n :
// Double Post stopper strings
$txt['double_post_attempt'] = 'Désolé, tu n\'es pas permis de double-poster. Revient en arrière et edit ton post.';
$txt['permissionname_doublePost'] = 'Peux double-poster';
$txt['permissionhelp_doublePost'] = 'En mettant cette option, l\'utilisateur va avoir la permission de poster deux fois d\'affilée.';
$txt['doublePostAdmin_main'] = 'Temps entre deux posts du même user.';
$txt['doublePostHelp'] = 'Temps ( en jours ) avant que le post ne soit considéré comme un essaie de monter son topic.';
$txt['doublePostAdmin_sub'] = 'Est mits en jours. Cliquez l\'iconne: <img src="images/helptopics.gif" /> pour plus d'infos. Laissez vide pour toujours permettre le double-posting.';
Great, that is what I was looking for :)
Great mod - stops those pesky post-counters in their tracks!
Just one question, does putting 0.5 in the 'Time before the user is not allowed to double post' post+topics/settings field force the mod to use 12 hours rather than 1 day?
Thanks very much
Answered my own question with a small test: using a value of 0.1 days stops duplicate posting for 2 hours and 25 minutes which is exactly what I'm looking for!!!
;D
Nice Mod
Nice work
Thank You
iam translate for pt she work Fine
I have two boards, one of them installed this mod with absolutely no problem and a new installation returns the following error:
Quote
!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Quote
1. Execute Code install.php
2. Execute Modification install.xml Modification parse error
3. Execute Modification - Modification parse error
Anyone got any ideas?
The new board is running 1.1.4 and the packages folder is CHMODed to 777
Make sure the packages directory is chmodded to 777 and got a temp directory in it which also 777
In a guest board where no login is required to post, the mod seems to prevent all replies by anyone within the time limit, presumably because it recognises 'Guest' as the same user every time.
I set the "Allow them to Double Post" in the Guest's permissions but it doesn't seem to work.
Try this
In Post.php
Find
function bumpAttempt() {
And add after
if(allowedTo('doublePost')) return true;
Thanks for the quick reply, but it doesn't work.
I changed ....
<Remainder of this post has been deleted to simplify future reading (it was utter nonsense!)>
No not that, in the beginning of the function bumpAttempt(), not in that "if" clause.
Doh! Sorry about that!!
I made the change as you suggest, but it seems to stop the bespoke user group from making any replies at all.
I changed 'return true' to 'return false' and it works for the bespoke user group who can now double post. It still didn't work for Guests - no guest could reply to any message.
I did some fiddling and eventually got it to work as follows:
Changed
function Post()
{
// Double Post Stopper change - Start
if(bumpAttempt())
fatal_lang_error('double_post_attempt');
// End
global $txt, $scripturl, $topic, $db_prefix, $modSettings, $board, $ID_MEMBER;
global $user_info, $sc, $board_info, $context, $settings, $sourcedir;
global $options, $func, $language;
loadLanguage('Post');
To
function Post()
{
global $txt, $scripturl, $topic, $db_prefix, $modSettings, $board, $ID_MEMBER;
global $user_info, $sc, $board_info, $context, $settings, $sourcedir;
global $options, $func, $language;
loadLanguage('Post');
// Double Post Stopper change - Start
if (!$user_info['is_guest'])
{
if(bumpAttempt())
fatal_lang_error('double_post_attempt');
}
// End
And then repeated the move in function Post2().
I've no idea if this is a robust solution. It's certainly not quite as efficient as LoadLanguage('post') has to be done even if a double post error is then displayed, but at least my guests can reply to other guests posts.
Hm I'll see to it then. I'll try to fix that bug.
Version 1.1 out :)
sorry of thread hijacking but this one is a bit similar to double post stopper.. and i'm not sure if you i pm'ing you is the best way..
will you be able to incorporate or create a mod similiar to double posting only.. for thread/ new topic stopper? i.e
if i wanted to make a new topic called.. NEW TOPIC.. and post it.. and then another person or even me create a post with the same topic line of NEW TOPIC it won't let me do it?
are we able to see an updated version for 1.1.5 please
This works for 1.1.5, Have you tried yet?
Uhm... can you add a 'merge posts' function?
Example:
Jack posts "Hi all! I'm jack." at 8:12 AM. After fifteen minutes, he posts "I like music and videogames".
The result will be:
"Hi all! I'm jack.
I like music and videogames."
Can you do that? :)
Thanks, and congratulations for the great mod.
Linebeck
Works like a charm on SMF 1.1.5 and TP 1.0.5 Beta1 ;D
It works great on 1.1.5 however, if you have the Thank-O-Matic mod (or the other thank you mod) installed, this mod thinks that clicking the thank you button is an actual post.
Is there any way to fix this?
(I found this out when someone had clicked the thank you button and then wanted to also make a reply in the topic - it wouldnt let them)
Omg! I remember! I had the idea of this mod! Thanks! I been using it for a while but I didn't remember if I had the idea or not! Wow! XD
Okay, so this mod didn't work for me (1.1.6), it returned an error every time a user tried to double post, rather than giving them the message. I uninstalled and deleted this mod, and now it's still giving me that error message. It didn't give it to me prior to installing the mod. Is there something this mod changes that would not be removed on uninstall and deletion?
No, everything it changes is reverted. Did you have any test failures while installing/uninstalling?
Quote from: Dragooon on September 15, 2008, 12:59:14 PM
No, everything it changes is reverted. Did you have any test failures while installing/uninstalling?
Nope, it installed perfectly (everything that's given me a test failure I didn't install for fear that it would break something) and uninstalled perfectly. I'll try disabling the other mods then enabling them one at a time to see if it's something else, but I'm pretty sure it's this since only double posting is effected.
Any plans to make this compatible for 1.1.6
Well i got the basic function working in 1.1.6
But ther are no words under the admin "Posts and Topics" just a little box that allows you to put the days...BUT it works.....(No HELP either )
Also..."Permissions" under admin...doesn't exists!
Also..."An Error Has Occurred!" <<< That is the error that you get when you double post! (Which can be confusing - people will think the board is screwed up!)
But like i said before the function works... ;)
This would be so tight if you made it work though.....thanks in advance - wicked mod!!! ;D
UPDATE: I even tryed manual install for 1.1.6 - PLEASE HELP! :P
Hey there Dragooon, very nice mod mate :)
You know how when the person goes to double post, then they get directed to the message stating "Sorry, but you are not allowed to double post. Please go back and edit your previous post."
Is it possible to have that as a popup, and they would have to only click "ok" to continue??
Of course Im sure it is possible, but I ask you for assistance, as I know youre adept at such things.
ThankYou for any assistance mate :)
regards
how can i make it work for 1.1.7?
Just install it as usual via your package manager, it should install ok.
I have had no issues with its performance in SMF 1.1.7 :)
when have time update portuguese and utf8
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Double Post stopper strings
$txt['double_post_attempt'] = 'Desculpa, mas você não está autorizado a duplicar os postes. Por favor, volte e edite seu poste anterior.';
$txt['permissionname_doublePost'] = 'Permitir-lhes duplo poste';
$txt['permissionhelp_doublePost'] = 'Activar que permitir-lhes o duplo poste.';
$txt['doublePostAdmin_main'] = 'Tempo antes que o membro não é permitido a duplar poste';
$txt['doublePostHelp'] = 'Tempo (em dias) antes de postar dupla é considerada como uma tentativa. Um membro não é permitido postar um contínuo segundo a resposta no prazo limite.';
$txt['doublePostAdmin_sub'] = 'É definido como em dias. Clique sobre o "?" se você quiser mais informações. Deixe em branco para evitar a duplo poste sempre';
]]>
</add>
</operation>
</file>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Double Post stopper strings
$txt['double_post_attempt'] = 'Desculpa, mas você não está autorizado a duplicar os postes. Por favor, volte e edite seu poste anterior.';
$txt['permissionname_doublePost'] = 'Permitir-lhes duplo poste';
$txt['permissionhelp_doublePost'] = 'Activar que permitir-lhes o duplo poste.';
$txt['doublePostAdmin_main'] = 'Tempo antes que o membro não é permitido a duplar poste';
$txt['doublePostHelp'] = 'Tempo (em dias) antes de postar dupla é considerada como uma tentativa. Um membro não é permitido postar um contínuo segundo a resposta no prazo limite.';
$txt['doublePostAdmin_sub'] = 'É definido como em dias. Clique sobre o "?" se você quiser mais informações. Deixe em branco para evitar a duplo poste sempre';
]]>
</add>
</operation>
</file>
will this be updated for 1.1.8? I know how to manually update the package-xml file so that it will install and uninstall for that version, but didnt know if there were any specific changes that needed to be made to make it fully compatible with 1.1.8
Anyone tried it on that version yet?
Kimmie you tried this on 1.1.8?
grettings
v1.1 Works well on SMF 1.1.9
One little problem I've noticed is that quick reply field is accessible and the error message shows only when pressed post/preview buttons. This might be a little problem for the members, because all that they typed could be lost.
I see two solutions for that:
1) display an alert when member pressed post/preview button
2) disable the quick reply field (like <textarea disabled>) with appropriate message inside the field, or simply by not showing that field at all.
Thank you.
SMF 1.1.11
It appears that the double-post stopper breaks the Preview option. The first click of Preview works fine, but on editing the post further and clicking Preview again, the preview content doesn't update and a double-post error is generated.
Personally I don't consider it a show-stopper - why would anyone want to preview their post in the first place - but we've had some complaints from members and it's filling the error log daily.
Any help with this issue in an otherwise fantastic mod greatly appreciated.
Quote from: bedges on January 08, 2010, 08:31:59 AM
SMF 1.1.11
preview content doesn't update and a double-post error is generated.
The same is in my forum, and from the error logs I see that quite a few users want to check their posts for "layout" before posting, and they will fail. When I tried to uninstall the mod, I got the following message:
Quote from: Double Post Stopper Uninstall attemptAn Error Has Occurred!
This package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
Any help would be greatly appreciated.
Thanks!
Oh, by the way:
I've created a translation into German, use as you please
:)
<file name="$languagedir/Modifications.german.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Double Post stopper strings
$txt['double_post_attempt'] = 'Bitte nicht "Schubsen", d.h. keine aufeinanderfolgenden Beiträge im selben Thema kurz hintereinander abschicken. <br /><br /><b>Du kannst aber den gerade geschriebenen Beitrag ändern (rechts oben "<b>Ändern</b>" anklicken). <br />Ansonsten musst du 24 Stunden warten, oder so lange bis ein anderer auf Deinen Beitrag geantwortet hat.';
$txt['permissionname_doublePost'] = 'Doppelposts und Schubser erlauben';
$txt['permissionhelp_doublePost'] = 'Hiermit werden Doppelposts und Schubser erlaubt.';
$txt['doublePostAdmin_main'] = 'Zeitablauf bevor ein Doppelpost gesendet werden kann';
$txt['doublePostHelp'] = 'Zeit in Tagen, innerhalb der ein Doppelpost als Schubser angesehen wird. Ein Nutzer darf innerhalb dieser Zeit keine aufeinanderfolgenden Beiträge innerhalb eines Themas senden, bevor eine Antwort gekommen ist.';
$txt['doublePostAdmin_sub'] = 'Angabe in Tagen. "?" klicken für mehr Information. Freilassen, wenn Schubsen absolut verboten sein soll.';
]]>
</add>
</operation>
</file>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
// Double Post stopper strings
$txt['double_post_attempt'] = 'Bitte nicht "Schubsen", d.h. keine aufeinanderfolgenden Beiträge im selben Thema kurz hintereinander abschicken. <br /><br /><b>Du kannst aber den gerade geschriebenen Beitrag ändern (rechts oben "<b>Ändern</b>" anklicken). <br />Ansonsten musst du 24 Stunden warten, oder so lange bis ein anderer auf Deinen Beitrag geantwortet hat.';
$txt['permissionname_doublePost'] = 'Doppelposts und Schubser erlauben';
$txt['permissionhelp_doublePost'] = 'Hiermit werden Doppelposts und Schubser erlaubt.';
$txt['doublePostAdmin_main'] = 'Zeitablauf bevor ein Doppelpost gesendet werden kann';
$txt['doublePostHelp'] = 'Zeit in Tagen, innerhalb der ein Doppelpost als Schubser angesehen wird. Ein Nutzer darf innerhalb dieser Zeit keine aufeinanderfolgenden Beiträge innerhalb eines Themas senden, bevor eine Antwort gekommen ist.';
$txt['doublePostAdmin_sub'] = 'Angabe in Tagen. "?" klicken für mehr Information. Freilassen, wenn Schubsen absolut verboten sein soll.';
]]>
</add>
</operation>
</file>
I have this mod installed on my forum.
It works find but we got 3 boards where people DO sometimes need to double post. I want to be able to switch off the mod on those boards, could a workaround be done?
Can you attach your ./Sources/Post.php please?
Here it is. Thanks for your help.
Find this in attached file:
if (!in_array($board, array(1,2,3)))
And replace 1,2,3 with your board IDs.
This is what I'm looking for, but I have to install it on SMF 1.1.11 and I saw that it breaks preview. How could I fix this mod for 1.1.11?
I've got this installed on my 2.0 forum and am trying to uninstall it. It won't let me uninstall, fatal errors it says. Is there anything I can do? Let me know what info you would need to help me.
Hi Dragooon!
Very useful modification :)
Changes for 2.0.x versions:
Sources/ManagePosts.php
'',
array('int', 'doublePostThold', 'postinput' => $txt['doublePostAdmin_main'], 'subtext' => $txt['doublePostAdmin_sub']),
Replace with:
'',
array('int', 'doublePostAdmin_main', 'postinput' => $txt['manageposts_days'], 'subtext' => $txt['doublePostAdmin_sub']),
And it should be added $helptxt in Help.language.php
$helptxt['doublePostAdmin_main'] = 'Time(in Days) before double posting is considered as a bump attempt. A user is not allowed to post a continous second reply within the given time threshhold.';
It was tested, no error log entries. ;)
Updated
It doesn't appear to work now, and I know for certain I have setup permissions correctly.
Getting this error:
2: file_get_contents(/forum/Packages/temp/DoublePostStopper.template.php): failed to open stream: No such file or directoryApply Filter: Only show the errors from this file File: forum/Sources/Subs-Package.php
Line: 2453
That was very unhelpful...
HOW does it not work?
Quote from: live627 on February 12, 2014, 04:33:20 PM
That was very unhelpful...
HOW does it not work?
Well I don't know... It baffles me too.
Basically I double posted, despite having the permissions explicitly set "not to". Nothing came up denying me the ability to do so.
Quote from: Taurvi
Well I don't know... It baffles me too.
Basically I double posted, despite having the permissions explicitly set "not to". Nothing came up denying me the ability to do so.
The problem is, you double posted, do you have the packages installed properly? What I suggest, retrace what you've done before you had this problem then just basically try again. Double posting is never a good idea because you have a new copy of your other post that's the problem. Did you delete your last post in your forum? If not, please do so.
Quote from: Vivid Values on February 12, 2014, 05:58:38 PM
Quote from: Taurvi
Well I don't know... It baffles me too.
Basically I double posted, despite having the permissions explicitly set "not to". Nothing came up denying me the ability to do so.
The problem is, you double posted, do you have the packages installed properly? What I suggest, retrace what you've done before you had this problem then just basically try again. Double posting is never a good idea because you have a new copy of your other post that's the problem. Did you delete your last post in your forum? If not, please do so.
Do you really think that the problem that I am having, with a mod that is supposed to prevent double posting, is that I was trying to double post?
Forgive me in advance if I sound harsh, but the point to installing this mod was to
prevent double posting, so I had to test it. I created a new forum account to do so, tested it, and it failed. Nothing happened, and the post still went through. I even denied the permission to "double post" to my test account and it still failed.
Of course I installed the packages correctly, I don't know how anybody could screw that up. I downloaded the most recent version and I made 100% sure there were no errors upon install. I am fairly confident the problem is not on my end, however I will test it on another forum to make sure.
Ok, so I tested it on another forum - a fresh install of 2.0.7 - and it still fails to prevent double posting.
What I did:
- Set permissions to double post for all to X
- Tested double post with Administrator, Moderator, and Regular Member, and it failed. I was able to double post.
- Set permissions to double post for all to D
- Tested double post with Administrator, Moderator, and Regular Member, and it failed. I was able to double post.
- Set permissions to double post for all to A
- Tested double post with Administrator, Moderator, and Regular Member, and well.. this shouldn't have done anything except allow double posting.
And the setting?
Unchanged - set to 0 days.
EDIT: Ahh appears that is the problem. Thank you!
Quote from: Vivid Values on February 12, 2014, 08:19:13 PM
You're welcome, we are glad we helped you! lol.
You did jack ******. Stop spamming the forums please. And thank you to the Mod Author for making this and taking the time to help me.
I think I need to fix the wording.
Quote from: Dragooon on December 11, 2007, 03:08:55 AM
Admin > Permissions > <Group>, thats where it should be
And about your second concern, I don't get it? Are you telling that there is a problem there?
Am having a little trouble to locate this setting. The installation went smoothly on my theme (Flagrantly by, Crip) but i have check through Admin > Permissions > <Regular Members> and i cant see the settings.
Please any tip will be appreciated.
Under Posts?
Quote from: Branko. on July 23, 2014, 10:18:49 AM
Under Posts?
Going through this Admin > Permissions > <Regular Members>, the attach is what i see under post.
Any help on this? i am beginning to think this might mean that the mod does not work on all theme. i have search through all settings and cant locate any settings for this. And also under the Miscellaneous, there are no settings for this there. :(
There is syntax error in package-info.xml file:
<require-file name="DoublePostStopper.php" destination="$sourcedir" /
DoublePostStopper.php is not moved to Sources directory and mod is not working.
@phantomm
+1 :)
@drfun
Quote from: phantomm on August 08, 2014, 05:59:05 PM
There is syntax error in package.xml file:
<require-file name="DoublePostStopper.php" destination="$sourcedir" /
DoublePostStopper.php is not moved to Sources directory and mod is not working.
It will be quickly solved
Thanks for responding, So what do i do, or is this going to be fix on the mod?
I installed the mod, but do not use on my SMF theme deoult therefore I can not find the functions of the MOD, I do not know where to find it, I can not find anything in the user permissions and in the general settings of the forum.
How to fix?
SMF 2.0.8
this does not work on my 2.0.11 system as there are no Admin config. options at all ... any ideas ?
Any update to this?
since you did not specify, here is your sassy update :P
Quote from: live627 on June 26, 2024, 05:09:47 AMsince you did not specify
If you mean to what version then 2.1.4 the latest one.
you ask for update to this mod to work with 2.1.4, then? Will look into it possibly next wee k.
For SMF 2.1.4 please update.