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.
The forum of the forums
+8
Ape
The Godfather
Tonight
Snows
brandon_g
skouliki
TamDonCo
mohamadkirkuk
12 posters

    Disable mobile version problem

    mohamadkirkuk
    mohamadkirkuk
    New Member


    Posts : 11
    Reputation : 1
    Language : arabia , english

    Solved Disable mobile version problem

    Post by mohamadkirkuk October 8th 2018, 11:21 pm

    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

    Solved Re: Disable mobile version problem

    Post by mohamadkirkuk October 9th 2018, 4:08 pm

    Please find a solution as soon as possible  Disable mobile version problem - Page 2 1f625  Disable mobile version problem - Page 2 1f625 
    The Godfather
    The Godfather
    Administrator
    Administrator


    Posts : 5297
    Reputation : 844

    Solved Re: Disable mobile version problem

    Post by The Godfather October 9th 2018, 4:13 pm

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


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Disable mobile version problem

    Post by TamDonCo October 9th 2018, 4:24 pm

    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
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Disable mobile version problem

    Post by Ape October 9th 2018, 4:29 pm

    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
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Disable mobile version problem

    Post by Ange Tuteur October 9th 2018, 4:46 pm

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


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Disable mobile version problem

    Post by TamDonCo October 9th 2018, 4:59 pm

    Thank You very much , Ange Tuteur

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

    Thanks again
    mohamadkirkuk
    mohamadkirkuk
    New Member


    Posts : 11
    Reputation : 1
    Language : arabia , english

    Solved Re: Disable mobile version problem

    Post by mohamadkirkuk October 9th 2018, 5:02 pm

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


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

    Solved Re: Disable mobile version problem

    Post by omarpop23 October 9th 2018, 6:42 pm

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


    Posts : 2
    Reputation : 1
    Language : French

    Solved Re: Disable mobile version problem

    Post by McLeod October 10th 2018, 2:11 pm

    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) ?
    Draxion
    Draxion
    Helper
    Helper


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

    Solved Re: Disable mobile version problem

    Post by Draxion October 10th 2018, 3:58 pm

    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");
    The Godfather
    The Godfather
    Administrator
    Administrator


    Posts : 5297
    Reputation : 844

    Solved Re: Disable mobile version problem

    Post by The Godfather October 10th 2018, 4:09 pm

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


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Disable mobile version problem

    Post by TamDonCo October 10th 2018, 4:15 pm

    Thank You very much, The Godfather
    McLeod
    McLeod
    New Member


    Posts : 2
    Reputation : 1
    Language : French

    Solved Re: Disable mobile version problem

    Post by McLeod October 10th 2018, 4:48 pm

    Thanks !!!
    Option Ok in french version, perfect ! Disable mobile version problem - Page 2 1f60a
    Draxion
    Draxion
    Helper
    Helper


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

    Solved Re: Disable mobile version problem

    Post by Draxion October 10th 2018, 7:02 pm

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

      Current date/time is September 22nd 2024, 9:29 pm