This system plugin detects the user agent of your website visitor and sets a session variable accordingly.
Based on the user agent, the plugin detects if the site is running on a desktop pc, tablet or smartphone. It can also detect if the visitor is a spider bot (search engine).
The session variable that is set is: ualayout. Possible values: desktop, tablet, mobile, bot.
Download the installer file here: http://www.rkrweb.nl/update/plg_system_useragentdetector/plg_system_useragentdetector.1.0.16.zip
This plugin uses the excellent Mobile_Detect library: https://github.com/serbanghita/Mobile-Detect
04-08-2017: Added language files. Mobile_detect library updated to version 2.8.25. UserAgentDetector now version 1.0.16.
18-10-2016: Code improvement mobile detection. UserAgentDetector now version 1.0.15.
06-09-2016: Mobile detect update Mobile_detect library updated to version 2.8.22. UserAgentDetector now version 1.0.14.
26-02-2016: Mobile detect update Mobile_detect library updated to version 2.8.19. UserAgentDetector now version 1.0.13.
23-09-2015: Added link to go to plugin manager after installation, thanks Robert Kronshorst for this suggestion. UserAgentDetector now version 1.0.12.
16-09-2015: Added test if class was correctly loaded. Of not, default to desktop. UserAgentDetector now version 1.0.11.
07-09-2015: Update fix in XML file, thanks UberGruber (https://github.com/UberGruber). UserAgentDetector now version 1.0.10.
31-08-2015: Mobile detect update Mobile_detect library updated to version 2.8.16. UserAgentDetector now version 1.0.9.
27-04-2015: Mobile detect update Mobile_detect library updated to version 2.8.13.
28-01-2015: Mobile detect update Mobile_detect library updated to version 2.8.11.
29-10-2013: 1.0.6 Mobile Detect update. The main Mobile Detection library is updated from version 2.6.6 to version 2.7.1.
06-08-2013: Minor update. Now supports updating on Joomla 1.0.3. Text alignment fixed. Mobile_detect library updated to version 2.6.6. Typos fixed. Link to Mobile Detect fixed.
22-04-2013: Major update. Please uninstall the old version first and then install this new one. The plugin is now setup with a Joomla Extension Update server. Now you can easily install updates by using the Joomla updater. There is no need anymore to manually update the Mobile_Detect.php library. This will now be updated to the latest version through the Joomla updater. Thanks Peter Martin @pe7er for this tip!