PEAK XOOPS - EMLH: compile Smarty in englishin japanese

EMLH: compile Smarty

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/11 16:01
irmtfan  »°Åù·³Áâ   Posts: 96

in multimenu i want to assign a negative value in persian and positive value in english so i input like this:
[ en]200[ /en][ fa]-200[ /fa]
and smarty works fine when i call it by value in template:
<{ $block.block_size }>

but in if tags it doesnt work:
<{if $block.block_size >= 0}>

is there any solution for it?
Votes:4 Average:7.50
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/14 5:49
GIJOE  ÀèǤ·³Áâ   Posts: 4110
You should learn how EMLH works.

Anyway try

<{if easiestml($block.block_size) >= 0}>
Votes:3 Average:6.67
Previous post - Next post | Parent - No child | Posted on 2006/10/15 18:10
irmtfan  »°Åù·³Áâ   Posts: 96
Yes it works!
of course i do it in block.php like this:
$block['block_size'] = easiestml($options[8]);
thank you

Votes:7 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!