MyBB Community Forums

Full Version: Templates Functions addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was reading the codes and the saw something like

$header

I know its a template thing but i can i use it like that in a code?

I have this template function but whenever i use the

$functionname

it doesnt work anyone knows how to make the thing work ?

I go to:

> templates
> modify / delete
> template name
> Expand
> add template
> add codes there along with the name
> add it on your template
> press button "add template"

I already added it like that i just dont know how can I use it please help ... thanks Big Grin
In order to use $functionname in a template, you have to set in the in PHP document.
eval("\$functionname = \"".$templates->get("TEMPLATE_NAME_HERE")."\";");