Hi
How can I load a different skin for a mobile device ?
I've read this instruction, but this detects "only" iPad (tablet) and iPhone (smartphone).
Is there a way to detect any mobile device (but no tablets and desktopcomputers) ?
I found this code, but I don't know mutch enough about implementing php-code into html.
Maybe some of you does know how to implement it ?
Kind regards
Alain
How to load a different skin for a mobile device (smartphone)?
- Hopki
- Gnome
- Posts: 13037
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Alain,
Version 5 has the logic trigger: is Mobile.
This detects iOS and Android.
So for say the directional buttons you can select them all then under the visibility logic block set:
is Mobile = true => Visible: False
Regards,
Hopki
Version 5 has the logic trigger: is Mobile.
This detects iOS and Android.
So for say the directional buttons you can select them all then under the visibility logic block set:
is Mobile = true => Visible: False
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
- Hopki
- Gnome
- Posts: 13037
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
If your hosting is PHP enabled then you can look at this little trick.
Please see the TIP.
Regards,
Hopki
Please see the TIP.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
You can add any kind of HTTP_USER_AGENT. With google you find all possible user-agents for Android, windows, Apple and you can select what you want
can be adapted with:
You can add as many as you want.
Code: Select all
if ((strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) || (strpos($_SERVER['HTTP_USER_AGENT'],"iPod")))
Code: Select all
|| (strpos($_SERVER['HTTP_USER_AGENT'],"HereWhatYouWantToDetect"))
Have a nice day
Christian
Christian