Auto-lock Topics

Auto-lock and auto-move - Auto-lock Topics

Auto-lock and auto-move

by Lech-u » Mon Dec 11, 2017 1:36 pm

Idea for the future:
Please add one more function: auto-move to other forum after xxxx days.

For example: I use Auto-lock extension to block some topics in my "shop" forum. But it is still available to read by users in that forum. Better for me is to auto-lock and next to auto-move to Archive (or other place in my forum).

Could you do it?
Lech-u
Registered User
Posts: 14
Joined: Fri Dec 30, 2016 6:50 am
Contact:

Re: Auto-lock and auto-move

by AbaddonOrmuz » Mon Dec 11, 2017 3:20 pm

I could, but that feature seems to be very specific for your needs, and that's not a good reason to add it.

There's a extension that moves locked topics, I could create a PHP event to trigger that extension, I won't add a function to move topics in this extension, that's not the scope of it.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user
User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: Auto-lock and auto-move

by LuigiMdg » Wed Dec 27, 2017 10:24 pm

Also I'm looking for an extension that moves the topic after X days, but there are no PhpBB 3.2 apparently ..!
User avatar
LuigiMdg
Registered User
Posts: 139
Joined: Sat Jan 10, 2015 9:12 pm
Contact:

Re: Auto-lock and auto-move

by Hartenheer » Sun Mar 25, 2018 9:36 am

I know this is old message.
Now it is possible to move after x days
https://github.com/kasimi/phpbb-ext-mov ... whenlocked

But do not work together with this extension.

Can you make it?
Sorry English is not my native language :oops:
regards: Willem

https://bierfijnproevers.nl/bierforum
User avatar
Hartenheer
Registered User
Posts: 768
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

Re: Auto-lock and auto-move

by AbaddonOrmuz » Mon Mar 26, 2018 12:59 am

Hartenheer wrote:
Do you want to 1) move the topic after the topic is locked or 2) just move the topic after a number of days?

If it's the former it could be done, however that would not be achieved by this extension but by the one you're poiting to.

If it's the latter then your request does not belong to this extension, as this only locks topics, nothing else.

PS: I wasn't aware of the issue in that repository.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user
User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: Auto-lock and auto-move

by Hartenheer » Mon Mar 26, 2018 7:35 am

Forgive me for my bad English. It is the fault of Google :)

Thank you for responding

What I would like is: When a topic is closed, it is moved to a trash

If you close the extension Topic solved, there will also be a lock.
It will be moved to the trash.

Would be very nice if your extension can do this too
Maybe consult with https://github.com/kasimi/phpbb-ext-mov ... whenlocked
Sorry English is not my native language :oops:
regards: Willem

https://bierfijnproevers.nl/bierforum
User avatar
Hartenheer
Registered User
Posts: 768
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

Re: Auto-lock and auto-move

by eunaumtenhoid » Thu Apr 19, 2018 1:15 pm

+1
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
eunaumtenhoid
Registered User
Posts: 850
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: Auto-lock and auto-move

by AbaddonOrmuz » Mon May 07, 2018 12:46 am

A PHP event has been added and will be available in the upcoming version 1.1.0, so other extensions would have the posibility to move topics after they have been auto locked by this extension.

In particular, the Move Topics When Locked by kasimi has added support for this extension its the upcoming version 1.1.0
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user
User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: Auto-lock and auto-move

by Hartenheer » Sat May 26, 2018 11:21 am

I get an error message in 1.0.0

Een algemene fout is opgetreden: General Error
ยป SQL ERROR [ mysqli ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 996
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 547
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 441
CALL: phpbb\db\driver\driver->sql_in_set()

FILE: [ROOT]/ext/alfredoramos/autolocktopics/includes/helper.php
LINE: 241
CALL: phpbb\db\driver\factory->sql_in_set()

FILE: [ROOT]/ext/alfredoramos/autolocktopics/includes/helper.php
LINE: 131
CALL: alfredoramos\autolocktopics\includes\helper->lock_topics()

FILE: [ROOT]/ext/alfredoramos/autolocktopics/cron/task/auto_lock_topics.php
LINE: 52
CALL: alfredoramos\autolocktopics\includes\helper->auto_lock()

FILE: (not given by php)
LINE: (not given by php)
CALL: alfredoramos\autolocktopics\cron\task\auto_lock_topics->run()

FILE: [ROOT]/phpbb/cron/task/wrapper.php
LINE: 104
CALL: call_user_func_array()

FILE: [ROOT]/cron.php
LINE: 78
CALL: phpbb\cron\task\wrapper->__call()
Sorry English is not my native language :oops:
regards: Willem

https://bierfijnproevers.nl/bierforum
User avatar
Hartenheer
Registered User
Posts: 768
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

Re: Auto-lock and auto-move

by AbaddonOrmuz » Wed May 30, 2018 5:01 am

Hartenheer wrote:I get an error message in 1.0.0
Version 1.0.0 does not have line 241, if you meant version 1.1.0, it has been fixed in 1.1.1.

https://www.dropbox.com/s/pomdyj5rdb2rx ... 1.zip?dl=1
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user
User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact:

Re: Auto-lock and auto-move

by Hartenheer » Wed May 30, 2018 5:45 am

Yes it got this message in 1.1.0

Thank you very kindly.
I will install the new version.
Sorry English is not my native language :oops:
regards: Willem

https://bierfijnproevers.nl/bierforum
User avatar
Hartenheer
Registered User
Posts: 768
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

Re: Auto-lock and auto-move

by AbaddonOrmuz » Thu Jul 26, 2018 12:29 am

Version 1.1.2 has been validated.
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user
User avatar
AbaddonOrmuz
Registered User
Posts: 640
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact: