Raul [ThE KuKa] wrote: ↑Mon Jan 21, 2019 4:38 pmWhat I don't understand is that you want to "touch" the "core" code of phpBB for a style "modify", it is not necessary.
I'm not trying to change a style, I'm trying to restructure the internal setup of phpbb. Specifically I want to remove the imageset functionality completely and switch to using the
/themes/images/
directory like in 3.2
But before I decide whether or not to do it, I wanted to understand why this change was made in 3.2. I wanted to understand why the imageset was removed, why the img function was removed from
session.php
and instead moved into a new file called
user.php
and what the purpose of the php directory is (I mean I know it holds core files but it doesn't exist in old versions so what prompted this change).
Lumpy Burgertushie wrote: ↑Mon Jan 21, 2019 5:02 pm
I wonder why you want to do this if you are not upgrading your board version.
The phpbb installation has been modified with 10 years worth of mods, custom code and bits from newer versions. Our phpbb install no longer knows what version it is. In order to upgrade we would basically have to start from scratch. We cannot afford to do that at this time so I am porting over features and improvements from 3.2.
Lumpy Burgertushie wrote: ↑Mon Jan 21, 2019 5:02 pmphpbb from 3.1 forward does not use the imageset system at all.
Exactly, and I don't want my board to use the imageset system either as I assume there was a good reason for removing it and from what I've been able to piece together, it's performance related.
Lumpy Burgertushie wrote: ↑Mon Jan 21, 2019 5:02 pmas was said above, I can see no reason to edit any php files to accomplish this.
I attempted to reverse engineer the system 3.1+ uses and it looks like in order to remove the imageset I would only need to replace what
$user->img
outputs and then move my images into
/themes/images/
. Since
$user->img
is a php function in
session.php
I would need to replace that function with the one in
user.php
in 3.1.