Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
VB4 - Mobile Phone / iPhone / PDA Detection and Style Assignment Details »
VB4 - Mobile Phone / iPhone / PDA Detection and Style Assignment
Mod Version: 1.0.1, by dartho (Coder/Designer) dartho is offline
Developer Last Online: Apr 2019 I like it Show Printable Version Email this Page

vB Version: 4.0.6 Rating: (25 votes - 4.88 average) Installs: 320
Released: 05 Sep 2010 Last Update: 07 Sep 2010 Downloads: 1616
Not Supported Uses Plugins Re-usable Code  

This is a direct port from my 3.x versions which detects most mobile phones, iPhones, PDAs and other mobile browsing devices and automatically presents the user with a specific vBulletin style.

The one significant addition over previous versions is that a user can now over-ride the style assignment - more information in the notes section.

This will probably work with previous versions of vBulletin (but untested)

What can it do?Detects most mobile phones and presents the user with a specific style. If you have multiple styles installed which are optimized for small screen mobile devices, iPhones, WIndows Mobile devices you can assign a specific style to each of these groups.

Whilst designed with mobile device users in mind, you could also assign styles to self defined browsers. For example you can assign an alternative style to Internet Explorer users whilst Firefox users get the default style. You could also assign an alternative style to Google or Yahoo spiders.

Instructions:
0. Install styles which you wish to assign to Mobile/PDA/iPhone users
0.5 Uninstall previous versions
1. Download the product file
2. Install via Product Manager
3. Configure options via vBulletin Options, Mobile Device Detection (should appear at end)
4. Start browsing from your mobile device!
5. Click "Mark as Installed"

If upgrading from a previous 3.5, 3.6 or 3.7 version, you will need to uninstall that and the install this one.

To uninstall simply uninstall the product - there are no database changes or additional files.

See HERE for a lightweight vBulletin 4 style to go along with this addon

Version Control
1.0.0 - Initial Release
1.0.1 - Add option to enable/disable overriding style assignment.

Notes
Previous versions of this mod have forced a mobile device to a specific style, this is no longer the case! If a user now follows a link which changes the style (using a URL parameter of "styleid=xx") they will then be given that style for the rest of their session. If they close their browser and reload your site, they will then be detected again. Cookies must be enabled on the users browser for overriding detection to work

To Do
  • Add an option for users to be able to permanently NOT be detected as a mobile device or explicitly use a specified style.
  • Add more devices to detection
  • Add option to disable override globally

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
Forum Style Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) dartho vBulletin 4.x Styles 1133 17 Sep 2019 05:49
Add-On Releases Mobile Phone / iPhone / PDA Detection and Style Assignment dartho vBulletin 3.8 Add-ons 144 12 Aug 2017 04:52
Forum Display Enhancements Mobile Phone / iPhone / PDA Detection and Style Assignment dartho vBulletin 3.7 Add-ons 407 19 Mar 2015 15:53
Mobile, Cell, Phone, PDA, iPhone Style dartho vBulletin 3.7 Styles 795 16 Aug 2012 14:39

  #106  
Old 08 Feb 2012, 04:52
res6cue res6cue is offline
 
Join Date: Nov 2010
Originally Posted by dartho View Post
vbuletin has it's own detection system in place - this is no longer required. That being said, I use Dolphn - I will check
I just jumped from 4.1.0 to 4.1.10 and noticed there is now native vB detection. However your mod has a lot more options. So I guess the question is, does this mod still work and will options I set override the native vB detection or no?
Reply With Quote
  #107  
Old 08 Feb 2012, 06:14
dartho dartho is offline
 
Join Date: Sep 2005
There is a bug with the vbiulletin detection which is to be fixed in 4.1.11 - I'm not sure how this affects this detection script. What I suggest you try is:
Configure the vB detection to 'none' in AdminCP
Apply this fix for 4.1.10 as detailed here: http://www.vbulletin.org/forum/showt...99#post2289299

then try again and see how it goes. I just check UA generated by Dilphin - and it uses the word "Android" so should be detected a a mobile device.
Reply With Quote
  #108  
Old 23 May 2012, 07:17
Filgga's Avatar
Filgga Filgga is offline
 
Join Date: Jul 2007
dartho, this plugin is VERY IMPORTANT than the inbuilt vBulletin's detection script.

Can you consider making it compatible with vB Version: 4.2.x?

Thanks
__________________
I'm back, hell was full
Reply With Quote
  #109  
Old 04 Jun 2012, 02:58
edytwinky edytwinky is offline
 
Join Date: Sep 2007
Anybody able to get this to work with vb 4.2?
Reply With Quote
  #110  
Old 25 Jun 2012, 03:18
The Rocketeer's Avatar
The Rocketeer The Rocketeer is offline
 
Join Date: Jun 2010
i would also like to see this work with vb 4.2
Reply With Quote
  #111  
Old 21 Aug 2012, 04:41
dartho dartho is offline
 
Join Date: Sep 2005
What exactly doesn't work?
Reply With Quote
  #112  
Old 21 Aug 2012, 09:48
Filgga's Avatar
Filgga Filgga is offline
 
Join Date: Jul 2007
Originally Posted by dartho View Post
What exactly doesn't work?
The easiest way to get devices detected is to clear system cache:


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

If you have vB Optimise Installed, do flush the cache:


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

__________________
I'm back, hell was full

Last edited by Filgga; 21 Aug 2012 at 10:45.
Reply With Quote
  #113  
Old 30 Sep 2012, 20:53
Mark_Zuckerberg Mark_Zuckerberg is offline
 
Join Date: Sep 2011
It also changes my forum skin on PC tooo
__________________
Webmasters Forum
Reply With Quote
  #114  
Old 03 Oct 2012, 02:41
Robbed Robbed is offline
 
Join Date: Oct 2005
Originally Posted by dartho View Post
What exactly doesn't work?
It's redirecting to normal skin for some phones and on pc.

When I used to go to mobile site from a pc it would assign the mobile skin and now it doesn't same with some phones and new post for some reason.
Reply With Quote
  #115  
Old 03 Oct 2012, 14:36
freeones_raymon freeones_raymon is offline
 
Join Date: Dec 2006
Some mobile phones not redirected

Hi,

Thanks for this great modification! It's sad that vBulletin doesn't have a good build-in functionality for this, but hey... it's vBulletin!

I only found 3 mobile phones/browsers not being detected as mobile, and these are the user agent strings:
  • Opera/9.80 (Android 2.3.3; Linux; Opera Mobi/ADR-1207201819; U; sv) Presto/2.10.254 Version/12.00
  • Opera/9.80 (Android 4.0.3; Linux; Opera Mobi/ADR-1207201819; U; en) Presto/2.10.254 Version/12.00
  • Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17 Skyfire/2.0

I think the first 2 can be defined as "Opera Mobi", and someone told me it was better to add "Opera Mini" to the mobile list as well.

Only the last one was the Skyfire browser on a HTC mobile phone, but I cannot find anything in the user agent string that identifies it as a mobile phone. It even looks like the browser has user agent override enabled or something, but I couldn't find anything in the settings.

So if "Opera Mobi" and "Opera Mini" can be added to the mobile detection list for the next version, thanks!

Regards,
Raymond
Reply With Quote
  #116  
Old 16 Jan 2013, 22:27
sinomama sinomama is offline
 
Join Date: Sep 2008
My vbulletin is 3.8.5.

To avoid being forced to use the lightweigh style for some users, I uninstalled the previous version and installed this version, and with pleasure I chose yes to Enable Over-riding of Styles..........but neither iPad, nor iPhone can detect the lightweigh style which is assigned to all mobiles in the setting of this plugin.

But if I open by the adress http://mydomain.com/forum.php?styleid=nn, the lightweigh style works in safari of iPad or iPhone, and I can return to the original style by cliquing "default style".
It's great!

Finally, Assignment doesn't work for 3.8.5?
Reply With Quote
  #117  
Old 31 Jul 2013, 20:59
behcet behcet is offline
 
Join Date: Apr 2007
upgrade pls
Reply With Quote
  #118  
Old 08 Sep 2013, 00:17
Mark93x Mark93x is offline
 
Join Date: Aug 2013
Dartho please update this to 4.2.x
Reply With Quote
  #119  
Old 17 Jan 2014, 08:38
sadiq6210 sadiq6210 is offline
 
Join Date: Sep 2005
Real name: Sadiq
Already there is an option in vBulletin admincp to choose the default mobile style, what this mod will add?

Thanks
Reply With Quote
  #120  
Old 26 Feb 2014, 12:42
madness85 madness85 is offline
 
Join Date: Jun 2012
Using 4.2 can seem to change back to PC mode
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 02:21.

Layout Options | Width: Wide Color: