[CDB] Move Topics When Locked

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3907
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

[CDB] Move Topics When Locked

Post by kasimi » Sun Dec 06, 2015 8:34 pm

Extension Name: Move Topics When Locked (requires at least phpBB 3.1.7-RC1)

Author: kasimi

Description: This extension allows the administrator to configure a forum to automatically move locked topics to a designated forum.

Note: This extension is based on the idea of the Move topics when locked MOD for phpBB 3.0.

Screenshots:
  • ACP -> Forums -> Create/Edit forum:
    Image
Download v1.0.2: https://github.com/kasimi/phpbb-ext-mov ... v1.0.2.zip

Repository: https://github.com/kasimi/phpbb-ext-mov ... whenlocked

Installation:
  1. Copy the contents of the archive to /ext/kasimi/movetopicswhenlocked.
    Make sure the file /ext/kasimi/movetopicswhenlocked/composer.json is present.
  2. Navigate to the ACP » Customise » Manage extensions page.
  3. Click Enable next to Move Topics When Locked in the Disabled Extensions section.
Changelog:
  • 2015-12-06 v1.0.0 Initial release
  • 2015-12-14 v1.0.1
    1. Moved settings to separate panel
    2. Added option to recursively apply settings to sub-forums
    3. The preference panel is also added to categories. This can save time when using it in combination with the above 'recursive' setting.
    4. <select> with destination forums does not allow categories to be selected
    5. Improved error handling
  • 2016-01-14 v1.0.2
    1. Added support for moving solved topics, requires the Topics Solved extension by bpetty/tierra version 2.2.0 to be installed
    2. Added events kasimi.movetopicswhenlocked.move_topics_before|after
    3. Fixed post count synchronization
    4. Fixed bug where locked topics were moved even though forum settings were set to No
    5. Removed unused include
Last edited by kasimi on Sun Jul 31, 2016 8:53 am, edited 6 times in total.

User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 6533
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV] Move Topics When Locked

Post by Raul [ThE KuKa] » Sun Dec 06, 2015 8:56 pm

Added "PR" Spanish translation, and "PR" for UFT-8 variant (en) file. ;)

Nice work.
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
:flag_es: phpBB Spain - Online Since 2003 :heart:



User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3907
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [DEV] Move Topics When Locked

Post by kasimi » Sun Dec 06, 2015 9:01 pm

Thanks, merged. :)

User avatar
SalazarAG
Registered User
Posts: 669
Joined: Mon Mar 30, 2015 10:48 am

Re: [DEV] Move Topics When Locked

Post by SalazarAG » Sun Dec 06, 2015 9:10 pm

eager to test this extension. Great work.
I'm sorry for my English. Google Translator does a bad job. :D

pantherfan
Registered User
Posts: 44
Joined: Thu Nov 12, 2015 12:15 am
Name: Tangela

Re: [DEV] Move Topics When Locked

Post by pantherfan » Sun Dec 06, 2015 9:33 pm

Thanks for this one, will wait for 3.1.7. This was one I was hoping to use the mod for before I knew that you could only use them for 3.0.

witvisser
Registered User
Posts: 62
Joined: Wed Nov 25, 2009 9:08 am

Re: [DEV] Move Topics When Locked

Post by witvisser » Mon Dec 07, 2015 6:12 pm

Great work! Thank you kasimi for this very usefull extension ;)

TWEagle
Registered User
Posts: 284
Joined: Sat Dec 10, 2005 2:50 pm
Contact:

Re: [DEV] Move Topics When Locked

Post by TWEagle » Mon Dec 07, 2015 7:24 pm

Image

User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] Move Topics When Locked

Post by Jessica » Tue Dec 08, 2015 3:18 am

Very useful extension. Thanks for this!
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein

pantherfan
Registered User
Posts: 44
Joined: Thu Nov 12, 2015 12:15 am
Name: Tangela

Re: [DEV] Move Topics When Locked

Post by pantherfan » Tue Dec 08, 2015 3:54 pm

Is there a way to add the ability to move topics into and out of forums in categories?

witvisser
Registered User
Posts: 62
Joined: Wed Nov 25, 2009 9:08 am

Re: [DEV] Move Topics When Locked

Post by witvisser » Tue Dec 08, 2015 7:29 pm

Is it possible to add an extra option in the ACP -> Forums -> Create/Edit forum:
Strikeout: Yes or no
See topic: viewtopic.php?f=72&t=1135465#p6669245

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3907
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [DEV] Move Topics When Locked

Post by kasimi » Sat Dec 12, 2015 10:41 pm

pantherfan wrote:Is there a way to add the ability to move topics into and out of forums in categories?
I'm afraid I don't understand. Can you give an example?
witvisser wrote:Is it possible to add an extra option in the ACP -> Forums -> Create/Edit forum
Do you really want locked topics to be struck through only in certain forums? Don't you think a global preference would be better?

pantherfan
Registered User
Posts: 44
Joined: Thu Nov 12, 2015 12:15 am
Name: Tangela

Re: [DEV] Move Topics When Locked

Post by pantherfan » Sun Dec 13, 2015 2:26 am

Basically, I have categories, and inside those categories I have forums. The only way I can use this is to take all the forums out of the categories that I've set up already.

witvisser
Registered User
Posts: 62
Joined: Wed Nov 25, 2009 9:08 am

Re: [DEV] Move Topics When Locked

Post by witvisser » Sun Dec 13, 2015 12:53 pm

kasimi wrote:Do you really want locked topics to be struck through only in certain forums? Don't you think a global preference would be better?
You are right, a global preference would be better indeed.

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3907
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [DEV] Move Topics When Locked

Post by kasimi » Mon Dec 14, 2015 6:58 pm

pantherfan wrote:Basically, I have categories, and inside those categories I have forums.
Check out the latest version 1.0.1. I hope this makes your life easier.

Important: Before installing v1.0.1 you have to delete any earlier version of this extension entirely. After disabling the extension, you also need to delete the extension data. This is necessary because I renamed the columns to be more unique in order to avoid possible naming clashed in the future.

@Translators, there are two new language variables, feel free to send PRs my way. :)
witvisser wrote:Strikeout: Yes or no
While being a useful feature, I think it's not quite suited for this extension. Maybe you want to make a new request in the Extension Requests forum?

pantherfan
Registered User
Posts: 44
Joined: Thu Nov 12, 2015 12:15 am
Name: Tangela

Re: [DEV] Move Topics When Locked

Post by pantherfan » Tue Dec 15, 2015 5:31 pm

Hi and thanks for your changes. That's exactly what I needed.

I have set user permissions to be able to lock their own topics, and designated the appropriate forums into which locked topics should be moved, however users are not seeing the ability to lock their own topics. Any idea what could be causing this?

Furthermore, when I lock a topic in the quick mod tools, I get the following error, and the post is not moved: viewtopic f=6&t=20
AJAX ERROR
Internal Server Error

Locked

Return to “Extensions in Development”