View Single Post
  #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