Admin CP -> Plugin System -> Add New Plugin
Create a new plugin for the parse_templates hook location. Use this code:
Then you can use:
...in the templates and it will parse to the contents of the template_name template. In some templates you might need to use the global scope:
Create a new plugin for the parse_templates hook location. Use this code:
Code:
eval('$[color=red]var_name[/color] = "' . fetch_template('[color=red]template_name[/color]') . '";');
Code:
$[color=red]var_name[/color]
Code:
$GLOBALS[[color=red]var_name[/color]]