Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: live627 on December 05, 2007, 12:07:52 AM

Title: Double Post Stopper
Post by: live627 on December 05, 2007, 12:07:52 AM
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!
Title: Re: Double Post Stopper
Post by: capabmx on December 05, 2007, 02:24:03 AM
Just thought I'd be the first to thank you for making this mod, and also say that it is an excellent addition!
Title: Re: Double Post Stopper
Post by: Dragooon on December 05, 2007, 02:31:53 AM
Thank you :).
I just made this based on a request Lol :P
Title: Re: Double Post Stopper
Post by: capabmx on December 05, 2007, 02:35:02 AM
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 :).
Title: Re: Double Post Stopper
Post by: Darknico on December 05, 2007, 05:15:42 AM
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';
Title: Re: Double Post Stopper
Post by: Dragooon on December 05, 2007, 05:40:53 AM
Thank you :). I have added them to the package.
Title: Re: Double Post Stopper
Post by: уιℓмαz on December 07, 2007, 06:26:26 AM
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.';
Title: Re: Double Post Stopper
Post by: TheWrath! on December 07, 2007, 07:32:44 AM
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
Title: Re: Double Post Stopper
Post by: Dragooon on December 07, 2007, 07:36:25 AM
Looks like it was just you :P
Title: Re: Double Post Stopper
Post by: aldo on December 08, 2007, 02:21:08 AM
Fantastic! There used to be  mod like this, but then it was stopped. Im glad there is a new one :) Great job!
Title: Re: Double Post Stopper
Post by: De4thPr00f on December 08, 2007, 02:37:54 AM
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.
Title: Re: Double Post Stopper
Post by: Dragooon on December 08, 2007, 03:01:31 AM
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 :)
Title: Re: Double Post Stopper Great Mod, but I have a bug
Post by: cc4digital on December 11, 2007, 03:06:35 AM
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.
Title: Re: Double Post Stopper
Post by: 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?
Title: Re: Double Post Stopper
Post by: cc4digital on December 11, 2007, 04:33:19 AM
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
Title: Re: Double Post Stopper
Post by: [SAP]Francis on December 28, 2007, 09:24:00 PM
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.';
Title: Re: Double Post Stopper
Post by: Ubivis on January 12, 2008, 04:33:51 AM
Great, that is what I was looking for :)
Title: Re: Double Post Stopper
Post by: floydpink on February 01, 2008, 10:41:25 AM
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
Title: Re: Double Post Stopper
Post by: Apllicmz on February 01, 2008, 02:49:19 PM
Nice Mod
Nice work
Thank You
iam translate for pt she work Fine
Title: Re: Double Post Stopper
Post by: touficjohn on February 27, 2008, 03:59:49 PM
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
Title: Re: Double Post Stopper
Post by: Dragooon on February 29, 2008, 08:45:42 AM
Make sure the packages directory is chmodded to 777 and got a temp directory in it which also 777
Title: Re: Double Post Stopper
Post by: floydpink on April 21, 2008, 02:41:06 AM
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.

Title: Re: Double Post Stopper
Post by: Dragooon on April 21, 2008, 03:47:48 AM
Try this
In Post.php
Find
function bumpAttempt() {
And add after
if(allowedTo('doublePost')) return true;
Title: Re: Double Post Stopper
Post by: floydpink on April 22, 2008, 07:27:28 AM
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!)>
Title: Re: Double Post Stopper
Post by: Dragooon on April 22, 2008, 08:04:23 AM
No not that, in the beginning of the function bumpAttempt(), not in that "if" clause.
Title: Re: Double Post Stopper
Post by: floydpink on April 23, 2008, 02:43:55 AM
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.
Title: Re: Double Post Stopper
Post by: Dragooon on April 23, 2008, 03:09:17 AM
Hm I'll see to it then. I'll try to fix that bug.
Title: Re: Double Post Stopper
Post by: Dragooon on April 29, 2008, 12:46:28 PM
Version 1.1 out :)
Title: Re: Double Post Stopper
Post by: Jojie on May 27, 2008, 08:07:59 PM
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?
Title: Re: Double Post Stopper
Post by: chrisb on June 07, 2008, 07:35:44 AM
are we able to see an updated version for 1.1.5 please
Title: Re: Double Post Stopper
Post by: Dragooon on June 07, 2008, 07:53:19 AM
This works for 1.1.5, Have you tried yet?
Title: Re: Double Post Stopper
Post by: Linebeck on July 04, 2008, 01:27:41 PM
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
Title: Re: Double Post Stopper
Post by: Lum-chan on July 11, 2008, 02:50:46 PM
Works like a charm on SMF 1.1.5 and TP 1.0.5 Beta1  ;D
Title: Re: Double Post Stopper
Post by: Kimmie on July 31, 2008, 12:07:29 AM
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)
Title: Re: Double Post Stopper
Post by: [SAP]Francis on August 13, 2008, 01:08:20 AM
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
Title: Re: Double Post Stopper
Post by: MDragon on September 15, 2008, 08:07:01 AM
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?
Title: Re: Double Post Stopper
Post by: Dragooon on September 15, 2008, 12:59:14 PM
No, everything it changes is reverted. Did you have any test failures while installing/uninstalling?
Title: Re: Double Post Stopper
Post by: MDragon on September 15, 2008, 02:20:52 PM
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.
Title: Re: Double Post Stopper
Post by: InternetMafia on October 09, 2008, 07:05:35 PM
Any plans to make this compatible for 1.1.6
Title: Re: Double Post Stopper HELP
Post by: Mr_JimWest on October 28, 2008, 01:16:02 PM
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
Title: Re: Double Post Stopper
Post by: Sabre™ on October 29, 2008, 05:28:30 PM
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
Title: Re: Double Post Stopper
Post by: anakmacan on November 16, 2008, 07:35:58 PM
how can i make it work for 1.1.7?
Title: Re: Double Post Stopper
Post by: Sabre™ on November 16, 2008, 10:30:07 PM
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 :)
Title: Re: Double Post Stopper
Post by: Apllicmz on January 02, 2009, 01:03:55 PM
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&ecirc; n&atilde;o est&aacute; 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&atilde;o &eacute; permitido a duplar poste';
$txt['doublePostHelp'] = 'Tempo (em dias) antes de postar dupla &eacute; considerada como uma tentativa. Um membro n&atilde;o &eacute; permitido postar um cont&iacute;nuo segundo a resposta no prazo limite.';
$txt['doublePostAdmin_sub'] = '&Eacute; definido como em dias. Clique sobre o "?" se voc&ecirc; quiser mais informa&ccedil;&otilde;es. Deixe em branco para evitar a duplo poste sempre';

]]>
</add>
  </operation>
</file>
Title: Re: Double Post Stopper
Post by: Kimmie on February 15, 2009, 09:46:57 AM
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?
Title: Re: Double Post Stopper
Post by: javierjp on April 05, 2009, 11:00:40 AM
Kimmie you tried this on 1.1.8?

grettings
Title: Re: Double Post Stopper
Post by: V@no on June 07, 2009, 09:48:10 AM
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.
Title: Re: Double Post Stopper
Post by: bedges on January 08, 2010, 08:31:59 AM
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.
Title: Re: Double Post Stopper
Post by: ripystys on May 05, 2010, 01:38:30 AM
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!
Title: Re: Double Post Stopper
Post by: ripystys on May 05, 2010, 01:48:13 AM
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&auml;ge im selben Thema kurz hintereinander abschicken. <br /><br /><b>Du kannst aber den gerade geschriebenen Beitrag &auml;ndern (rechts oben "<b>&Auml;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&auml;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&auml;ge im selben Thema kurz hintereinander abschicken. <br /><br /><b>Du kannst aber den gerade geschriebenen Beitrag &auml;ndern (rechts oben "<b>&Auml;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&auml;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>
Title: Re: Double Post Stopper
Post by: wynnyelle on May 12, 2010, 08:32:01 PM
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?
Title: Re: Double Post Stopper
Post by: Yağız... on May 12, 2010, 08:39:17 PM
Can you attach your ./Sources/Post.php please?
Title: Re: Double Post Stopper
Post by: wynnyelle on May 12, 2010, 10:40:41 PM
Here it is. Thanks for your help.
Title: Re: Double Post Stopper
Post by: Yağız... on May 13, 2010, 05:11:09 AM
Find this in attached file:
if (!in_array($board, array(1,2,3)))
And replace 1,2,3 with your board IDs.
Title: Re: Double Post Stopper
Post by: skydiamond on August 03, 2010, 04:15:19 AM
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?
Title: Re: Double Post Stopper
Post by: wynnyelle on January 08, 2012, 11:31:50 PM
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.
Title: Re: Double Post Stopper
Post by: Branko. on June 15, 2013, 10:04:44 AM
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.  ;)
Title: Re: Double Post Stopper
Post by: live627 on February 12, 2014, 05:54:47 AM
Updated
Title: Re: Double Post Stopper
Post by: Taurvi on February 12, 2014, 01:47:51 PM
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
Title: Re: Double Post Stopper
Post by: live627 on February 12, 2014, 04:33:20 PM
That was very unhelpful...


HOW does it not work?
Title: Re: Double Post Stopper
Post by: Taurvi on February 12, 2014, 04:59:21 PM
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.
Title: Re: Double Post Stopper
Post by: 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.
Title: Re: Double Post Stopper
Post by: Taurvi on February 12, 2014, 06:48:43 PM
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.
Title: Re: Double Post Stopper
Post by: Taurvi on February 12, 2014, 07:13:10 PM
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.
Title: Re: Double Post Stopper
Post by: live627 on February 12, 2014, 07:27:52 PM
And the setting?
Title: Re: Double Post Stopper
Post by: Taurvi on February 12, 2014, 08:12:20 PM
Unchanged - set to 0 days.

EDIT: Ahh appears that is the problem. Thank you!
Title: Re: Double Post Stopper
Post by: Taurvi on February 12, 2014, 08:25:51 PM
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.
Title: Re: Double Post Stopper
Post by: live627 on February 12, 2014, 08:26:42 PM
I think I need to fix the wording.
Title: Re: Double Post Stopper
Post by: drfun on July 21, 2014, 02:12:46 PM
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.
Title: Re: Double Post Stopper
Post by: Branko. on July 23, 2014, 10:18:49 AM
Under Posts?
Title: Re: Double Post Stopper
Post by: drfun on July 23, 2014, 06:45:06 PM
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.
Title: Re: Double Post Stopper
Post by: drfun on July 31, 2014, 05:09:19 AM
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. :(
Title: Re: Double Post Stopper
Post by: Adrek on August 08, 2014, 05:59:05 PM
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.
Title: Re: Double Post Stopper
Post by: Branko. on August 09, 2014, 12:09:23 AM
@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
Title: Re: Double Post Stopper
Post by: drfun on August 25, 2014, 09:10:00 AM
Thanks for responding, So what do i do, or is this going to be fix on the mod?
Title: Re: Double Post Stopper
Post by: titanium79 on August 31, 2014, 12:06:08 PM
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
Title: Re: Double Post Stopper
Post by: aegersz on August 15, 2016, 06:24:46 PM
this does not work on my 2.0.11 system as there are no Admin config. options at all ... any ideas ?
Title: Re: Double Post Stopper
Post by: KittyGalore on June 21, 2024, 12:00:17 PM
Any update to this?
Title: Re: Double Post Stopper
Post by: live627 on June 26, 2024, 05:09:47 AM
since you did not specify, here is your sassy update  :P
Title: Re: Double Post Stopper
Post by: KittyGalore on June 26, 2024, 01:13:27 PM
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.
Title: Re: Double Post Stopper
Post by: live627 on June 27, 2024, 01:28:18 AM
you ask for update to this mod to work with 2.1.4, then? Will look into it possibly next wee k.
Title: Re: Double Post Stopper
Post by: Marina3 on November 27, 2024, 03:15:02 AM
For SMF 2.1.4 please update.