Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Mobile Device & Browser Detection (Adapted by BOP5) Details »
Mobile Device & Browser Detection (Adapted by BOP5)
Mod Version: 1.00, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Apr 2020 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (5 votes - 5.00 average) Installs: 61
Released: 06 Dec 2012 Last Update: Never Downloads: 341
Not Supported Uses Plugins Additional Files Re-usable Code  

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.


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

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated.
Nominate MOTM if you LOVE it!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases Mobile Device Style Assignment dartho vBulletin 3.6 Add-ons 406 20 Apr 2013 23:14
Mobile Device Style Assignment dartho vBulletin 3.5 Add-ons 3 04 Dec 2006 21:49

  #16  
Old 09 Jun 2013, 16:24
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Toorak Times View Post
Hey BOP, does this make our videos and stuff work on iPhones and pads?
No- it merely detects if it is a mobile browser or not- it does nothing without custom coding.

However to have YouTube and other videos work on iPhones and stuff check out these HTML 5 changes- http://www.vbulletin.org/forum/showthread.php?t=283594
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #17  
Old 31 Jul 2013, 19:57
behcet behcet is offline
 
Join Date: Apr 2007
upgrade pls
Reply With Quote
  #18  
Old 31 Jul 2013, 22:45
datoneer datoneer is offline
 
Join Date: Jul 2011
Thanks, installed, nominated
Reply With Quote
  #19  
Old 16 Aug 2013, 07:38
Okuma Steve Okuma Steve is offline
 
Join Date: May 2010
Just installed this on my site and it is treating all my devices as desktop browsers and not mobile. Any ideas on why that may be?

I've tested it with a nexus 4, nexus 7, and an Ipad 1

I'm using this to hide a footer ad from mobile users:


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

Reply With Quote
  #20  
Old 17 Aug 2013, 11:41
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Okuma Steve View Post
Just installed this on my site and it is treating all my devices as desktop browsers and not mobile. Any ideas on why that may be?

I've tested it with a nexus 4, nexus 7, and an Ipad 1

I'm using this to hide a footer ad from mobile users:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Did you follow the instructions in post #4? $vboptions['isMobile'] isn't going to exist if you don't set the value via a plugin first.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #21  
Old 12 Mar 2014, 05:40
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
This work with 4.2.2? Cause I installed it and I still get the regular site with my iphone.
__________________
Metallica Unauthorized..
Reply With Quote
  #22  
Old 16 Nov 2014, 11:51
Actualidad TMA's Avatar
Actualidad TMA Actualidad TMA is offline
 
Join Date: Sep 2010
Originally Posted by oldfan View Post
This work with 4.2.2? Cause I installed it and I still get the regular site with my iphone.
Same for me.
Reply With Quote
  #23  
Old 16 Nov 2014, 12:02
Actualidad TMA's Avatar
Actualidad TMA Actualidad TMA is offline
 
Join Date: Sep 2010
Originally Posted by ivanp View Post
Nice mod

I suggest changing the hook to "init_startup" to be able to replace default mobile browser detection in init.php with:


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

That way tablets will not be considered as mobile devices, thus not being served mobile style as default style.
Can you explain how to implement this? Which files i have to modify?

Thanks.
Reply With Quote
  #24  
Old 16 Nov 2014, 20:23
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by oldfan View Post
This work with 4.2.2? Cause I installed it and I still get the regular site with my iphone.
Originally Posted by Actualidad TMA View Post
Same for me.
Installing this doesn't change any styles. It is for use in your own custom coding.
__________________
-Joe
Former vb.org Moderator. Retired.

@BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic
Note - I no longer making new VB mods, sorry.
Reply With Quote
  #25  
Old 25 Nov 2014, 20:50
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Question

Originally Posted by BirdOPrey5 View Post
Installing this doesn't change any styles. It is for use in your own custom coding.
Can it be used for changing styles?
__________________
Metallica Unauthorized..
Reply With Quote
  #26  
Old 27 Nov 2014, 21:49
tme_power tme_power is offline
 
Join Date: Sep 2006
Very nice mod indeed! Thanks.
Reply With Quote
  #27  
Old 07 Dec 2014, 12:32
Morrus Morrus is offline
 
Join Date: Jan 2002
One potential use I can see for this is controlling the number of columns shown on the CMS page when viewed on a mobile device as set in the Content Columns dropdown in the Section Information section of the (frontend) Section editor. Certainly for my site, it look much better as one column on a mobile device, but better as two columns on a desktop computer.

Is there an easy way to use this plugin to conditionify whatever bit of code sets the number of columns?
__________________
www.enworld.org
Reply With Quote
  #28  
Old 16 Dec 2014, 21:02
iyihost's Avatar
iyihost iyihost is offline
 
Join Date: Feb 2008
vbulletin 3.8 ?
__________________
Happy
Reply With Quote
  #29  
Old 28 Feb 2015, 23:26
Mathsman Mathsman is offline
 
Join Date: Aug 2010
With this plugin can assign users how mobile themes?
Reply With Quote
  #30  
Old 09 Apr 2015, 12:52
Big-K Big-K is offline
 
Join Date: Feb 2005
To earlier question, how do you use this to change styles?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 09:32.

Layout Options | Width: Wide Color: