2015-07-02, 12:36 AM
Hello all !
I know that to edit a template you use for example (i copie the one wrote in the mybb documentation) :
But i don't know how to make my {$myVar} in the beginning of a template. For example in headerinclude template, i need to insert in the end/beginning, because this template is different for each theme and it's difficult to adapt my code.
Thank you
I know that to edit a template you use for example (i copie the one wrote in the mybb documentation) :
Quote:find_replace_templatesets( "index", "#" . preg_quote('<body>') . "#i", '<body>{$myVar}' );
But i don't know how to make my {$myVar} in the beginning of a template. For example in headerinclude template, i need to insert in the end/beginning, because this template is different for each theme and it's difficult to adapt my code.
Thank you