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: 1617
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

  #61  
Old 30 Oct 2010, 00:43
Dexter_kcd Dexter_kcd is offline
 
Join Date: May 2005
Originally Posted by dartho View Post
The every style 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

Yes, I am using your style. I will give this a try over the weekend and see how it works. Thanks for the quick reply, and thanks for these great add-ons. My members appreciate the mobile style a lot.

Cheers,

Dexter...
Reply With Quote
  #62  
Old 30 Oct 2010, 01:40
dartho dartho is offline
 
Join Date: Sep 2005
Sorry - where I said "The every style hack" - I meant the "The sidebars everywhere hack", but all else remains same
Reply With Quote
  #63  
Old 30 Oct 2010, 06:20
Dexter_kcd Dexter_kcd is offline
 
Join Date: May 2005
I knew what you meant.

Unfortunately, that code did not do the trick. I added it to the disable addons option area just as you instructed, logged out from my iPhone, cleared cookies/cache/history, and then browsed to my site. The sidebar is still there. Do you have any other suggestions?

Dexter...
Reply With Quote
  #64  
Old 30 Oct 2010, 08:07
dartho dartho is offline
 
Join Date: Sep 2005
This might work - edit all the everysidebar templates in the lightweight style only, and delete the entire contents of each one
Reply With Quote
  #65  
Old 15 Nov 2010, 06:04
Dexter_kcd Dexter_kcd is offline
 
Join Date: May 2005
Originally Posted by dartho View Post
This might work - edit all the everysidebar templates in the lightweight style only, and delete the entire contents of each one

Hi Dartho,

I finally had time to go back to this problem. The above suggestion worked. I will post it in the thread for the ESB mod.

Thanks for your help.

Dexter...
Reply With Quote
  #66  
Old 23 Nov 2010, 22:48
steve1966 steve1966 is offline
 
Join Date: Dec 2007
hi my mobile devices are not being detected i have to use the style changer what have i done wrong to show the light style

edit if i use i older version 3.7 version it detects but when i click on pc mode it will not change back to the default style any ideas please it still does not detect using the 4.o or 4.01

Last edited by steve1966; 24 Nov 2010 at 00:14.
Reply With Quote
  #67  
Old 24 Nov 2010, 01:52
dartho dartho is offline
 
Join Date: Sep 2005
clear your cookies, or if you want to be selective, just clear he cookies for your site and try again. As soon as you manually select a style, you are effectively turning off auto-detection. In theory, closing all your browser windows should then re-instate it, but it depends on your browser.
Reply With Quote
  #68  
Old 24 Nov 2010, 08:25
steve1966 steve1966 is offline
 
Join Date: Dec 2007
Originally Posted by dartho View Post
clear your cookies, or if you want to be selective, just clear he cookies for your site and try again. As soon as you manually select a style, you are effectively turning off auto-detection. In theory, closing all your browser windows should then re-instate it, but it depends on your browser.
Thank you
Reply With Quote
  #69  
Old 04 Dec 2010, 23:41
SnapOff Racing SnapOff Racing is offline
 
Join Date: Apr 2006
Would be nice if we could get this working with vB 3.8 as having the option to allow users to decide on whether or not they actually want to view a mobile version is the way to go.
Reply With Quote
  #70  
Old 05 Dec 2010, 06:13
dartho dartho is offline
 
Join Date: Sep 2005
Did you try it? As mentioned in teh first post, it probably will work
Reply With Quote
  #71  
Old 05 Dec 2010, 10:16
rughis rughis is offline
 
Join Date: Oct 2010
Real name: Fabrizio
Excellent mod. It works without any problem on my 4.0.8 vBulletin site.

Thank you!

Last edited by rughis; 06 Dec 2010 at 12:44.
Reply With Quote
  #72  
Old 05 Dec 2010, 21:42
SnapOff Racing SnapOff Racing is offline
 
Join Date: Apr 2006
Originally Posted by dartho View Post
Did you try it? As mentioned in teh first post, it probably will work
Yeah I tried it on VB 3.8.6 & 3.8.7b1 and it doesn't work at all. I even uninstalled the 3.8.6 version of this mod FIRST which was working just fine. Then I installed this version and it wasn't having any affect whatsoever. I was testing with my iPhone 4.
Reply With Quote
  #73  
Old 05 Dec 2010, 22:21
dartho dartho is offline
 
Join Date: Sep 2005
try again , but clear cookies first. If you have manually chosen a style at any time, you have essentially overridden autodetection
Reply With Quote
  #74  
Old 07 Dec 2010, 01:34
Joxpa Joxpa is offline
 
Join Date: Dec 2010
worked 1 time, after didnt worked again. also not using this:

http://www.testiphone.com/
http://emulator.mtld.mobi/emulator.php

Reply With Quote
  #75  
Old 07 Dec 2010, 02:02
vidan vidan is offline
 
Join Date: Feb 2008
this mod work with vb4.1? can someone confirm it?
thanks
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:25.

Layout Options | Width: Wide Color: