Version: 1.0, by iA1
Developer Last Online: Jul 2023
Category: Show Thread Enhancements -
Version: 3.8.x
Rating:
Released: 09-10-2018
Last Update: Never
Installs: 7
Supported Uses Plugins Auto-Templates
Re-useable Code Additional Files
========== PURPOSE / ABOUT ==========
The purpose of this mod is to auto-switch from legacy postbit to horizontal postbit style whenever a person browses your forum using a mobile device. This helps in creating responsive template, as horizontal postbit occupies less screen width than legacy postbit.
The mobile browser detection is accomplished using a publicly available mobile detection class from: http://code.google.com/p/php-mobile-detect/
There are no options to set, just upload the file and import the xml product.
=========== COMPATIBILITY ===========
Should be compatible with all vB 3.x.x and 4.x.x versions.
========= BACKUP / WARNING ==========
This mod does NOT alter your database however it is always good practice to keep regular backups and you should backup before installing ANY new mod.
As always mods are USE AT YOUR OWN RISK. I will try to help if I can but no guarantee is offered or implied.
========= INSTALL or UPGRADE ========
To Install:
Upload Mobile_Detect_v2.8.33.php to the /includes/ directory.
In Admin CP go to Plugins & Products -> Manage Products -> Add/Import Product
Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.
Click "Import"
To Upgrade:
Upload Mobile_Detect_v2.8.33.php to the /includes/ directory, overwrite if necessary.
In Admin CP go to Plugins & Products -> Manage Products -> Add/Import Product
Click on "Choose File" and browse to the product xml file that was packaged in the .zip file.
Change "Allow Overwrite" to YES
Click "Import"
There are no settings for this mod. It is enabled as soon as it is installed.
=====PLEASE DO NOT REDISTRIBUTE=====
This mod is only available on www.vbulletin.org. No other sites may redistribute this mod. If you find this mod at any site besides the above please contact me by PM or by email.
Any chance you can make it only apply to certain styles (or can provide a way to not include it on a certain style)? I have a dedicated mobile theme and this is causing some issues with it.
Any chance you can make it only apply to certain styles (or can provide a way to not include it on a certain style)? I have a dedicated mobile theme and this is causing some issues with it.
Go to your plugin manager in admincp and modify the plugin "Mobile Browser detection and horizontal postbit selector". Just before the first line, add the following:
Code:
if (STYLEID != XX) { // replace XX with the style id of your mobile style
And at the end of plugin, after the last line, simply add a closing curly bracket: