1. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.
  2. In order to post messages and view attached files in this forum, you must be a licensed XenForo customer.
    If you can't post, enter your forum username in the Associated Forum Users form in your customer area.

Mobile Browser Style Switch

Discussion in 'Add-on Releases [Archive]' started by Cezz, Aug 21, 2011.

  1. James Well-Known Member

    Out of curiosity, did you get anywhere with the XenForo_Visitor::isBrowsingWith() function?
  2. Cezz Formerly Ceri May

    Yeah though still not 100% if I will use it for this and it doesn't effect excluding certain controllers as that is simply the check if the user is mobile need additional checks which controller is being loaded!
  3. Russ Well-Known Member

    Am i missing something due to no sleep, are you saying that the chrome user agent is in here?
  4. Andy.N Well-Known Member

    Any new updates on this Cezz?
    Thanks
  5. ddmmh Well-Known Member

    Hi Cezz,

    Do you plan on updating this great little mod for 1.1?
  6. kintaro81 Member

    it works on xf 1.1.1?
  7. madshark Member

    Using on 1.1.2 Seems to be all fine.

    Also just a heads up...

    The original lot here has an ident for opera 'oper' which should be taken out if you don't want the desktop client being detected as a mobile as well.

    This is my current list seems to cover everything. I'm not a 100% if any other desktop clients are getting filtered too but seems ok so far.

    Code:
    android,avantgo,blackberry,blazer,compal,elaine,fennec,hiptop,iemobile,iris,kindle,maemo,midp,phone,plucker,pocket,psp,symbian,treo,vodafone,iphone,windows ce,windows phone,w3c,acs,alav,alca,amoi,audi,avan,benq,bird,blac,blaz,brew,cell,cldc,cmd-,dang,doco,eric,hipt,inno,ipaq,java,jigs,kddi,keji,leno,lg-c,lg-d,lg-g,lge-,
    maui,maxo,midp,mits,mmef,mobi,mot-,moto,mwbp,nec-,newt,noki,palm,pana,pant,phil,play,port,prox,qwap,sage,sams,sany,sch-,sec-,send,seri,sgh-,shar,sie-,siem,smal,smar,sony,sph-,symb,t-mo,teli,tim-,tosh,tsm-,upg1,upsi,vk-v,voda,wap-,wapa,wapi,wapp,wapr,webc,winw,winw,xda,xda-,alcatel,amoi,cell,cricket,docomo,elaine,htc,iemobile,ipad,ipaq,ipod,j2me, java, midp,mini,mmp,mobi,motorola,nec-,nokia,palm,panasonic,philips,phone,sagem,sharp,sie-,smartphone,sony,symbian,t-mobile
  8. Clickfinity Well-Known Member

    Thanks for the mod - installed and working at GeeksChat. (y)

    One problem I have found though is that I can't switch to another style on my iPhone - it's effectively "locked in" to the mobile style; I can't go back and forth between Flexile and XFS Mobile Style.

    Any way of getting around this so that it autodetects and switches to the ID you specify, but once you change away from that style ID it disables the autoswitch until you manually move back to the mobile style ID or logout?

    Change style away = turn OFF autoswitching
    Logout = turn ON autoswitching
    Change back to mobile style = turn ON autoswitching again

    Cheers,
    Shaun :D
    HTEvn, WaddleJrJr and Corwin like this.

Share This Page