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.

Simple theme picker makes mobile menu disappear

4 posters

Go down

Solved Simple theme picker makes mobile menu disappear

Post by Lady Loki June 2nd 2018, 3:11 am

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 June 7th 2018, 2:20 am; edited 1 time in total
Lady Loki
Lady Loki
Forumember

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

http://alternate-universe.foroactivo.mx

Back to top Go down

Solved Re: Simple theme picker makes mobile menu disappear

Post by Lady Loki June 4th 2018, 10:22 am

Bump.
Lady Loki
Lady Loki
Forumember

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

http://alternate-universe.foroactivo.mx

Back to top Go down

Solved Re: Simple theme picker makes mobile menu disappear

Post by Ape June 4th 2018, 12:29 pm

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
Ape
Ape
Administrator
Administrator

Male Posts : 19123
Reputation : 1993
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Simple theme picker makes mobile menu disappear

Post by Lady Loki June 6th 2018, 3:15 am

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?
Lady Loki
Lady Loki
Forumember

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

http://alternate-universe.foroactivo.mx

Back to top Go down

Solved Re: Simple theme picker makes mobile menu disappear

Post by Ange Tuteur June 6th 2018, 4:49 pm

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Simple theme picker makes mobile menu disappear

Post by Lady Loki June 7th 2018, 2:20 am

Hi! @Ange Tuteur That worked perfectly! Thank you so much!
Lady Loki
Lady Loki
Forumember

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

http://alternate-universe.foroactivo.mx

Back to top Go down

Solved Re: Simple theme picker makes mobile menu disappear

Post by SLGray June 7th 2018, 4:52 am

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51493
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum