Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2027

phpBB Custom Coding • Re: Importing macro into template not being refreshed by cache

$
0
0
Altering that functions.php wouldn't work in a style, and I'd need to write a proper extension, right?
The changes above would work in any style:

Code:

<div style="flex-shrink: 0; margin-left: 5px; margin-right: 5px"> {DONO_VALUE} / {DONO_TARGET}$</div>
You need to purge the cache after editing any template files.

I personally don't use many extensions because they don't do exactly what I want or can't. Adding some global template variables should be easy though but I'm not the one to answer that question.
Then I could use template events to inject the entire dynamic part of the header?
Correct, as long as there is template event you can insert your custom template code. If you want I can move this to extension writers discussion.

Statistics: Posted by thecoalman — Fri Dec 27, 2024 10:01 am



Viewing all articles
Browse latest Browse all 2027

Trending Articles