The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Simple theme picker makes mobile menu disappear

    Lady Loki
    Lady Loki
    Forumember


    Female Posts : 28
    Reputation : 2
    Language : English, Spanish

    Solved Simple theme picker makes mobile menu disappear

    Post by Lady Loki Sat 2 Jun 2018 - 3:11

    Technical Details


    Forum version : #phpBB3
    Position : Founder
    Concerned browser(s) : Other
    Screenshot of problem : https://i.imgur.com/fuuLYIe.jpg
    Who the problem concerns : All members
    Forum link : http://one-million.foroactivo.com/

    Description of problem

    Hi, it's me botherin again.
    A few weeks ago I asked for a theme picker that could be used without Hitskin's skins (here) and user Wecoc made an awesome code for that! However, when I checked my forum on my iPad and cellphone (android) the menu had disappeared like in the screenshot.
    This is the menu I'm talking about:
    Simple theme picker makes mobile menu disappear FuuLYIe
    Simple theme picker makes mobile menu disappear 8wq8AXw
    Is there any way to solve this? beu


    Last edited by Lady Loki on Thu 7 Jun 2018 - 2:20; edited 1 time in total
    Lady Loki
    Lady Loki
    Forumember


    Female Posts : 28
    Reputation : 2
    Language : English, Spanish

    Solved Re: Simple theme picker makes mobile menu disappear

    Post by Lady Loki Mon 4 Jun 2018 - 10:22

    Bump.
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19435
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Simple theme picker makes mobile menu disappear

    Post by Ape Mon 4 Jun 2018 - 12:29

    If you turn off the code that was made for you do you then see the menu come back ?

    The problem is most likely that the code is messing about with mobile settings and then removed some parts of the mobile tools.



    Simple theme picker makes mobile menu disappear Left1212Simple theme picker makes mobile menu disappear Center11Simple theme picker makes mobile menu disappear Right112
    Simple theme picker makes mobile menu disappear Ape_b110
    Simple theme picker makes mobile menu disappear Ape1010
    Lady Loki
    Lady Loki
    Forumember


    Female Posts : 28
    Reputation : 2
    Language : English, Spanish

    Solved Re: Simple theme picker makes mobile menu disappear

    Post by Lady Loki Wed 6 Jun 2018 - 3:15

    APE wrote:If you turn off the code that was made for you do you then see the menu come back ?
    Yes, exactly that. I tried deactivating every other code I had installed but it turned out it was this one that was messing with the mobile version. Is there any way to solve this?
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Simple theme picker makes mobile menu disappear

    Post by Ange Tuteur Wed 6 Jun 2018 - 16:49

    Hi,

    It sounds like the script may have some incompatibilities with the mobile template. i.e. it could be trying to get and modify a null element; something that doesn't exist in the mobile templates. When an error like this occurs it can sometimes halt other scripts from being executed, such as those queued with jQuery's document.ready function.

    In the script that was provided to you, find :
    Code:
    $(function() {

    and replace it by :
    Code:
    $(function() {
      if (_userdata.tpl_mobile) return;

    This will check if the user is viewing the mobile version, and if they are it'll return and not execute the code after this conditional statement.
    Lady Loki
    Lady Loki
    Forumember


    Female Posts : 28
    Reputation : 2
    Language : English, Spanish

    Solved Re: Simple theme picker makes mobile menu disappear

    Post by Lady Loki Thu 7 Jun 2018 - 2:20

    Hi! @Ange Tuteur That worked perfectly! Thank you so much!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Solved Re: Simple theme picker makes mobile menu disappear

    Post by SLGray Thu 7 Jun 2018 - 4:52

    Problem solved & topic archived.
    Please read our forum rules:  ESF General Rules



    Simple theme picker makes mobile menu disappear Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is Wed 13 Nov 2024 - 17:23