Simple theme picker makes mobile menu disappear

Go down

Solved Simple theme picker makes mobile menu disappear

Post by Lady Loki on 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:


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

Female Posts : 25
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 on June 4th 2018, 10:22 am

Bump.
avatar
Lady Loki
Forumember

Female Posts : 25
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 on 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.



avatar
APE
Administrator
Administrator

Male Posts : 13102
Reputation : 1387
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 on 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?
avatar
Lady Loki
Forumember

Female Posts : 25
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 on 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.
avatar
Ange Tuteur
Forumaster

Male Posts : 13212
Reputation : 2936
Language : EN, JA, FR
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Simple theme picker makes mobile menu disappear

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

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

Female Posts : 25
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 on June 7th 2018, 4:52 am

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



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

Male Posts : 44345
Reputation : 3144
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Back to top


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