XF 2.2 2.3 what templates are modified?

interforo

Active member
I currently run version 2.2.16 of my page_container which has been heavily modified with the addition of an ads script. Will my edits be preserved once I upgrade to version 2.3?

By the way, I don't understand why XF does not allow codes to be added directly in a box called head and body. This would make things much easier. Wordpress does this, for example.

1721330592328.webp
 
I currently run version 2.2.16 of my page_container which has been heavily modified with the addition of an ads script. Will my edits be preserved once I upgrade to version 2.3?
They will most likely not merge. Mine did not either automatically nor manually. I had to revert them and then reconstruct due to some new template coding.
 
Will my edits be preserved once I upgrade to version 2.3?
That all depends, there will no doubt be template merges to do. Some may happen automatically others may need you to merge manually. I found if there are a lot or I'm confused then its easiest to revert then start from scratch - but make sure in the 2.2 template you have commented the changes so you know what they are and why.

This is very useful and still valid over ten years later.

 
Last edited:
you already have many options for body. this one works for head.

1721332008866.webp

i believe, all the container options above would put the code in all pages of the forum as these sections are common to all.
 
An add-on isn't always the solution either. If XenForo updates the code that the add-on is looking for (find + replace) then it'll break as well and you won't be alerted (the template modification just fails).

At least with a template edit you KNOW from the outdated template, that code has changed and you should inspect it. You could always edit helper_js_global and add your code there. It might not change as much as PAGE_CONTAINER.

That being said, if you have other edits inside of PAGE_CONTAINER outside of these head/body edits, I'd stick it there as it'll still be outdated from your other edits, eventually.
 
An add-on isn't always the solution either. If XenForo updates the code that the add-on is looking for (find + replace) then it'll break as well and you won't be alerted (the template modification just fails).

At least with a template edit you KNOW from the outdated template, that code has changed and you should inspect it. You could always edit helper_js_global and add your code there. It might not change as much as PAGE_CONTAINER.

That being said, if you have other edits inside of PAGE_CONTAINER outside of these head/body edits, I'd stick it there as it'll still be outdated from your other edits, eventually.
I have many script that go either in the head or body
 
Back
Top Bottom