By: Alan Lake
Date: 2009-12-10
Time: 05:57
|
Having trouble making [onload.user_mode;onformat=f_user_info;subtpl] work.I am trying to merge two strings. PHP's str_replace accomplishes the task. I am trying to use [onload.user_mode;onformat=f_user_info;subtpl] to do the same thing. I get the error message TinyButStrong Error in field [onload.user_mode...] : (parameter onformat) user function 'f_user_info' is not found. Here is my code:
onload_test_1.htm
|
||
By: Skrol29
Date: 2009-12-10
Time: 09:44
|
Re: Having trouble making [onload.user_mode;onformat=f_user_info;subtpl] work.Hi Alan,
f_user_info() is a method, not a public function. You can refer to a method with parameter onformat, see the manual here: http://www.tinybutstrong.com/manual.php#php_oop |
||
By: Alan Lake
Date: 2009-12-10
Time: 14:40
|
Re: Having trouble making [onload.user_mode;onformat=f_user_info;subtpl] work.Thanks, Skrol. That worked. I assumed that becausethe file onload_test_1.htm was opened within the class that it wouldn't be necessary to specify the class name. I've made dumber mistakes. I'm going to post my repaired code here for the sake of others who may have a similar problem.
|