How to Disable the Mobile Version
5 posters
Page 1 of 1
How to Disable the Mobile Version
Hello,
I am Marco from The Netherlands.
This is my first post here. Happy to be here.
I am part of a team of collectors that founded a forum devoted to collecting Star Wars last year: www.TantiveXI.com
A big thanks to the excellent platform that Forumotion provided to us to make this possible.
We went live in December 2015 and sofar we have received positive feedback from our growing community.
There is one issue which is bothering our team and a lot of our members since the beginning though: The appearance and sometimes limited functionality of the mobile version when compared to the classic version. It is a common topic when reading a 20 page feedback thread which we initiated for our members to help improve our site.
What makes things challenging is that the mobile version seems to be the default setting when our forum is approached from smart phones or tablets (from which devices we get 75% of our incoming traffic). What makes things worse is that many members / guests don't know how to switch back from mobile to classic. So many users don’t experience our site as it is meant to be, and that is a real shame. You never get a second chance to make a first impression...
We tried the solution as described in the thread below, but unfortunately it broke our forum completely and we had to fix it.
https://help.forumotion.com/t143918-disable-the-mobile-version
Our questions:
Thank you in advance for your help and consideration.
It will be much appreciated.
May the Force be with You!
Marco
From the Tantive XI team
I am Marco from The Netherlands.
This is my first post here. Happy to be here.
I am part of a team of collectors that founded a forum devoted to collecting Star Wars last year: www.TantiveXI.com
A big thanks to the excellent platform that Forumotion provided to us to make this possible.
We went live in December 2015 and sofar we have received positive feedback from our growing community.
There is one issue which is bothering our team and a lot of our members since the beginning though: The appearance and sometimes limited functionality of the mobile version when compared to the classic version. It is a common topic when reading a 20 page feedback thread which we initiated for our members to help improve our site.
What makes things challenging is that the mobile version seems to be the default setting when our forum is approached from smart phones or tablets (from which devices we get 75% of our incoming traffic). What makes things worse is that many members / guests don't know how to switch back from mobile to classic. So many users don’t experience our site as it is meant to be, and that is a real shame. You never get a second chance to make a first impression...
We tried the solution as described in the thread below, but unfortunately it broke our forum completely and we had to fix it.
https://help.forumotion.com/t143918-disable-the-mobile-version
Our questions:
- Are there any other work arounds to disable the mobile version
- Or maybe even better, can Forumotion allow for a simply tick box to enable/disable the mobile version? So admins of Forumotion forums have an option.
Thank you in advance for your help and consideration.
It will be much appreciated.
May the Force be with You!
Marco
From the Tantive XI team
Re: How to Disable the Mobile Version
Hello,
Go to ACP(Admin Control Panel) > Modules > HTML & JAVASCRIPT > Javascript codes management > Javascript codes management and create a new javascript
Title: Disable Mobile Version
Placement: In all the pages
Javascript code: Paste the following code
then press submit.
Go to ACP(Admin Control Panel) > Modules > HTML & JAVASCRIPT > Javascript codes management > Javascript codes management and create a new javascript
Title: Disable Mobile Version
Placement: In all the pages
Javascript code: Paste the following code
- Code:
$(function() {
if(window._userdata && _userdata.page_desktop) window.location = _userdata.page_desktop;
});
then press submit.
Re: How to Disable the Mobile Version
Hmm... my JS is slightly different...
Name: Force Classic View on Mobile Devices
Placement: in all the pages.
The JS:
Samantha.
Name: Force Classic View on Mobile Devices
Placement: in all the pages.
The JS:
- Code:
$(function(){if (_userdata && _userdata.page_desktop) window.location.href = _userdata.page_desktop.replace(/&/,'&')});
Samantha.
Guest- Guest
Re: How to Disable the Mobile Version
I work with Marco (the OP) and tried this and many variations of it and have yet to get it to work at all.
Our board is based off PHPBB3 if that makes any difference.
Is there anyway I can test the vars being used to see what is set?
However, it still looks like it won't ever work to me... but people say it did or does.
if _userdata, I take to mean, if user is logged in and
if _userdata.page_desktop, I take it that if it is set, we change the window location var to _userdata.page_desktop... but that right there makes no sense. If it is tested and is set to that already, why are we changing the window location to it? It is already there, isn't it?
To me, I think it is saying that if a user is logged in and is viewing a desktop page, set the window location to a desktop page.
to me, the code would make more sense if it looked like:
Obviously, the _userdata.page_mobile is not a var (since I tried for kicks and giggles), but if the code looked more like that, I would take it to mean, if user is logged in and the view is mobile, set location to desktop view.
Anyway... regardless...
I cannot get the examples to work at all.
Is there some other MOD that we might have installed that is stomping those two vars in the JS?
And back to my question, can I test these vars somehow (what should I see when testing them?)
Or any way to add a button for the user to easily switch on demand?
Thanks!!
Our board is based off PHPBB3 if that makes any difference.
Is there anyway I can test the vars being used to see what is set?
However, it still looks like it won't ever work to me... but people say it did or does.
if _userdata, I take to mean, if user is logged in and
if _userdata.page_desktop, I take it that if it is set, we change the window location var to _userdata.page_desktop... but that right there makes no sense. If it is tested and is set to that already, why are we changing the window location to it? It is already there, isn't it?
To me, I think it is saying that if a user is logged in and is viewing a desktop page, set the window location to a desktop page.
to me, the code would make more sense if it looked like:
- Code:
$(function(){if (_userdata && _userdata.page_MOBILE) window.location.href = _userdata.page_desktop.replace(/&/,'&')});
- Code:
$(function() {
if(window._userdata && _userdata.page_MOBILE) window.location = _userdata.page_desktop;
});
Obviously, the _userdata.page_mobile is not a var (since I tried for kicks and giggles), but if the code looked more like that, I would take it to mean, if user is logged in and the view is mobile, set location to desktop view.
Anyway... regardless...
I cannot get the examples to work at all.
Is there some other MOD that we might have installed that is stomping those two vars in the JS?
And back to my question, can I test these vars somehow (what should I see when testing them?)
Or any way to add a button for the user to easily switch on demand?
Thanks!!
Re: How to Disable the Mobile Version
psybertech wrote:I work with Marco (the OP) and tried this and many variations of it and have yet to get it to work at all.
Our board is based off PHPBB3 if that makes any difference.
Is there anyway I can test the vars being used to see what is set?
However, it still looks like it won't ever work to me... but people say it did or does.
if _userdata, I take to mean, if user is logged in and
if _userdata.page_desktop, I take it that if it is set, we change the window location var to _userdata.page_desktop... but that right there makes no sense. If it is tested and is set to that already, why are we changing the window location to it? It is already there, isn't it?
To me, I think it is saying that if a user is logged in and is viewing a desktop page, set the window location to a desktop page.
to me, the code would make more sense if it looked like:or
- Code:
$(function(){if (_userdata && _userdata.page_MOBILE) window.location.href = _userdata.page_desktop.replace(/&/,'&')});
- Code:
$(function() {
if(window._userdata && _userdata.page_MOBILE) window.location = _userdata.page_desktop;
});
Obviously, the _userdata.page_mobile is not a var (since I tried for kicks and giggles), but if the code looked more like that, I would take it to mean, if user is logged in and the view is mobile, set location to desktop view.
Anyway... regardless...
I cannot get the examples to work at all.
Is there some other MOD that we might have installed that is stomping those two vars in the JS?
And back to my question, can I test these vars somehow (what should I see when testing them?)
Or any way to add a button for the user to easily switch on demand?
Thanks!!
Just checked your board and it turns out you've got various JS issues (giggles too) and that's why the code ain't working. Anyway, pls open your own ticket, you're not the one requesting help here. ty.
Guest- Guest
Re: How to Disable the Mobile Version
GIGGLES TOO?RoXaNNeX wrote:Just checked your board and it turns out you've got various JS issues (giggles too) and that's why the code ain't working. Anyway, pls open your own ticket, you're not the one requesting help here. ty.
uhmmm, is that a technical term?
To clarify... the topic from the original author... is this not a support request/ticket? Or is it just a question he posted?
If not, I will have him officially open a ticket. I was just trying to add to his OP.
Thank you.
Re: How to Disable the Mobile Version
Hello @psybertech ,
I believe you mentioned that you work with the topic starter (like a co admin, etc) correct? If so, don't worry about it, you can keep posting here because your discussing almost the same issue, if not the same issue and your doing so on behalf of the same forum.
Usually we just like folks to start a new topic for every issue in order to keep things crom getting confusing and also so that someone searching about a similar issue in our search bar can find a solution better without having to read through many topics with solutions to many issues.
In this case though, you are fine and you can keep posting here.
-Brandon
I believe you mentioned that you work with the topic starter (like a co admin, etc) correct? If so, don't worry about it, you can keep posting here because your discussing almost the same issue, if not the same issue and your doing so on behalf of the same forum.
Usually we just like folks to start a new topic for every issue in order to keep things crom getting confusing and also so that someone searching about a similar issue in our search bar can find a solution better without having to read through many topics with solutions to many issues.
In this case though, you are fine and you can keep posting here.
-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: How to Disable the Mobile Version
Hello,
I found the following error on your forum:
this error maybe conflicts other javascript codes. Please try to disable it and check again if the javascript which disabling the mobile forum version working.
I found the following error on your forum:
this error maybe conflicts other javascript codes. Please try to disable it and check again if the javascript which disabling the mobile forum version working.
Re: How to Disable the Mobile Version
Thank you all for providing input to get the mobile version disabled.
It seems we can get this to work now. But the proof of the pudding is in the eating...
We will first run a poll this week to ask our members if they want to get rid off the mobile version as well.
If the majority votes yes, we will disable the mobile version and report back on this in this thread.
Have a good day
- Marco
It seems we can get this to work now. But the proof of the pudding is in the eating...
We will first run a poll this week to ask our members if they want to get rid off the mobile version as well.
If the majority votes yes, we will disable the mobile version and report back on this in this thread.
Have a good day
- Marco
Re: How to Disable the Mobile Version
Is this solved?
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.
Re: How to Disable the Mobile Version
Not yet. We will report back in a week after implementing the suggested solutions.
Re: How to Disable the Mobile Version
Hello,
The mobile version still cannot disabled I tried now everthing(css/javascript/templates codes) without result. Is there a way to disable it via css or javascript or both of them? Also is there a way to disable the link "Mobile version" from footer links?
The mobile version still cannot disabled I tried now everthing(css/javascript/templates codes) without result. Is there a way to disable it via css or javascript or both of them? Also is there a way to disable the link "Mobile version" from footer links?
Similar topics
» Can't disable mobile version
» Disable Mobile Version
» Disable the mobile version.
» How To Force Your Desktop Version Theme "Colors And Banner" To Be Used In The Mobile Version?
» Display a mini-version of user avatars in posts in the mobile version?
» Disable Mobile Version
» Disable the mobile version.
» How To Force Your Desktop Version Theme "Colors And Banner" To Be Used In The Mobile Version?
» Display a mini-version of user avatars in posts in the mobile version?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum