The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Can't disable mobile version

View previous topic View next topic Go down

Solved Can't disable mobile version

Post by .DayDreamer. on 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.
Forumember

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

Guest
Guest


Back to top Go down

Solved Re: Can't disable mobile version

Post by Genesis on March 29th 2016, 3:27 am

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

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: Can't disable mobile version

Post by faisii_x on 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
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. on 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.
Forumember

Female Posts : 40
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 Genesis on March 30th 2016, 3:05 am

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

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: Can't disable mobile version

Post by Guest on 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.

Guest
Guest


Back to top Go down

Solved Re: Can't disable mobile version

Post by .DayDreamer. on 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.
Forumember

Female Posts : 40
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 on 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) window.location.href = _userdata.page_desktop;
        });


Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: Can't disable mobile version

Post by brandon_g on 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


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5344
Reputation : 488
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

Solved Re: Can't disable mobile version

Post by Ange Tuteur on April 2nd 2016, 7:20 pm

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 :
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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Can't disable mobile version

Post by .DayDreamer. on 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.
Forumember

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

Topic solved and archived


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


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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