vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=326725

Auto-Postbit Selector for Mobile Browsers
by iA1
11 Sep 2018 20:53

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


Please "Mark as Installed" if you use this.
Donations always appreciated.

iA1 11 Sep 2018 20:55

Reserved for future updates

crazymook 19 Sep 2018 15:39

Looks like I might be the first to try. Hold on to your butts.

crazymook 19 Sep 2018 15:41

Works perfect, thanks!

crazymook 19 Sep 2018 15:52

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.

iA1 19 Sep 2018 20:02

Quote:

Originally Posted by crazymook (Post 2596432)
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And at the end of plugin, after the last line, simply add a closing curly bracket:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


crazymook 19 Sep 2018 20:40

Perfect!! Thanks so much.


All times are GMT. The time now is 18:05.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.