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?
<{$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)


Login

Who's Online

813 user(s) are online (55 user(s) are browsing Support Forums)


Members: 0


Guests: 813


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits