vBulletin Mods

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

Mobile Phone / iPhone / PDA Detection and Style Assignment
by dartho
28 Oct 2009 10:54

1 Attachment(s)
This add-on will detect most mobile phones, iPhones, PDAs and other mobile browsing devices and automatically for the user to a specific vBulletin style.

Release Information
1.0.1 Initial release for 3.8 ported over from 3.7 version

THIS IS IDENTICAL CODE TO THE 3.7 RELEASE!

I only re-released as soooo many people ask the question "is this OK for 3.8" You do not need to upgrade if you already have installed! However - should there be any changes in the future, it will likely happen here.

What can it do?
Detects most mobile phones and force the user to a specific style (users will not be able to select other styles from a mobile device with this add-on installed). 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 - some links will appear at the bottom of this post
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 or 3.6 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.

Styles released on vBulletin which you can use:
Dartho's Mobile, Cell, Phone, PDA, iPhone Style for vBulletin 3.7 (<-- yep, that's mine)
ElForro's iPhone / iPod Touch Optimized Style
Zachery's vB Lite Style
vBMechanics Mobile Alabama Style

Due to the stripped down nature of these mobile styles, you will find that most for 3.5 and 3.6 will work quite happily on 3.5, 3.6, 3.7 & 3.8 although additional features introduced in vBulletin in recent years such as Social Groups, Blogs and Photo Galleries will not show well on a small screen. All should display your actual forums well.

dartho 28 Oct 2009 11:01

If there are features to add in, let me know.

As mentioned above, this is currently IDENTICAL CODE TO THE 3.7 RELEASE! Don't expect anything new.

However, I will release another version soon with the option to be able to override this addon if a user manually changes style.

TheChaosFactor 28 Oct 2009 11:04

That's awesome... I've had a few complaints about this. Appreciate the links to the styles as well. :)

Installed, and nominated.

Kingdombuilder 30 Oct 2009 08:43

Do you think that this mod will detect Blackberry phones? I have a blackberry site that I would love to be able to put up a mobile version of the sight.

dartho 30 Oct 2009 09:21

There have been a couple people (out of over 1000) who have had issues with Blackberrys, but it should work fine and I'm happy to help if it doesn't.

MuddyPaws 01 Nov 2009 20:17

I am getting a security tolkin error when I try to post from the mobile device. Any ideas?

dartho 01 Nov 2009 21:13

That would be your Style causing the error ...

bart6767 01 Nov 2009 21:20

Thanks very much this works well .

boggseric 27 Nov 2009 18:02

Does this mod override the users adding styleid= to the url? One of the skins I'm using has a "Normal" button but the mobile device won't switch to the normal skin.

On my computer if I change to the mobile skin and click the normal button it does take me back to the normal skin.

Any thoughts?

HACKERS PAL 01 Dec 2009 01:27

thanks buddy

aspen1018 09 Dec 2009 15:45

will this work on vb4?

aspen1018 09 Dec 2009 15:48

just tested it works great on 4.0

thanks

dutchbb 10 Dec 2009 12:10

Problem/bug: iphone users can't change the style with automatic style assignment set to 'no' for them alone. How do I make the style chooser show for them?

dartho 10 Dec 2009 21:18

That's by design. It's meant to detect most devices, and then has the option of assigning alternative styles to a couple familys of phone (PDA/iPhone)

To get around this for iPhones, edit the Detect Mobile Device and Assign Style plugin and find


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

and replace with


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


dutchbb 10 Dec 2009 21:53

Well the mod allows me to disable the automatic style assignment for iphone, so wouldn't it be logical then to allow the user to select the style he wants on the iphone? That's why I thought it is a bug :)

But thanks I'll try that.

PS: also, when changing the style on the PC to your mobile skin, there is no quick style chooser to change it back to normal...


All times are GMT. The time now is 13:53.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©2001 - , vbulletin.org. All rights reserved.