Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Apr 2013, 04:59
semprot semprot is offline
 
Join Date: Mar 2010
Real name: Jeremy
Question Mobile Device Detection

Hi.

For some reason i have to make my own mobile device detection plugin. (the reason is i use vb optimise for guest caching).

I use this PHP library

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

(the library is also used by BirdOPrey5 here)

Here is my plugin code

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

I put it on "global_bootstrap_complete", because i want it to be run before vboptimise run (vb optimise run on "global_bootstrap_complete" as well, but with "5" priority", i give my code "1" priority.

The problem is, if it is my first time visiting the forum with mobile user agent, it always gives me desktop style. Is the if below correct?

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

__________________
Best regards,

Jeremy
Reply With Quote
  #2  
Old 23 Apr 2013, 15:22
wacnstac wacnstac is offline
 
Join Date: Nov 2001
I'm actually interested in using this hack. Did you ever get it to work?
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integration with vBulletin Mobile Device & Browser Detection (Adapted by BOP5) BirdOPrey5 vBulletin 4.x Add-ons 40 10 Sep 2018 16:08
Add-On Releases Mobile Device Style Assignment dartho vBulletin 3.6 Add-ons 406 21 Apr 2013 00:14
Mobile Device Style Assignment dartho vBulletin 3.5 Add-ons 3 04 Dec 2006 22:49



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 03:41.

Layout Options | Width: Wide Color: