MyBB Hacks

Full Version: if this AND this (how to?)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey hey,

Awesome plugin, has made my life so much better since discovering it.

I'm pushing my limits here and not sure if this is possible with this plugin but basically what I'm trying to do is say, if inbetween this and this display this.

I tried this but the page went blank.

PHP Code:
<if $userfields['fid43'] >= 26 AND <=50 then><div class="border board"><div class="health-bar-decent" style="width: {$userfields['fid43']}%; text-align: center;">{$userfields['fid43']}%</div></div></if>


In order to show the health-bar-decent color the input number for this userfield needs to be equal to or greater than 26 AND equal to or less than 50.

I'm stumped. Help is appreciated,
thanks!

PHP Code:
<if $userfields['fid43'] >= 26 AND $userfields['fid43'] <=50 then>


http://www.php.net/manual/en/language.op...http://www.php.net/manual/en/language.operators.l

Thanks a bunch!
Reference URL's