Back to vBulletin 4.x Add-ons

Mobile Device & Browser Detection (Adapted by BOP5)
Mod Version: 1.00, by BirdOPrey5

vB Version: 4.x.x Rating: (5 votes - 5.00 average) Installs: 60
Released: 06 Dec 2012 Last Update: Never Downloads: 356
Not Supported Uses Plugins Additional Files Re-usable Code  

This mod has no settings or options.

Installed alone and you will see nothing new.

The purpose of this mod is to bring a reliable way of detecting mobile browsers and devices to vBulletin for use in other mods.

Currently the only mod I know it is recommended for is my Sidebar Anywhere mod.

The bulk of the work of this mod is done by a publicly available PHP Mobile Detection class from:
https://code.google.com/p/php-mobile-detect/

The file name was changed to prevent conflicts but the file contents including license information remains unchanged.

Once installed the mod will allow you to use $vbulletin->detect to detect various mobile options anywhere $vbulletin variable is available in the code.

Its plugin load priority is set to 1 so it executes before all other plugins.

Code:
$vbulletin->options['bop5_mob_detect'] = true; //True if mod enabled/installed
$vbulletin->detect->isMobile()    - true if any mobile device
$vbulletin->detect->isTablet()    - true if tablet
$vbulletin->detect->isiOS()       - true if any iOS device
$vbulletin->detect->isAndroidOS() - true if any Android
------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated.
Nominate MOTM if you LOVE it!

Download

File Type: %1$s Mobile Browser Detect v1.zip (13.9 KB, 405 downloads)

Similar Mods

Add-On Releases Mobile Device Style Assignment vBulletin 3.6 Add-ons
Mobile Device Style Assignment vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024