News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Double Post Stopper

Started by live627, December 05, 2007, 12:07:52 AM

Previous topic - Next topic

Sabre™

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
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


anakmacan

how can i make it work for 1.1.7?

Sabre™

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 :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Apllicmz

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>



Kimmie

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?

javierjp

#45
Kimmie you tried this on 1.1.8?

grettings

V@no

#46
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.

bedges

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.

ripystys

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!
Hinterher habens alle schon vorher gewusst.
Hindsight is always twenty-twenty.
(Billy Wilder)

ripystys

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>
Hinterher habens alle schon vorher gewusst.
Hindsight is always twenty-twenty.
(Billy Wilder)

wynnyelle

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?

Yağız...

Can you attach your ./Sources/Post.php please?

wynnyelle

Here it is. Thanks for your help.

Yağız...

Find this in attached file:
if (!in_array($board, array(1,2,3)))
And replace 1,2,3 with your board IDs.

skydiamond

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?

wynnyelle

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.

Branko.

#56
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.  ;)
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

live627


Taurvi

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

live627

That was very unhelpful...


HOW does it not work?

Advertisement: