Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 can i serve some content only to mobile devices using conditonals?
Hamster24 Offline
Member
***
Posts: 69
Joined: Sep 2014
Post: #1
can i serve some content only to mobile devices using conditonals?
Hi
is there a way to serve some text content to mobile devices only?
if
user agent =
elseif

something like that?
04-26-2015 08:06 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: can i serve some content only to mobile devices using conditonals?
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

My Blog
04-26-2015 08:58 PM
Find all posts by this user Quote this message in a reply
Hamster24 Offline
Member
***
Posts: 69
Joined: Sep 2014
Post: #3
RE: can i serve some content only to mobile devices using conditonals?
thanks for the head start zinga i will look into that.
04-27-2015 09:14 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: