1
nayeem
smarty limitations?
  • 2004/6/23 0:27

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


i am trying to use a tag as follows -
<{$photo.rating*10}>
this usually works fine under normal smarty, but on XOOPS i am getting the error :
syntax error: unrecognized tag: $photo.rating*10 (Smarty_Compiler.class.php, line 382) in file class/smarty/Smarty_Compiler.class.php line 1824

anyone came across this before and knows a workaround?

nayeem

2
ackbarr
Re: smarty limitations?

does it make any difference if you space it out?
le="color: #000000"><?php <{$photo.rating * 10}>

3
nayeem
Re: smarty limitations?
  • 2004/6/23 14:43

  • nayeem

  • Just popping in

  • Posts: 44

  • Since: 2004/1/3 1


nope.

actually found the bug in the smarty forum, aparantly smarty 2.5 (which is used by the latest xoops) doesnt support equations like the above... we need to use the latest smarty which is 2.6.x i think. i downloaded the latest smarty and copied it over in the class directory and its all working fine now (you may need to set the permissions right for the files chmod -R 755 smarty from class directory)