MyBB Hacks
MyBB Hacks
>
MyBB Plugins
>
Template Conditionals
> can i serve some content only to mobile devices using conditonals?
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.
Hamster24
04-26-2015, 08:06 PM
Hi
is there a way to serve some text content to mobile devices only?
if
user agent =
elseif
something like that?
ZiNgA BuRgA
04-26-2015, 08:58 PM
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
Hamster24
04-27-2015, 09:14 PM
thanks for the head start zinga i will look into that.
MyBB Hacks
>
MyBB Plugins
>
Template Conditionals
> can i serve some content only to mobile devices using conditonals?
Reference URL's
MyBB Hacks:
http://mybbhacks.zingaburga.com/index.php
: