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: Aug 2014 I like it Show Printable Version Email this Page

vB Version: 4.0.6 Rating: (24 votes - 4.88 average) Installs: 302
Released: 05 Sep 2010 Last Update: 07 Sep 2010 Downloads: 1416
Supported Uses Plugins  

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
Lightweight Style for Small Screen Devices (cell phone, iphone, mobile, android) dartho vBulletin 4.x Styles 1106 15 Aug 2014 10:43
Mobile Phone / iPhone / PDA Detection and Style Assignment dartho vBulletin 3.8 Add-ons 137 08 Jun 2014 15:51
Mobile Phone / iPhone / PDA Detection and Style Assignment dartho vBulletin 3.7 Add-ons 405 27 Apr 2014 01:34
Mobile, Cell, Phone, PDA, iPhone Style dartho vBulletin 3.7 Styles 795 16 Aug 2012 13:39

  #46  
Old 21 Sep 2010, 11:13
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Not working.
Reply With Quote
  #47  
Old 22 Sep 2010, 01:19
dartho dartho is offline
 
Join Date: Sep 2005
Yes it is
Reply With Quote
  #48  
Old 24 Sep 2010, 18:30
demonfatal demonfatal is offline
 
Join Date: Mar 2009
The old version 3.7 is working fine with Vb4.X, this new one have a lot of problem for detect some device and some navigator...
So uninstalled and old version re-installed and all is fine!
Reply With Quote
  #49  
Old 02 Oct 2010, 17:30
Taurus MFF Taurus MFF is offline
 
Join Date: Feb 2010
working great, installed!

is there a way to add an option to automatically direct someone to a specific location if they are detected to be coming in on a mobile device?

I'd like to have auto-detected mobile visitors be sent directly to forum.php instead of content.php

edit: in the meantime I used your advice found here so people can just click through after an explanation

Last edited by Taurus MFF : 02 Oct 2010 at 17:47.
Reply With Quote
  #50  
Old 08 Oct 2010, 04:34
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Real name: DRE
It automatically detects mobile phone use but when I click on desktop link, it sends me right back to mobile style.

What am I doing wrong?
Reply With Quote
  #51  
Old 08 Oct 2010, 08:23
dartho dartho is offline
 
Join Date: Sep 2005
have you enabled detection override and are cookies enabled on your device?
Reply With Quote
  #52  
Old 09 Oct 2010, 02:26
johkalhaups's Avatar
johkalhaups johkalhaups is offline
 
Join Date: Jun 2006
I cant get this to detect my Pantech Reveal and I had no problems with the 3.8 version.
Reply With Quote
  #53  
Old 12 Oct 2010, 00:10
Gomojoe Gomojoe is offline
 
Join Date: Feb 2010
So I've installed it and it works, but trys to use the syle on my homepage which is a CMS homepage with articles and such. Is there a method to have it go directly to the forums page when it autodetects instead of my homepage?
Reply With Quote
  #54  
Old 26 Oct 2010, 05:17
RTWAP RTWAP is offline
 
Join Date: Apr 2009
Getting the following error when the plugin is enabled:

Warning: preg_match() [function.preg-match]: Unknown modifier ' ' in [path]/includes/class_bootstrap.php(890) : eval()'d code on line 39
Reply With Quote
  #55  
Old 26 Oct 2010, 06:29
dartho dartho is offline
 
Join Date: Sep 2005
Originally Posted by RTWAP View Post
Getting the following error when the plugin is enabled:
turn off custom useragent detection if you have no user agents defined
Reply With Quote
  #56  
Old 26 Oct 2010, 06:36
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Real name: Adam H.
Installed and working 4.0.8

It would be nice though if you either added full CMS & Blog support or if not that, edit this mod to automatically direct them to the forum.
Reply With Quote
  #57  
Old 26 Oct 2010, 07:48
dartho dartho is offline
 
Join Date: Sep 2005
CMS/Blog support has little to do with this mod, that would be up to the style to support. My styles don't but I'm sure others out there do. Also, vBulletin will be releasing a mobile/lightweight style soon which I'm sure will support both!
Reply With Quote
  #58  
Old 29 Oct 2010, 20:50
Dexter_kcd Dexter_kcd is offline
 
Join Date: May 2005
Dartho,

I think there is a conflict between this mod and the Everywhere Sidebar 4 VB4 mod. The ESB mod includes an option to exclude styles from showing the sidebar. Obviously most sites do not want to show a sidebar in a mobile style, so they enter their mobile style id number into the option. But as I outline in this post, it seems that if a mobile style is chosen manually, the exclusion works. If the style is automatically via your mod, the exclusion gets ignored, and the sidebar ends up being shown in the mobile style.

Is there something in the way your mod is identifying the styleid of the forced mobile style that would conflict with another mod identifying it?

Dexter...
Reply With Quote
  #59  
Old 29 Oct 2010, 23:16
dartho dartho is offline
 
Join Date: Sep 2005
The sidebars everywhere hack is only checking what the users default style is, not what style is currently in use. Also, it is checking on global_start which happens before the mobile detect add-on does it's business and possible changes the style, modifying that particular plugin would not work anyway.

If you are using the Lightweight style I wrote, try installin the Lightweight STyle Options addon and add the line

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

to the disable add-ons section

Last edited by dartho : 30 Oct 2010 at 00:39.
Reply With Quote
  #60  
Old 29 Oct 2010, 23:39
Cicada Cicada is offline
 
Join Date: Mar 2002
awesome. bookmarking
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 01:48.

Layout Options | Width: Wide Color: