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.

Disable mobile version problem

+9
Ape
The Godfather
Tonight
mpelmmc
Snows
brandon_g
skouliki
TamDonCo
mohamadkirkuk
13 posters

Page 2 of 2 Previous  1, 2

Go down

Solved Disable mobile version problem

Post by mohamadkirkuk Mon 8 Oct 2018 - 23:21

First topic message reminder :

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 way

The current code no longer works " javascript "
Code:
$(function() { if(window._userdata && _userdata.page_desktop) window.location = _userdata.page_desktop;});
mohamadkirkuk
mohamadkirkuk
New Member

Posts : 11
Reputation : 1
Language : arabia , english

https://norton.forumarabia.com

Back to top Go down


Solved Re: Disable mobile version problem

Post by mohamadkirkuk Tue 9 Oct 2018 - 16:08

Please find a solution as soon as possible  Disable mobile version problem - Page 2 1f625  Disable mobile version problem - Page 2 1f625 
mohamadkirkuk
mohamadkirkuk
New Member

Posts : 11
Reputation : 1
Language : arabia , english

https://norton.forumarabia.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by The Godfather Tue 9 Oct 2018 - 16:13

i invite you to read this :

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
The Godfather
Administrator
Administrator

Posts : 5133
Reputation : 831

Back to top Go down

Solved Re: Disable mobile version problem

Post by TamDonCo Tue 9 Oct 2018 - 16:24

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
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Disable mobile version problem

Post by Ape Tue 9 Oct 2018 - 16:29

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.


Disable mobile version problem - Page 2 Left1212Disable mobile version problem - Page 2 Center11Disable mobile version problem - Page 2 Right112
Disable mobile version problem - Page 2 Ape_b110
Disable mobile version problem - Page 2 Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19161
Reputation : 1995
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Disable mobile version problem

Post by Ange Tuteur Tue 9 Oct 2018 - 16:46

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. bye
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: Disable mobile version problem

Post by TamDonCo Tue 9 Oct 2018 - 16:59

Thank You very much , Ange Tuteur

Works fine but I have to clear cache and cookies to make it works

Thanks again
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Disable mobile version problem

Post by mohamadkirkuk Tue 9 Oct 2018 - 17:02

Ange 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. bye
thank you very much
that's work
But he is slow
mohamadkirkuk
mohamadkirkuk
New Member

Posts : 11
Reputation : 1
Language : arabia , english

https://norton.forumarabia.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by omarpop23 Tue 9 Oct 2018 - 18:42

if you want it switch fast try this way
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>
omarpop23
omarpop23
Forumember

Male Posts : 182
Reputation : 3
Language : Arabic
Location : Egypt

http://devs.ahlamontada.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by McLeod Wed 10 Oct 2018 - 14:11

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) ?
McLeod
McLeod
New Member

Posts : 2
Reputation : 1
Language : French

http://www.villapaintball.fr

Back to top Go down

Solved Re: Disable mobile version problem

Post by Draxion Wed 10 Oct 2018 - 15:58

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");
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Disable mobile version problem

Post by The Godfather Wed 10 Oct 2018 - 16:09

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.

Disable mobile version problem - Page 2 En10

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 Very Happy

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

We hope that this will bring you full satisfaction

Regards king
The Godfather
The Godfather
Administrator
Administrator

Posts : 5133
Reputation : 831

Back to top Go down

Solved Re: Disable mobile version problem

Post by TamDonCo Wed 10 Oct 2018 - 16:15

Thank You very much, The Godfather
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Disable mobile version problem

Post by McLeod Wed 10 Oct 2018 - 16:48

Thanks !!!
Option Ok in french version, perfect ! Disable mobile version problem - Page 2 1f60a
McLeod
McLeod
New Member

Posts : 2
Reputation : 1
Language : French

http://www.villapaintball.fr

Back to top Go down

Solved Re: Disable mobile version problem

Post by Draxion Wed 10 Oct 2018 - 19:02

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

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