1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Browser Detection (Mobile/MSIE) 1.3.3

This Addon will allow you to check if the broswer is Internet Explorer or is on a mobile device.

  1. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout submitted a new resource:

    Browser Detection (Mobile/MSIE) (version 1.0) - This Addon will allow you to check if a the broswer is Internet Explorer or is on a mobile device.

    Read more about this resource...
     
  2. Adam Howard

    Adam Howard Well-Known Member

    Interesting concept.

    I don't use Internet Explorer or even Windows for the matter.... But this will help me weed out those pesky Internet Explorer users who like to claim they're using Firefox or Chrome, in hopes to get me to pay attention to something that I do not support... ie... Internet Explorer users.
     
  3. Vicros

    Vicros Active Member

    ok so we have to add all of that code into templates? Or does this do it for us? Because im a bit confused about it.
     
    CritiKiL and DigitalNikos like this.
  4. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout updated Browser Detection (Mobile/MSIE) with a new update entry:

    Version 1.1 released

    Read the rest of this update entry...
     
  5. Dinh Thanh

    Dinh Thanh Well-Known Member

  6. cclaerhout

    cclaerhout Well-Known Member

    Nope, but I would recommend you to use Chris autoinstaller addon. It will avoid you to check if you need or not to import xml and/or upload files and it will increase the speed of your upload if the archive has many files in it :)
     
    Dinh Thanh likes this.
  7. Dinh Thanh

    Dinh Thanh Well-Known Member

    Upgraded and wait for release of next Mobile Agent Tracker addon.
     
  8. Robyn Unc Privette

    Robyn Unc Privette Active Member

    This. Do we need to do any file edits? Because if so, the instructions are hard to follow for the less inexperienced.
     
  9. cclaerhout

    cclaerhout Well-Known Member

    What is hard to understand?
    If you're developing an addon with php, you use the php variables I've provided.
    If you want to customize your templates, you use the templates variables I've provided.

    This addon is a tool. Nothing less, nothing more.
     
  10. Robyn Unc Privette

    Robyn Unc Privette Active Member

    A lot when you aren't experienced with editing things. I don't know where to put those templates at. :cautious:
     
  11. cclaerhout

    cclaerhout Well-Known Member

    Just you the template example I've provided, copy it and paste it in the template you want to modify.
     
  12. Robyn Unc Privette

    Robyn Unc Privette Active Member

    Ok, bare with me here. Do I HAVE to edit anything for it to work? Or will it work without doing that?
     
  13. cclaerhout

    cclaerhout Well-Known Member

    Copy this example in you desire template, that's all
    HTML:
      <xen:if is="{$visitor.getBrowser.isIE}">
            {xen:if "{$visitor.getBrowser.IEis} == 9", "You're using Internet Explorer 9", "You're using Internet Explorer {$visitor.getBrowser.IEis}"}
        <xen:elseif is="{$visitor.getBrowser.isMobile}" />
            You're using a mobile device.{xen:if "{$visitor.getBrowser.isTablet}", "This Mobile device is a tablet"}
        <xen:else />
            Hello world !
        </xen:if>
    If you don't know what a template is and what a conditional is, this addon is not for you.
     
  14. Robyn Unc Privette

    Robyn Unc Privette Active Member

    I know what a template is. I do not know WHICH template to put it in.
     
  15. cclaerhout

    cclaerhout Well-Known Member

    :coffee: The one where you want to use conditionals to display a different content per browser (ie/mobile) :coffee:

    This addon doesn't make coffee. It gives you tools to make some.
     
  16. CritiKiL

    CritiKiL Active Member

    Dude. All he is saying is that if YOU know 'which template' that is, you should tell us in the examples "where" to place this code. Even I don't know where we should be adding this code, so since YOU KNOW would you mind Please telling us 'which template' and 'what location inside of that template (ex: Top, bottom, replace existing code with and etc.) we are to place this code at. Everyone who makes an add-on tells us these things so we should've have to be playing guess where to put YOUR code just to get your addon to work properly. Said with all due respect, of course, we just don't want to install the addon and it not work the way it is intented. ;-)
     
    Robyn Unc Privette likes this.
  17. cclaerhout

    cclaerhout Well-Known Member

    I'm certainly not an Anglophone but I've read again my production description to see if I had made any horrible mistake that create that misunderstanding... and I really see nothing wrong here. This addon is working in all templates, is working anywhere the $visitor object is available, which means 99,9% of the XenForo system. In my production description, I've also provided a full list of possible conditionals for all templates & php and I provided an example to illustrate how to use it. There's nothing more I can do here.

    I've used this addon to create some options in those addons:
    http://xenforo.com/community/resources/go-to-top.1083/
    http://xenforo.com/community/resources/tinymce-fix.1162
    http://xenforo.com/community/resources/mobile-style-selector.1190
    http://xenforo.com/community/resources/mobile-agent-tracer.1185


    There is an extra example here if people wants one more (but hard to understand):
    http://xenforo.com/community/threads/responsive-options-help.43540/#post-468540
     
    hqarrse and CritiKiL like this.
  18. CritiKiL

    CritiKiL Active Member

    Understood ;-)
     
    cclaerhout likes this.
  19. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout updated Browser Detection (Mobile/MSIE) with a new update entry:

    Version 1.2 released

    Read the rest of this update entry...
     
  20. Dinh Thanh

    Dinh Thanh Well-Known Member

    Nice update. Working fine.
    Overwrite files only, don't need to import xml :)
     

Share This Page