OP Can Close Thread

by Laird 5 Stars 187 Downloads

Allows the authors of threads to close and reopen their own threads in forums stipulated in the plugin's ACP settings if they are in an authorised usergroup.

Change Log for OP Can Close Thread

Version 1.4.1 stable Build #7

  • Fixes various PHP 8 warnings.
  • Fixes various errors in conditional logic.
  • Adds a "Block reopening?" setting.
  • Adds a "Remove prefix on reopening?" setting.
  • Adds handling for post merges.
  • Improves the code in various other minor ways.

Version 1.3.1 stable Build #6

  • Fixes a faulty comparison when checking for an open thread (the comparison was fine for PHP versions earlier than 8).
  • The "[Open/Close] Thread" button is now shown even to admins/mods who can already close threads, provided that they are picked out by the plugin's settings as for any other usergroup. This reverts the change made in v1.1.1 (commit 4853a5) and closes GitHub issue #4. Thanks to @Eldenroot, @lkop, and @HLFadmin for your advice that this was a desirable change to make.

Version 1.3.0 stable Build #5

  • Adds support for auto-prefixing of threads closed by their authors, as requested by lkop in this post; closes GitHub issue #1 for this plugin.

Version 1.2.1 stable Build #4

  • The addition of a setting for usergroups whose members are authorised to close/reopen threads they've authored in the stipulated forums. This feature was requested and sponsored by @spear.
  • Improved error messaging when a non-author tries to post to an author-closed thread: the message now states that the author closed the thread; originally, the default message was used, which states erroneously that a moderator closed the thread.
  • Two "Close thread" checkbox fixes:
    • The addition of the checkbox to the new reply pages on top of new thread pages.
    • The persistence of the value of the checkbox when submitting either page when (core) input errors occur, such as message too short.

Version 1.1.1 stable Build #3

  • Fixes a glitch: don't show the new open/close button to mods, who already have their own open/close interface.

Version 1.1.0 stable Build #2

  • Adds an "[Open/Close] Thread" button top & bottom of thread pages for thread authors in forums stipulated in the plugin's settings.
  • Averts a CSRF vulnerability by setting and checking my_post_key when submitting via that button to moderation.php?action=opcct_toggle_own_thread_closed. Thanks to @dvz for the heads-up on that one.

Version 1.0.0 stable Build #1

The first build has no changes.