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. March 29th 2016, 2:27 am

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 April 4th 2016, 8:24 am; 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 March 29th 2016, 3:23 am

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 March 29th 2016, 3:27 am

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 March 29th 2016, 9:02 am

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. March 30th 2016, 2:53 am

@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 March 30th 2016, 3:05 am

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 March 30th 2016, 4:51 am

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. April 2nd 2016, 5:13 am

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 April 2nd 2016, 11:42 am

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 April 2nd 2016, 3:35 pm

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 : 10113
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 April 2nd 2016, 7:20 pm

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 : 13207
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. April 4th 2016, 8:23 am

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 April 4th 2016, 10:34 pm

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 : 51555
Reputation : 3524
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