Hi,
If a TBS template could run any PHP function it would be a security problem.
TBS accepts to run functions defined in parameters "onformat" and "ondata" only. And sunch functions must have a certain declaration.
Nevertheless, you can have some customized tags to run your PHP functions from the template. The first way to do this is to place some tags like [fnc.function_name] in the template. Then in PHP do :
$TBS->MergeField('fnc','f_merge_ft',true);
...
function f_merge_ft($Subname) {
return call_user_func($Subname);
}
|
Such functions should not do echo () but should return a string with the content to display.
The second way is to make a TBS plug-in. the principle is the same but customized fields will be automatically merged.