[CDB] Auto-lock Topics

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!
Get Involved
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)
Locked
User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

[CDB] Auto-lock Topics

Post by AbaddonOrmuz » Fri May 05, 2017 7:26 am

Extension Name: Auto-lock Topics
Author: Alfredo Ramos (Abaddon Ormuz)
Extension Description:

Auto-lock topics after n days of inactivity using a phpBB cron task.

Extension Version: 1.0.0

Requirements:
  • PHP 5.6 or greater
  • phpBB 3.2 or greater
Features:
  • Run the auto-lock cron task only in the selected forums
  • Enable/disable announcements auto-lock
  • Enable/disable polls auto-lock
  • Enable/disable stickies auto-lock
  • Set the number of days of post inactivity to trigger the auto-lock.
  • Set the frequency between auto-locks.
Screenshots:

(Click to see in full size)

Image Image

Image Image

Installation:
  • Download the latest release
  • Decompress the *.zip or *.tar.gz file
  • Copy the files and directories inside <PHPBB_ROOT>/ext/alfredoramos/autolocktopics/
  • Go to your Administration Control Panel > Customize > Manage extensions
  • Click on Enable and confirm
Configuration:
  • Go to your Administration Control Panel > Forums > Manage Forums.
  • Select a category and then a forum.
  • Click on the Edit button (green gear).
  • Scroll down to Auto-lock settings.
  • Edit the settings as you like.
  • Click on Submit.
Uninstallation:
  • Go to your Administration Control Panel > Customize > Manage extensions
  • Click on Disable and confirm.
  • Go back to Manage extensions > Auto-lock Topics > Delete data and confirm.
Upgrade:
  • Uninstall the extension.
  • Delete all the files inside <PHPBB_ROOT>/alfredoramos/autolocktopics/.
  • Download the new version.
  • Install the extension.
Extension Download: zip | tar.gz
GitHub Repository: AlfredoRamos/phpbb-ext-auto-lock-topics
Last edited by AbaddonOrmuz on Sun May 21, 2017 2:22 pm, edited 5 times in total.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][ALPHA] Auto-lock Topics

Post by AbaddonOrmuz » Fri May 05, 2017 7:27 am

ChangeLog:
  • 1.0.0 - 2017-05-11
    • Only show forum name in admin log
    • Add admin log entry only if topics were actually locked
  • 0.1.1-beta - 2017-05-09 [YANKED]
    • Added security checks
Last edited by AbaddonOrmuz on Fri May 12, 2017 12:07 am, edited 2 times in total.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
david63
Registered User
Posts: 16568
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][ALPHA] Auto-lock Topics

Post by david63 » Fri May 05, 2017 7:42 am

Can I just point out that you are using GNU General Public License, version 3 which is not compatible with GNU General Public License, version 2 and if you intend to submit this extension to the CDB then in all probability it will be denied because of this.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][ALPHA] Auto-lock Topics

Post by AbaddonOrmuz » Fri May 05, 2017 7:46 am

david63 wrote:
Fri May 05, 2017 7:42 am
Can I just point out that you are using GNU General Public License, version 3 which is not compatible with GNU General Public License, version 2 and if you intend to submit this extension to the CDB then in all probability it will be denied because of this.
Thanks, I'm aware of that, the final version will be GPL 2 ;)
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 25388
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [3.2][ALPHA] Auto-lock Topics

Post by Paul » Fri May 05, 2017 9:59 am

AbaddonOrmuz wrote:
Fri May 05, 2017 7:46 am
david63 wrote:
Fri May 05, 2017 7:42 am
Can I just point out that you are using GNU General Public License, version 3 which is not compatible with GNU General Public License, version 2 and if you intend to submit this extension to the CDB then in all probability it will be denied because of this.
Thanks, I'm aware of that, the final version will be GPL 2 ;)
Please update your licence as per the Extensions in Development rules: https://www.phpbb.com/extensions/rules- ... quirements
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][ALPHA] Auto-lock Topics

Post by AbaddonOrmuz » Fri May 05, 2017 10:01 pm

Screenshots added.
Paul wrote:
Fri May 05, 2017 9:59 am
Please update your licence as per the Extensions in Development rules: https://www.phpbb.com/extensions/rules- ... quirements
Done ;)
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
Mannix_
Registered User
Posts: 520
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: [3.2][ALPHA] Auto-lock Topics

Post by Mannix_ » Sat May 06, 2017 12:24 pm

Would be nice to have option to set a date and time when the Topic should be locked
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][ALPHA] Auto-lock Topics

Post by AbaddonOrmuz » Sat May 06, 2017 7:29 pm

Mannix_ wrote:
Sat May 06, 2017 12:24 pm
Would be nice to have option to set a date and time when the Topic should be locked
Can you provide use case, a real scenario, when you need to set the time? because you're actually setting the date (frequency) and the time is set by the cron task depending when the auto-lock was enabled in the forum settings.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
Mannix_
Registered User
Posts: 520
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: [3.2][ALPHA] Auto-lock Topics

Post by Mannix_ » Sun May 07, 2017 2:27 pm

AbaddonOrmuz wrote:
Sat May 06, 2017 7:29 pm
Mannix_ wrote:
Sat May 06, 2017 12:24 pm
Would be nice to have option to set a date and time when the Topic should be locked
Can you provide use case, a real scenario, when you need to set the time? because you're actually setting the date (frequency) and the time is set by the cron task depending when the auto-lock was enabled in the forum settings.
For example you run a team and you do sign ups to match etc. or a meeting and you set a time and date for that match/meeting and you don't want people to sign up after set date and time so it would automatically close the topic to prevent that.
-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

User avatar
david63
Registered User
Posts: 16568
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][ALPHA] Auto-lock Topics

Post by david63 » Sun May 07, 2017 2:38 pm

Mannix_ wrote:
Sun May 07, 2017 2:27 pm
For example you run a team and you do sign ups to match etc. or a meeting and you set a time and date for that match/meeting and you don't want people to sign up after set date and time so it would automatically close the topic to prevent that.
As this extension is using phpBB cron then you could not get degree of accuracy. The cron for this extension will only be triggered when there is some activity on the board after the time specified and only then if there are no other cron jobs waiting to be run. It could be anything from a few minutes to a few hours after the specified time.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][BETA] Auto-lock Topics

Post by AbaddonOrmuz » Wed May 10, 2017 1:18 am

Beta version available.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [3.2][RC] Auto-lock Topics

Post by AbaddonOrmuz » Fri May 12, 2017 12:08 am

First release candidate, see changelog for more info.

It has been sent for validation.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

User avatar
AbaddonOrmuz
Registered User
Posts: 694
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: [CDB] Auto-lock Topics

Post by AbaddonOrmuz » Sun May 21, 2017 2:22 pm

It has been aproved, support will be provided in the following link:

https://www.phpbb.com/customise/db/exte ... cs/support
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user

Locked

Return to “Extensions in Development”