![]() |
Auto-Postbit Selector for Mobile Browsers
1 Attachment(s)
========== 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. Current Version: 1.0 Version History: 1.0 - Initial Release Live Demo: https://www.vb3mobile.ml , https://www.vb4mobile.ml |
Reserved for future updates
|
Looks like I might be the first to try. Hold on to your butts.
|
Works perfect, thanks!
|
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.
|
Quote:
Code:
if (STYLEID != XX) { // replace XX with the style id of your mobile style Code:
} |
Perfect!! Thanks so much.
|
All times are GMT. The time now is 11:29 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:
|