Upgrading ACP's core code.

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Upgrading ACP's core code.

Post by 3Di »

Let's talk about "re-inventing" (core code) the ACP before to re-styling it. :)

I am aware of the discussions already made here and there and the archived RFC and everything, so please do not point me to those. It's time to re-code the ACP :geek: .. at least for 3.3.x?

What about? There are plans we are not aware of?
Last edited by 3Di on Fri Oct 28, 2016 4:33 am, edited 1 time in total.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1904
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: New theme for ACP

Post by DavidIQ »

I'm not saying that it should or shouldn't be done but what would be the point of re-writing the ACP? There should be a goal we want to reach if we were to do something like that.
Image

User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: New theme for ACP

Post by 3Di »

DavidIQ wrote: Fri Oct 28, 2016 2:38 am I'm not saying that it should or shouldn't be done but what would be the point of re-writing the ACP? There should be a goal we want to reach if we were to do something like that.
I want to turn your question to yourself and place it under another point of view.

Let's try.. do you think the ACP core code does it belong to the main one?
I mean, don't you think that the ACP core code is buried in antiquity?

Feel free David to split this posts into a new topic with (please) a different title, I will be more than glad to partecipate on it.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1904
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Rewrite ACP

Post by DavidIQ »

I've split off the topic now.

And seriously? You answered a question with a question? You're the one that brought up wanting to rewrite the ACP so it's up to you to provide reasons why it should be done. You can't just drop a bomb like that and just expect everyone to be in agreement just because.

So according to you this should be done because the code is "old". What is old about it and how would you improve it? What other reason(s) would you have for wanting to see this done?
Image

User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: Rewrite ACP

Post by 3Di »

DavidIQ wrote: Fri Oct 28, 2016 3:42 am I've split off the topic now.
Kind of you, thx.
DavidIQ wrote: Fri Oct 28, 2016 3:42 amAnd seriously? You answered a question with a question?
Yes I did, I know that's not "ethical" but I hoped me to read between the lines. :)
DavidIQ wrote: Fri Oct 28, 2016 3:42 amYou're the one that brought up wanting to rewrite the ACP so it's up to you to provide reasons why it should be done. You can't just drop a bomb like that and just expect everyone to be in agreement just because.
I am not actually wanting to do this nor somebody else for "me", I would like it to be done though for phpBB. Indeed.
DavidIQ wrote: Fri Oct 28, 2016 3:42 amSo according to you this should be done because the code is "old". What is old about it and how would you improve it? What other reason(s) would you have for wanting to see this done?
This problem affects also extensions, the way we have to code those. We have to use a type of coding style for ACP and another one for the rest of.. to be more accurate I can say it is not normal we have to globalise variables instead of using objects.

All of this affects phpBB therefore the way extension writers (like me) have to follow, I am a little bit experienced but's a no-no for those are new to this world (like not OOP coders or vice-versa).
What about to be able to create new styles for the ACP then? It's trivial I know.. but?

All of this being said, it is under the vision of every savyi coder the ACP is buried somewhere into the ancient thinghs, It's not a new nor a breaking-news. Sure it's not a bomb. :)

edit: I corrected some typos, in the meantime.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
MattF
Extension Customisations
Extension Customisations
Posts: 675
Joined: Mon Mar 08, 2010 9:18 am

Re: Rewrite ACP

Post by MattF »

3Di wrote: Fri Oct 28, 2016 4:15 amThis problem affects also extensions, the way we have to code those. We have to use a type of coding style for ACP and another one for the rest of.. to be more accurate I can say it is not normal we have to globalise variables instead of using objects.
This is a problem.

The ACP, MCP and UCP are all decoupled from Symfony components. That means they do not support the container based DI system, so they require using things like globals, trigger errors and other things that are no longer considered PHP the right way.

And as 3Di points out. Writing ext code for the modules requires going backwards in time, to antiquated phpBB coding. We can't throw exceptions (and have a nice error page like outside the ACP), we can't use Symfony's Response object for simpler redirects and AJAX, etc.

There are plans to bring the ACP up to speed, however. But it's a lot of work and will take time.
Has an irascible disposition.

CHItA
Development Team
Development Team
Posts: 169
Joined: Thu Mar 12, 2015 1:43 pm
Location: Budapest, Hungary

Re: Upgrading ACP's core code.

Post by CHItA »

There are plans to refactor the ACP (as basically everything else that is in a front-facing file). Probably when someone will have some architectural plans, then you can expect to see an RFC posted somewhere in this forum.

As VSE said, the *CPs are pretty big beasts so it may take a lot of time/multiple major releases, however, once we implement the basic infrastructure extensions would probably be the first ones to be able to take advantage of that (as every extension author could refactor their own code only, to take advantage of the changes if they wish).

User avatar
hanakin
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 968
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Re: Upgrading ACP's core code.

Post by hanakin »

also the ACP is the last of those three VSE pointed out that need re-worked as the UCP & MCP are seen by everyone and not just the board admins. The changes also hold back progressive enhancements that can be made to the design/interactions in a new front-end theme as well. AJAX!!!!!!
Donations welcome via Paypal Image

User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: Upgrading ACP's core code.

Post by 3Di »

hanakin wrote: Sat Oct 29, 2016 2:19 pm also the ACP is the last of those three VSE pointed out that need re-worked as the UCP & MCP are seen by everyone and not just the board admins. The changes also hold back progressive enhancements that can be made to the design/interactions in a new front-end theme as well. AJAX!!!!!!
Hello, well.. no need to post so many exclamation marks to enforce something that BTW it's already easily understandable. :) Any way.. let's talk about what? First, I wanted to point out that the issue doesn't just belong to phpBB itself but the way the extension writers have follow in order to accomplish something that can be considered a kind of mental torture, so to speak. If you reckon with this, you just should agree with us (at least VSE and me).

Regards.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
3Di
Registered User
Posts: 951
Joined: Tue Nov 01, 2005 9:50 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Contact:

Re: Upgrading ACP's core code.

Post by 3Di »

CHItA wrote: Fri Oct 28, 2016 9:15 am There are plans to refactor the ACP (as basically everything else that is in a front-facing file). Probably when someone will have some architectural plans, then you can expect to see an RFC posted somewhere in this forum.
In fact the ACP is a front-facing file, technically speaking..

hanakin?


BTW thanks for the heads-up.
CHItA wrote: Fri Oct 28, 2016 9:15 amAs VSE said, the *CPs are pretty big beasts so it may take a lot of time/multiple major releases, however, once we implement the basic infrastructure extensions would probably be the first ones to be able to take advantage of that (as every extension author could refactor their own code only, to take advantage of the changes if they wish).
Well, this bit about multiple major releases it's something discouraging.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades

Post Reply