The eof tags are required by the ubb scripts not php persay.
The eof tags have nothing to do with php.
That is the reason for the comment line to not change them.
And yes you can use php and or html between the eof tags.
If you would just insert them back in and clean up the extra php close tags . Save and close.
I think it would resolve your delimma.
PS,
don't forget to make sure all the extra blank line feeds outside of the eof tags are deleted also
Last edited by Ruben; 02/05/2019 1:03 PM. Reason: Added comment