![]() |
Mobile Device & Browser Detection (Adapted by BOP5)
1 Attachment(s)
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: http://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 Please "Mark as Installed" if you use this. :) Donations always appreciated. :up: Nominate MOTM if you LOVE it! ;) |
List of Compatible Mods:
(Will edit if more get added by any coder) Sidebar Anywhere - https://vborg.vbsupport.ru/showthread.php?t=283307 |
Thank you so much for this mod! Needed this today and just came on VBorg and found this was just recently released.
Worked perfectly! :D Edit: What do you recommend as to the best way to use these options in a template? |
The easiest way to implement this in a template would be to edit the plugin for this mod...
At the bottom add lines such as: PHP Code:
Code:
<vb:if condition="$vboptions['isMobile']">xxxx</vb:if> |
Nice mod. Thanks
|
Anybody knows if this plugin works for the mobile quotes? They don't appear in notifications.
|
I'm not sure what "mobile quotes" are so I doubt it. The only mod it works with I know of is my Sidebar Anywhere.
|
It doesn't work for 3.8.5. What a pity. :(
|
How to implement it in "footer" template ?
Where do i need paste it: Code:
if ($vbulletin->detect->isMobile()) |
Templates use template conditionals...
You can try: Code:
<vb:if condition="$vbulletin->detect->isMobile()"> Code:
<vb:if condition="$vbulletin->detect->isMobile()"> |
All times are GMT. The time now is 07:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|