Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Auto-Postbit Selector for Mobile Browsers Details »»
Auto-Postbit Selector for Mobile Browsers
Version: 1.0, by iA1 iA1 is offline
Developer Last Online: Jul 2023 Show Printable Version Email this Page

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.


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.

Download Now

File Type: zip Mobile-Auto-Postbit_1.0.zip (28.3 KB, 49 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-11-2018, 06:55 PM
iA1 iA1 is offline
 
Join Date: Jul 2018
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved for future updates
Reply With Quote
  #3  
Old 09-19-2018, 01:39 PM
crazymook crazymook is offline
 
Join Date: May 2008
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like I might be the first to try. Hold on to your butts.
Reply With Quote
  #4  
Old 09-19-2018, 01:41 PM
crazymook crazymook is offline
 
Join Date: May 2008
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfect, thanks!
Reply With Quote
  #5  
Old 09-19-2018, 01:52 PM
crazymook crazymook is offline
 
Join Date: May 2008
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 09-19-2018, 06:02 PM
iA1 iA1 is offline
 
Join Date: Jul 2018
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by crazymook View Post
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:
Code:
 }
Reply With Quote
Благодарность от:
crazymook
  #7  
Old 09-19-2018, 06:40 PM
crazymook crazymook is offline
 
Join Date: May 2008
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect!! Thanks so much.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.18786 seconds
  • Memory Usage 2,282KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete