06-01-2016, 06:38 AM
Hi!
I've a problem with my forum passing php variables to template, I want I'cant pass $width y $height
I'm using a "MyBB Hacks" plugin and I can effectively use PHP in templates so this should work:
I've a problem with my forum passing php variables to template, I want I'cant pass $width y $height
I'm using a "MyBB Hacks" plugin and I can effectively use PHP in templates so this should work:
PHP Code:
|
But not! echo works but print nothing!
From controller-side I've this:
PHP Code:
$height = 240;
$width = 120;
// ...
eval("\$width = \"\$width\";");
eval("\$height = \"\$height\";");
I've been also trying with {$height} and {$width} with no-difference.
Now you can see the problem here, because "Ad here" in a green box at the right side of the first post should have a width of 120px but.... if you inspect the HTML you see it's EMPTY!
What can I fix this ?
BTW: the problem is NOT the plugin (it's great) but I need all the help I can get