MyBB Hacks

Full Version: working with numbers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
...to place PHP expressions in template must use

Code:
<?php
........
?>


am i wrong?

into a template i'm using this code:

Code:
<setvar Z>(float)$threadfields['X']*100/(float)$threadfields['Y'] </setvar>
<td>{$tplvars['Z']}</td>


where is my mistake?

Pages: 1 2
Reference URL's