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 (Moderator) BirdOPrey5 is online now
Developer Last Online: Apr 2017 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (5 votes - 5.00 average) Installs: 55
Released: 06 Dec 2012 Last Update: Never Downloads: 291
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

Comments
  #2  
Old 06 Dec 2012, 01:04
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is online now
 
Join Date: Jun 2008
Real name: Joe D.
List of Compatible Mods:
(Will edit if more get added by any coder)

Sidebar Anywhere - http://www.vbulletin.org/forum/showthread.php?t=283307
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #3  
Old 06 Dec 2012, 23:03
RedTurtle's Avatar
RedTurtle RedTurtle is offline
 
Join Date: May 2006
Thank you so much for this mod! Needed this today and just came on VBorg and found this was just recently released.

Worked perfectly!

Edit: What do you recommend as to the best way to use these options in a template?

Last edited by RedTurtle; 07 Dec 2012 at 00:31.
Reply With Quote
  #4  
Old 07 Dec 2012, 02:04
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is online now
 
Join Date: Jun 2008
Real name: Joe D.
The easiest way to implement this in a template would be to edit the plugin for this mod...

At the bottom add lines such as:


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

Then in a template you can use...


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

__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #5  
Old 07 Dec 2012, 05:33
v123shine v123shine is offline
 
Join Date: Sep 2008
Nice mod. Thanks
__________________
Games
Reply With Quote
  #6  
Old 12 Jan 2013, 13:01
acast acast is offline
 
Join Date: Aug 2008
Anybody knows if this plugin works for the mobile quotes? They don't appear in notifications.
Reply With Quote
  #7  
Old 12 Jan 2013, 13:53
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is online now
 
Join Date: Jun 2008
Real name: Joe D.
I'm not sure what "mobile quotes" are so I doubt it. The only mod it works with I know of is my Sidebar Anywhere.
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #8  
Old 15 Jan 2013, 10:09
sinomama sinomama is offline
 
Join Date: Sep 2008
It doesn't work for 3.8.5. What a pity.
Reply With Quote
  #9  
Old 21 Feb 2013, 18:13
bartek24m bartek24m is offline
 
Join Date: Nov 2005
How to implement it in "footer" template ?

Where do i need paste it:

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


Last edited by bartek24m; 21 Feb 2013 at 18:20.
Reply With Quote
  #10  
Old 03 Mar 2013, 12:07
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is online now
 
Join Date: Jun 2008
Real name: Joe D.
Templates use template conditionals...

You can try:


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

or


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

__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #11  
Old 06 Mar 2013, 00:01
karabaja3's Avatar
karabaja3 karabaja3 is offline
 
Join Date: Jan 2008
Will this work on v3.8.7?
Becuase this one doesn't http://www.vbulletin.org/forum/showthread.php?t=173239
Reply With Quote
  #12  
Old 09 Mar 2013, 09:42
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is online now
 
Join Date: Jun 2008
Real name: Joe D.
Only for 4.x, sorry.
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #13  
Old 10 Mar 2013, 17:53
ivanp ivanp is offline
 
Join Date: Sep 2007
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.
Reply With Quote
  #14  
Old 09 Jun 2013, 12:25
Budget101 Budget101 is offline
 
Join Date: Jul 2008
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.
wouldn't removing the following line do the same thing??


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

Reply With Quote
  #15  
Old 09 Jun 2013, 12:34
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Hey BOP, does this make our videos and stuff work on iPhones and pads?
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 12:08.

Layout Options | Width: Wide Color: