Hi
my firend i have this erorr
Fatal error: Call to undefined function: iif() in /home/my domain/public_html/forum/global.php(266) : eval()'d code on line 64
please help me
Did you install the conditionals mod?
no i have not install mod
By any chance are you using the vB nava bar? If so, then I think you didn't add the function.
Do this:
Massacre Wrote:in inc/functions.php
Find
//
// Outputs the contents of a page rendering variables
//
add under
// ###################### Start iif #######################
function iif($expression, $returntrue, $returnfalse = '')
{
return ($expression ? $returntrue : $returnfalse);
}
// #############################################
in inc/class_templates.php
find
$template = str_replace("\\'", "'", addslashes($template));
add under
$template=str_replace("<if condition=","\".iif(",$template);
$template=str_replace("<then>",",\"",$template);
$template=str_replace("<else />","\",\"",$template);
$template=str_replace("</if>","\").\"",$template);