Can't disable mobile version
+3
faisii_x
Take Notes
.DayDreamer.
7 posters
Page 1 of 1
Can't disable mobile version
Hello.
I am a moderator for this forum: http://creativitycenter.forumotion.com/
It is phpbb3.
Is there any way to disable the mobile theme?
When some of our users view the forum on mobile devices, the mobile theme is automatic. When they do activate it themselves, they are unable to go back to the classic theme. This causes problems since they are unable to log in/log out when the mobile theme is activated and they are also unable to view their profile with it.
We didn't have this problem until we transferred the theme from our test site to this one on the 21st.
Please help me if it is possible.
I am a moderator for this forum: http://creativitycenter.forumotion.com/
It is phpbb3.
Is there any way to disable the mobile theme?
When some of our users view the forum on mobile devices, the mobile theme is automatic. When they do activate it themselves, they are unable to go back to the classic theme. This causes problems since they are unable to log in/log out when the mobile theme is activated and they are also unable to view their profile with it.
We didn't have this problem until we transferred the theme from our test site to this one on the 21st.
Please help me if it is possible.
Last edited by .DayDreamer. on April 4th 2016, 8:24 am; edited 1 time in total
Re: Can't disable mobile version
Add the JS below. Placement: All the Pages. Name: whatever you like to call it.
Samantha.
- Code:
$(function(){if (_userdata && _userdata.page_desktop) window.location.href = _userdata.page_desktop.replace(/&/,'&')});
Samantha.
Guest- Guest
Re: Can't disable mobile version
Are you talking about the arrow/menu not appearing on the top right?
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
Re: Can't disable mobile version
i use this code on my forum its working thanksRoXaNNeX wrote:Add the JS below. Placement: All the Pages. Name: whatever you like to call it.
- Code:
$(function(){if (_userdata && _userdata.page_desktop) window.location.href = _userdata.page_desktop.replace(/&/,'&')});
Samantha.
Re: Can't disable mobile version
@RoXaNNeX Thank you for the code. But I'm sorry, it didn't work.
@Forumedic Yes. Before we changed themes, the users say there was an arrow. Now it is gone. There was also a link that let the users switch between mobile and classic theme, but I don't remember whether it was in the arrow or not.
@Forumedic Yes. Before we changed themes, the users say there was an arrow. Now it is gone. There was also a link that let the users switch between mobile and classic theme, but I don't remember whether it was in the arrow or not.
Re: Can't disable mobile version
Try asking them to view a forum and see if the arrow appears.
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
Re: Can't disable mobile version
The JS I gave you should work fine on phpBB3, so either you've got conflicts / errors in the scripts on your forum, or the problem is with the mobile user(s). In that last case, please ask them to delete cache and cookies on their mobile devices.
Once selected, the 'Arrow' (which has a diamond shape actually) Forumedic was talking about gives the mobile user to choose from a menu what view should be used (classic or mobile), but once the script is active in All the Pages, that shouldn't be visible no more.
Samantha.
Once selected, the 'Arrow' (which has a diamond shape actually) Forumedic was talking about gives the mobile user to choose from a menu what view should be used (classic or mobile), but once the script is active in All the Pages, that shouldn't be visible no more.
Samantha.
Guest- Guest
Re: Can't disable mobile version
I'm sorry for the late reply.
When the javascript code was not added, I turned my phone off/on, deleted the cache and it still didn’t show up. I even checked the forums. I did the same when it was added again and it is still not working. Other users have said the same thing.
Since the javascript is on the site right now, can someone check to see what it might be conflicting with? I’m sorry, but I do not know how to do it myself.
When the javascript code was not added, I turned my phone off/on, deleted the cache and it still didn’t show up. I even checked the forums. I did the same when it was added again and it is still not working. Other users have said the same thing.
Since the javascript is on the site right now, can someone check to see what it might be conflicting with? I’m sorry, but I do not know how to do it myself.
Re: Can't disable mobile version
Hello,
Create a new javascript and set it in all the pages then paste the following code:
Create a new javascript and set it in all the pages then paste the following code:
- Code:
$(function() {
if (_userdata.page_desktop) windowlocationhrefTEMPORARYDISABLE = _userdata.page_desktop
});
Re: Can't disable mobile version
Hello,
Even if the arrow doesn't appear, you and your can still get back to the classic version on your mobile device. In whatever browser your using on your mobile device, look for 'Force desktop view/site' or 'Request Desktop site' or something similar along these lines, tick the box next to it. This will force your mobile device's browser to take you to the desktop version (or classic version) of the site. That should somewhat solve your problem.
-Brandon
Even if the arrow doesn't appear, you and your can still get back to the classic version on your mobile device. In whatever browser your using on your mobile device, look for 'Force desktop view/site' or 'Request Desktop site' or something similar along these lines, tick the box next to it. This will force your mobile device's browser to take you to the desktop version (or classic version) of the site. That should somewhat solve your problem.
-Brandon
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Re: Can't disable mobile version
Good afternoon,
There's an error occurring in your scripts installed "in all the pages" ;
This is preventing other JavaScripts on the mobile version from being executed.
Find this script installed in JS codes management :
and replace it with this :
There's an error occurring in your scripts installed "in all the pages" ;
This is preventing other JavaScripts on the mobile version from being executed.
Find this script installed in JS codes management :
- Code:
$(function() {
var banners = ['http://oi42.tinypic.com/973b88.jpg', 'http://i68.servimg.com/u/f68/19/36/94/76/header16.png', 'http://i.imgur.com/EO7Ibl3.png']
, logo = document.getElementById('i_logo') || document.getElementById('logo') || document.getElementById('pun-logo');
(logo.tagName == 'IMG' ? logo : logo.firstChild).src = banners[Math.floor(Math.random() * banners.length)]
});
and replace it with this :
- Code:
$(function() {
var banners = ['http://oi42.tinypic.com/973b88.jpg', 'http://i68.servimg.com/u/f68/19/36/94/76/header16.png', 'http://i.imgur.com/EO7Ibl3.png']
, logo = document.getElementById('i_logo') || document.getElementById('logo') || document.getElementById('pun-logo');
if (logo) (logo.tagName == 'IMG' ? logo : logo.firstChild).src = banners[Math.floor(Math.random() * banners.length)];
});
Re: Can't disable mobile version
Thank you everyone for your help!!
When we used Ange Tuteurs javascript with the codes Van-Helsing's and RoXaNNeX's gave us, the codes finally worked.
But, we decided to only use Ange Tuteur's javascript because it let the arrow show up again, giving the users the choice to use the classic or mobile theme.
This is now solved.
When we used Ange Tuteurs javascript with the codes Van-Helsing's and RoXaNNeX's gave us, the codes finally worked.
But, we decided to only use Ange Tuteur's javascript because it let the arrow show up again, giving the users the choice to use the classic or mobile theme.
This is now solved.
Re: Can't disable mobile version
Topic solved and 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.
Similar topics
» How to Disable the Mobile Version
» Disable Mobile Version
» Disable the mobile version.
» Disable mobile version problem
» Disable the Mobile Version (New Script)
» Disable Mobile Version
» Disable the mobile version.
» Disable mobile version problem
» Disable the Mobile Version (New Script)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum