/UserAgentDetector

Joomla system plugin which detects user agent of website visitor and sets a session variable accordingly.

Primary LanguagePHP

User Agent Detector

Functions

  • 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).

  • Session variable that is set: ualayout. Possible values: desktop, tablet, mobile, bot.

  • Use plg_useragentdetector.zip to install on your Joomla website.

  • This plugin uses the excellent Mobile_Detect library: https://github.com/serbanghita/Mobile-Detect