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.

Can't disable mobile version

+3
faisii_x
Take Notes
.DayDreamer.
7 posters

Go down

Solved Can't disable mobile version

Post by .DayDreamer. Tue 29 Mar 2016, 01:27

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.


Last edited by .DayDreamer. on Mon 04 Apr 2016, 07:24; edited 1 time in total
.DayDreamer.
.DayDreamer.
Forumember

Female Posts : 42
Reputation : 1
Language : English
Location : United States

http://justtestingthings.forumotion.com/

Back to top Go down

Solved Re: Can't disable mobile version

Post by Guest Tue 29 Mar 2016, 02:23

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(/&/,'&')});

Hello Samantha.
avatar
Guest
Guest


Back to top Go down

Solved Re: Can't disable mobile version

Post by Take Notes Tue 29 Mar 2016, 02:27

Are you talking about the arrow/menu not appearing on the top right?
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Solved Re: Can't disable mobile version

Post by faisii_x Tue 29 Mar 2016, 08:02

RoXaNNeX 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(/&/,'&')});

Hello Samantha.
i use this code on my forum its working thanks
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

Solved Re: Can't disable mobile version

Post by .DayDreamer. Wed 30 Mar 2016, 01:53

@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.
.DayDreamer.
.DayDreamer.
Forumember

Female Posts : 42
Reputation : 1
Language : English
Location : United States

http://justtestingthings.forumotion.com/

Back to top Go down

Solved Re: Can't disable mobile version

Post by Take Notes Wed 30 Mar 2016, 02:05

Try asking them to view a forum and see if the arrow appears.
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Solved Re: Can't disable mobile version

Post by Guest Wed 30 Mar 2016, 03:51

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.

Hello Samantha.
avatar
Guest
Guest


Back to top Go down

Solved Re: Can't disable mobile version

Post by .DayDreamer. Sat 02 Apr 2016, 04:13

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.
.DayDreamer.
.DayDreamer.
Forumember

Female Posts : 42
Reputation : 1
Language : English
Location : United States

http://justtestingthings.forumotion.com/

Back to top Go down

Solved Re: Can't disable mobile version

Post by Van-Helsing Sat 02 Apr 2016, 10:42

Hello,
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
        });

Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: Can't disable mobile version

Post by brandon_g Sat 02 Apr 2016, 14:35

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. Smile

-Brandon


Can't disable mobile version Brando10
Remember to mark your topic Can't disable mobile version Solved15 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Can't disable mobile version Scre1476
Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g
brandon_g
Manager
Manager

Male Posts : 10106
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

Solved Re: Can't disable mobile version

Post by Ange Tuteur Sat 02 Apr 2016, 18:20

Good afternoon,

There's an error occurring in your scripts installed "in all the pages" ;
Can't disable mobile version Captur11
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)]
});
( It may look different than the above )

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)];
});
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: Can't disable mobile version

Post by .DayDreamer. Mon 04 Apr 2016, 07:23

Thank you everyone for your help!! Very Happy

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.
.DayDreamer.
.DayDreamer.
Forumember

Female Posts : 42
Reputation : 1
Language : English
Location : United States

http://justtestingthings.forumotion.com/

Back to top Go down

Solved Re: Can't disable mobile version

Post by SLGray Mon 04 Apr 2016, 21:34

Topic solved and archived


Can't disable mobile version 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 : 51482
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