Disable mobile version problem
+9
Ape
The Godfather
Tonight
mpelmmc
Snows
brandon_g
skouliki
TamDonCo
mohamadkirkuk
13 posters
Page 2 of 2
Page 2 of 2 • 1, 2
Disable mobile version problem
First topic message reminder :
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself
Forum link : ( link is hidden, you must reply to see )
The current code no longer works " javascript "
Technical Details
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself
Forum link : ( link is hidden, you must reply to see )
Description of problem
The problem with converting the mobile version to computer version is previously when a visitor was entering the site through the phone he was being redirected to the copmuter site automatically but now the code doesnt work like it did is there an alternative wayThe current code no longer works " javascript "
- Code:
$(function() { if(window._userdata && _userdata.page_desktop) window.location = _userdata.page_desktop;});
Re: Disable mobile version problem
i invite you to read this :
it's not a technical bug but a side effect of a custom script that is no longer tolerated. those who want to have a functional forum must either update their script or delete it and it is not up to us to do it for them.
if you can't do it, we will then study a solution on our side but it's not on the agenda for the moment. so i advise you to update your scripts on your side
thank you
The Godfather wrote:Hi
This script is a custom script not coming from Forumotion but from the community, we can not provide an update today. The best is to disable this custom script for the moment. As a reminder, each user can switch to the web version in one click via the menu of the mobile version or the option in the web browser.
If a solution is found, we will update the announcement by linking to a tutorial. If no solution is found by the community in a few days, our technical team will look into this problem.
it's not a technical bug but a side effect of a custom script that is no longer tolerated. those who want to have a functional forum must either update their script or delete it and it is not up to us to do it for them.
if you can't do it, we will then study a solution on our side but it's not on the agenda for the moment. so i advise you to update your scripts on your side
thank you
The Godfather- Administrator
- Posts : 4993
Reputation : 827
Re: Disable mobile version problem
Is anyway to disable mobile version completely by modifying template ?
my users do not like mobile version at all
The prolem is not many people know how to switch to web version manually and seems annoyed to them
my users do not like mobile version at all
The prolem is not many people know how to switch to web version manually and seems annoyed to them
Re: Disable mobile version problem
Sadly No there is no way to turn mobile part of the forum off without having a NEW code.
I'm sure the members that made the code before will try and fix the old code for you.
I'm sure the members that made the code before will try and fix the old code for you.
Re: Disable mobile version problem
Hello everyone,
To disable the mobile version you'll now have to modify the cookie _mobile_version and set its value to 0. The old script uses links to modify this state and has now been deprecated, so I highly suggest removing it to avoid endless redirections.
I did however, go and wrote a quick script that utilizes cookies to disable the mobile version, so feel free to replace the old script with the one below if you like.
Have a good day.
To disable the mobile version you'll now have to modify the cookie _mobile_version and set its value to 0. The old script uses links to modify this state and has now been deprecated, so I highly suggest removing it to avoid endless redirections.
I did however, go and wrote a quick script that utilizes cookies to disable the mobile version, so feel free to replace the old script with the one below if you like.
- Code:
document.addEventListener('DOMContentLoaded', function () {
if (_userdata.tpl_mobile && my_getcookie('_mobile_version') != '0') {
my_setcookie('_mobile_version', '0', true);
window.location.reload();
}
});
Have a good day.

Re: Disable mobile version problem
Thank You very much , Ange Tuteur
Works fine but I have to clear cache and cookies to make it works
Thanks again
Works fine but I have to clear cache and cookies to make it works
Thanks again
Re: Disable mobile version problem
thank you very muchAnge Tuteur wrote:Hello everyone,
To disable the mobile version you'll now have to modify the cookie _mobile_version and set its value to 0. The old script uses links to modify this state and has now been deprecated, so I highly suggest removing it to avoid endless redirections.
I did however, go and wrote a quick script that utilizes cookies to disable the mobile version, so feel free to replace the old script with the one below if you like.
- Code:
document.addEventListener('DOMContentLoaded', function () {
if (_userdata.tpl_mobile && my_getcookie('_mobile_version') != '0') {
my_setcookie('_mobile_version', '0', true);
window.location.reload();
}
});
Have a good day.![]()
that's work
But he is slow
Re: Disable mobile version problem
if you want it switch fast try this way
put this code after
{HOSTING_JS}
in overall_header of Mobile Version Template
put this code after
{HOSTING_JS}
in overall_header of Mobile Version Template
- Code:
<script>
(function () {
if (_userdata.tpl_mobile && my_getcookie('_mobile_version') != '0') {
my_setcookie('_mobile_version', '0', true);
window.location.reload();
}
})();
</script>
Re: Disable mobile version problem
Yessss ! Thank you !!!
It works at forumactif too (french version, sorry for my english).
But, the mobile version opens the browser on the root of the forum.
It's possible to open the default page of my forum which is on the portal (in web version) ?
It works at forumactif too (french version, sorry for my english).
But, the mobile version opens the browser on the root of the forum.
It's possible to open the default page of my forum which is on the portal (in web version) ?
Re: Disable mobile version problem
McLeod wrote:Yessss ! Thank you !!!
It works at forumactif too (french version, sorry for my english).
But, the mobile version opens the browser on the root of the forum.
It's possible to open the default page of my forum which is on the portal (in web version) ?
All you have to do is put the link you want it to redirect to in between the parenthesis.
- Code:
window.location.reload("LINK GOES HERE");
Re: Disable mobile version problem
Hello,
In order to avoid any inconvenience for you, each administrator can now choose the default display type of his forum on mobile devices from his admin panel > Display > Templates > Mobile Version > Mobile version configuration >Your forum address leads to : Web version / Mobile version.

This option is now available for your forums in its 6 versions (phpBB2, phpBB3, PunBB, Invision, ModernBB & AwesomeBB).
From then on, you no longer need to use codes to force a specific version on the mobile devices of your forum users. All you have to do is make your choice properly via this option
Don't forget to delete the external scripts you have set up for this purpose to avoid any conflict
We hope that this will bring you full satisfaction
Regards
In order to avoid any inconvenience for you, each administrator can now choose the default display type of his forum on mobile devices from his admin panel > Display > Templates > Mobile Version > Mobile version configuration >Your forum address leads to : Web version / Mobile version.

This option is now available for your forums in its 6 versions (phpBB2, phpBB3, PunBB, Invision, ModernBB & AwesomeBB).
From then on, you no longer need to use codes to force a specific version on the mobile devices of your forum users. All you have to do is make your choice properly via this option

Don't forget to delete the external scripts you have set up for this purpose to avoid any conflict

We hope that this will bring you full satisfaction
Regards

The Godfather- Administrator
- Posts : 4993
Reputation : 827
Re: Disable mobile version problem
Problem solved & topic archived.
|
Page 2 of 2 • 1, 2

» Disable Mobile Version
» Let us disable mobile version
» How to Disable the Mobile Version
» Can't disable mobile version
» disable mobile version
» Let us disable mobile version
» How to Disable the Mobile Version
» Can't disable mobile version
» disable mobile version
Page 2 of 2
Permissions in this forum:
You cannot reply to topics in this forum