Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.
NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
If I want to remove some elements from prosilver is there any way I could do it by using extensions? One way is of course to just hide the elements by using css but I'd like that the elements wouldn't render at all. I know I could just edit the core templates but I'd like to have core code as it is and do modifications in extensions.
Without specifying which parts you exactly want to hide, it is impossible to tell.
It might be possible to set an {% if %} statement to false, so it will not get rendered.
But in general, it is not possible to not render a specific part in prosilver.
You can indeed use css to set display: none; or use jQuery to $(selector).hide().
I believe there should be more possibilities once the new theme comes out, Chameleon, but that will be a while.
Another possibility is to route the user to a completely different template file from within your extension, and copy and adjust the core template file.
But that will cause for it to me high maintenance, as for each new phpBB version you will have to check for changes in that specific template file(s) and add them yourself. Which pretty much comes down to making core changes.
This also causes a lot of maintenance but this way at least I can grep my files that contains text 'HIDE_FEATURE'. Let's hope that in the future doing this will be easier.
I think he's modifyin core files, so then it should be possible.
That does however mean this became Custom coding, rather than a Extension writing discussion.
Perhaps the OP wants parts of code not be rendered in the "view source" side of things?
Miigii wrote: ↑Tue Mar 26, 2019 10:36 am
One way is of course to just hide the elements by using css but I'd like that the elements wouldn't render at all.