Forums Sign Up Reply Search Statistics
Support Issues and Questions GraFX Software Solutions - Forum / Support Issues and Questions /

class fast_template in CWB 1.5

 
Author granin
Forums Member
#1 Posted: 12 Sep 2007 17:24:09
Reply 
Error in
function parse_template ($template, $ft_array)
find:
$content = ((function_exists('file_get_contents'))) ? file_get_contents($filename) : implode("\n", file($filename));
replace:
$content = ((function_exists('file_get_contents'))) ? file_get_contents($file_path) : implode("\n", file($file_path));


Notice in
function value_defined($value, $field = '', $params = '')

If to use in a template:
<!-- IFDEF: USER_SURNAME -->
Users surname: {USER_SURNAME}
<!-- ELSE -->
<i>Users surname is not defined</i>
<!-- ENDIF -->


find
if ($field{0}=='.') $field = substr($field, 1);

replace
if (isset($field{0}) && $field{0}=='.') $field = substr($field, 1);
Author granin
Forums Member
#2 Posted: 12 Sep 2007 22:39:42
Reply 
add
Error in
function rewrite_src_path($contents) {
find:
if(sizeof($this->REWRITE_SRC_PATH)>0) {
replace:
if (strlen($this->REWRITE_SRC_PATH) > 0) {
Author Admin
Forums Member
#3 Posted: 13 Sep 2007 08:30:43
Reply 
we will verify this with programmers, thank you.
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.