Page 1 of 1

[3.2][BETA] Archive Forum

Posted: Tue May 01, 2018 8:35 pm
by martti
Here the fruits of my work to be beta-tested mercilessly:

Extension Name: Archive Forum
Author: martti
Extension Description:

With this extension you define one forum as the "Archive" for obsolete topics.
In the "Archive forum" the original forum is shown below the title of each topic.
Two moderator actions are provided "Archive" and "Restore". They depend on the same permission as "Move"(topics).
Note that you still have to set yourself the appropriate permissions for the "Archive Forum" and give it a proper name (suggestion: "Archive"). Normal users should not be able to post in there.

Extension Version: 0.2.1
Requirements:
  • phpBB 3.2.1
  • PHP 7.1+
Extension Download: https://github.com/marttiphpbb/phpbb-ex ... master.zip The files are to be put into ext/marttiphpbb/archiveforum
Github repository: https://github.com/marttiphpbb/phpbb-ext-archiveforum
Languages: en
Templates: Prosilver
Screenshots:

A topic in the Archive:

Image

Archive viewforum

Image

Archive topic in MCP

Image

Archive forum MCP

Image

QUICKMOD:

Image

Confirm Archive:

Image

Confirm Restore from Archive

Image

ACP

Image

Re: [3.2][BETA] Archive Forum

Posted: Tue May 01, 2018 9:24 pm
by jan_2017
Very Nice !!! :D

Re: [3.2][BETA] Archive Forum

Posted: Wed May 02, 2018 10:26 am
by sakkiotto
nice work! ;)

Re: [3.2][BETA] Archive Forum

Posted: Wed May 02, 2018 6:47 pm
by Raul [ThE KuKa]
I like martti!!! :medal:

Re: [3.2][BETA] Archive Forum

Posted: Wed May 02, 2018 8:32 pm
by John Rambo
Raul [ThE KuKa] wrote:
Wed May 02, 2018 6:47 pm
I like martti!!! :medal:
quote....

Re: [3.2][BETA] Archive Forum

Posted: Wed May 02, 2018 9:21 pm
by nou nou
That looks very useful, subscribed! :)

Re: [3.2][BETA] Archive Forum

Posted: Mon Sep 24, 2018 12:26 pm
by martti
Version 0.2.0 listens to an event of the Calendar Auto Archive extension

Re: [3.2][BETA] Archive Forum

Posted: Mon Sep 24, 2018 7:21 pm
by nou nou
Very nice looking! I will test it as soon as I have time to dive into phpBB again (which is not right now but I've subscribed to the topic... ;))

Would it be possible to have a feature where users can flag a topic for archival?

Could be an additional reason in the core flagging functionality...

Re: [3.2][BETA] Archive Forum

Posted: Mon Sep 24, 2018 9:24 pm
by martti
nou nou wrote:
Mon Sep 24, 2018 7:21 pm
Would it be possible to have a feature where users can flag a topic for archival?
For me that would be something to put in a separate extension. I like to keep extensions simple, focused on one thing. It could be a topic flagging extension; to flag whatever is configured. However, probably I'm not going to make such extension myself.

Re: [3.2][BETA] Archive Forum

Posted: Mon Sep 24, 2018 10:02 pm
by nou nou
Fair enough.

Re: [3.2][BETA] Archive Forum

Posted: Sun Jul 21, 2019 6:12 pm
by Tarantino
On the move page "Do you want to move the topic to the archive forum?"

If I've the debug enable I get this warning:

[phpBB Debug] PHP Notice: in file [ROOT]/ext/marttiphpbb/archiveforum/event/mcp_topic_listener.php on line 134: Undefined variable: forum_id

Kudos

Re: [3.2][BETA] Archive Forum

Posted: Sun Jul 21, 2019 8:20 pm
by martti
Tarantino wrote:
Sun Jul 21, 2019 6:12 pm
On the move page "Do you want to move the topic to the archive forum?"

If I've the debug enable I get this warning:

[phpBB Debug] PHP Notice: in file [ROOT]/ext/marttiphpbb/archiveforum/event/mcp_topic_listener.php on line 134: Undefined variable: forum_id

Kudos
Thanks, it's indeed an unset variable. That line can be removed.

To be removed:

Code: Select all

			'f'				=> $forum_id,
Update. Fixed in version 0.2.1

Re: [3.2][BETA] Archive Forum

Posted: Tue Jul 23, 2019 1:33 pm
by ac_roma
great mod and useful ;)

Re: [3.2][BETA] Archive Forum

Posted: Fri Jul 26, 2019 1:28 pm
by Tarantino
Thks for the fix martii. Btw would be great if you could make this to accept multiple locations.

For example. I would create a Trash Location and select the Trash forum.
Then I would create a Topic Remodelation and select the Remodelation forum.

Se we would have more then 1 button without the need to create a clone of this extension for this behavior.

OR as alternative we could only have 1 button but we would select that the Forum IDs 1,2,3 would send to Trash and the Forum IDs 4,5,6 would send to Remodelation. That way the same button depending on the forum we're at would automatically move to a different place.

One method or another would make this extension even better.

Dunno what do you think about this. Best Regards

Re: [3.2][BETA] Archive Forum

Posted: Fri Jul 26, 2019 4:30 pm
by martti
Tarantino wrote:
Fri Jul 26, 2019 1:28 pm
Thks for the fix martii. Btw would be great if you could make this to accept multiple locations.

For example. I would create a Trash Location and select the Trash forum.
Then I would create a Topic Remodelation and select the Remodelation forum.

Se we would have more then 1 button without the need to create a clone of this extension for this behavior.

OR as alternative we could only have 1 button but we would select that the Forum IDs 1,2,3 would send to Trash and the Forum IDs 4,5,6 would send to Remodelation. That way the same button depending on the forum we're at would automatically move to a different place.

One method or another would make this extension even better.

Dunno what do you think about this. Best Regards
For my use case that is overcomplicated. I like also to keep extensions as simple as possible, keeping focus on one thing.