Simple theme picker makes mobile menu disappear
4 posters
Page 1 of 1
Simple theme picker makes mobile menu disappear
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?
Last edited by Lady Loki on June 7th 2018, 2:20 am; edited 1 time in total
Re: Simple theme picker makes mobile menu disappear
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.
The problem is most likely that the code is messing about with mobile settings and then removed some parts of the mobile tools.
Re: Simple theme picker makes mobile menu disappear
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?APE wrote:If you turn off the code that was made for you do you then see the menu come back ?
Re: Simple theme picker makes mobile menu disappear
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 :
and replace it by :
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.
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.
Re: Simple theme picker makes mobile menu disappear
Hi! @Ange Tuteur That worked perfectly! Thank you so much!
Re: Simple theme picker makes mobile menu disappear
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum