![]() |
Mobile Phone / iPhone / PDA Detection and Style Assignment
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. |
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. |
That's awesome... I've had a few complaints about this. Appreciate the links to the styles as well. :)
Installed, and nominated. |
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.
|
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.
|
I am getting a security tolkin error when I try to post from the mobile device. Any ideas?
|
That would be your Style causing the error ...
|
Thanks very much this works well .
|
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? |
thanks buddy
|
will this work on vb4?
|
just tested it works great on 4.0
thanks |
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?
|
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 Code:
"Mazingo", Code:
"Mazingo", |
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... |
For option Enable user defined device detection?
If I set Yes, forum will use mobile style for any clients including PC. If I set No, no mobile style at all. How should I setup this option? I leave it blank for "Custom/User Defined Useragent String", do I have to input something? Thanks! |
unless you have any extra user agents to add, you should leave this blank and disabled. Enable the product, and enable mobile device detection - you can leave all other options disabled.
|
Weird, my forum can't detect any mobile device, no matter how I setup the options. Tested your own forum, it does work well.
|
A conflict with anotehr add-on could yield unexpexcted results. Try editing the Detect Mobile Device and Assign Style plugin and changing the execution order to 10. If that doesnt work, try changing to 1, if t hat doesnlt work..... we'll play it buy ear...
|
Doesn't work, there are only two plugins (including this one) in the same hook, no difference to put it before or after the other plugin.
I will try to add some debug code. Thanks! |
Fixed the problem, may be because I set the mobile style as 'not allow use selection'. Now I use your another mod to hide the mobile styple from the style chooser.
Thanks for your great work! |
Thank you, this works great!
|
Thank you.
It worked great on iPhone and Java based mobile phones.. However, it didn't work on HTC HD2 which is a windows based mobile. It has 2 browsers (IE and Opera). Both didn't work. |
Quote:
|
will this be available for vb 4x
|
Hmm, when I login using my phone I go to the normal default style again.. any fix for this?
|
This works great on 4.0.1 for me... I do however need alittle help. It does not show the home screen well bet shows the forum awesome. Is there a way in the detection to get it to go straight to the forum with out fist going to the home page.
In the settings I set the home page as the forum so it works great as far as once the home link is hit. I just need theat little extra whatever to get me to the forum page when it first load up. Any help would be greatly appreciated. Once this is solved it can be set to 4.0.1 mod as well... By the way this is a great mod... |
what is your current default page - vBulletin CMS, vBAdvanced, Custom?
|
Quote:
|
Try this:
Edit the vbcms_page template in the mobile style and replace HTML Code:
{vb:raw toolbar} HTML Code:
<div class="vbcms_content"> |
Quote:
|
That would depend on what you are trying to fix? This template edit removes the CMS content and replaces it with a link direct to forums.
|
"users will not be able to select other styles from a mobile device with this add-on installed"
Do you have plans to add the ability to change this like on Google mobile style vs regular? |
Quote:
|
I made the edits as posted on a fresh install with no otehr addons and it worked as described.
I'll need more information in order to be able to help. A URL is always a good start, possibly admincp admin access to edit styles also |
dartho,
Thank you for your hard work. I reviewed my install and realized that i edited the wrong style. Works great. Only thing i noticed is a big gap under the header before it actually list the forums. |
I would guess the gap is being created by another add-on you may have - do you have advertising or similar?
|
So this works on 4.0.2? Along with the style you made for 4.0?
|
yep
|
hi i have installd this and its not detecting my mobile
|
All times are GMT. The time now is 08:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|