MyBB Hacks

Full Version: can i serve some content only to mobile devices using conditonals?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
is there a way to serve some text content to mobile devices only?
if
user agent =
elseif

something like that?
I can't remember if Template Conditionals allows the $_SERVER variable.  If it does, you can get the user agent from there: http://php.net/reserved.variables.server
thanks for the head start zinga i will look into that.
Reference URL's