MyBB Community Forums

Full Version: Browser conditional
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to check if browser is ie then do something else do something else? This is for use in a template.

Currently this is what I'm doing:
<?php if (is_browser('ie')){ ?> then>width="95"<?php } else { ?>width="38"<?php } ?>

I think that is ugly and messy, I'm doing a theme that does an auto resize based on the resolution and IE gives me problems so I need to have those width's like it is.
I already know how to do php in templates. I was looking for a conditional instead that way its cleaner and I don't have php in the templates.