Disable mobile version problem Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
+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

    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;});
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Disable mobile version problem

    Post by TamDonCo October 8th 2018, 11:26 pm

    I used to use this code to force classic version instead of mobile version when user uses cell phones, it works for many year and today it stops working, it goes to classic version and then go back to mobile and classic and mobile ... infinite loop


    Please HELP to stop it


    Code:
      if(window._userdata && _userdata.page_desktop) window.location = _userdata.page_desktop;
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki October 9th 2018, 12:16 am

    Hello

    Try this javascript/ all pages
    Code:
    $(function(){if (_userdata && _userdata.page_desktop) window.location.href = _userdata.page_desktop.replace(/&/,'&')});

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki October 9th 2018, 12:17 am

    Hello

    Try this one

    Code:

    $(function(){if (_userdata && _userdata.page_desktop) window.location.href = _userdata.page_desktop.replace(/&/,'&')});

    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Disable mobile version problem

    Post by TamDonCo October 9th 2018, 12:27 am

    No, same problem

    the code works, it goes to destop and switch back to mobile and desktop and mobile .. infinite loop

    just begin happening today
    mohamadkirkuk
    mohamadkirkuk
    New Member


    Posts : 11
    Reputation : 1
    Language : arabia , english

    Solved Re: Disable mobile version problem

    Post by mohamadkirkuk October 9th 2018, 12:28 am

    skouliki wrote:Hello

    Try this one

    Code:

    $(function(){if (_userdata && _userdata.page_desktop) window.location.href = _userdata.page_desktop.replace(/&/,'&')});

    Thanks
    but, sorry dont work
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Disable mobile version problem

    Post by TamDonCo October 9th 2018, 4:14 am

    yes, something 's changing today, the code does not work any more
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Disable mobile version problem

    Post by brandon_g October 9th 2018, 4:39 am

    Could maybe have had something to do with the change over to Google's reCAPTCHA today. Though it effects a very specific page, so I don't really know what about the update would have broke the code.



    Disable mobile version problem Brando10
    Remember to mark your topic Disable mobile version problem Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Disable mobile version problem Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Disable mobile version problem

    Post by brandon_g October 9th 2018, 4:41 am

    Since this is about the same problem as TamDonCo's topic, I am going to go ahead and merge this with it.

    Topics merged



    Disable mobile version problem Brando10
    Remember to mark your topic Disable mobile version problem Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Disable mobile version problem Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Disable mobile version problem

    Post by TamDonCo October 9th 2018, 4:46 am

    It happens to every browser, I tested Samsung browser, Google Chrome, Opera, Firefox, Edge, UCBrowser

    Alll have the same problem
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Disable mobile version problem

    Post by brandon_g October 9th 2018, 4:50 am

    Like I said it's possible it's related to this update: https://help.forumotion.com/t156596-change-of-funcaptcha-by-google-recaptcha#1081822

    Don't know how are why, but it may be easier for someone to develop a new cose that will work, then try to figure out what serverside code change broke the current one.



    Disable mobile version problem Brando10
    Remember to mark your topic Disable mobile version problem Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Disable mobile version problem Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Disable mobile version problem

    Post by TamDonCo October 9th 2018, 4:55 am

    Is it anyway to change in template just go straight to classic version (web version), just ignore mobile version ?
    Snows
    Snows
    Forumember


    Male Posts : 140
    Reputation : 4
    Language : English

    Solved Forum stopped connecting

    Post by Snows October 9th 2018, 11:22 am

    I tried accessing my forum but I can't, it keeps loading long. Here is my forum URL www.9jatechs.com
    avatar
    Guest
    Guest


    Solved Re: Disable mobile version problem

    Post by Guest October 9th 2018, 11:27 am

    Hello,

    I can access your forum just fine:
    Spoiler:
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki October 9th 2018, 11:32 am

    Hello
    Are you using mobile?

    Tonight
    Tonight
    Forumember


    Male Posts : 312
    Reputation : 80
    Language : Estonian, English, Russian
    Location : Estonia

    Solved Re: Disable mobile version problem

    Post by Tonight October 9th 2018, 12:26 pm

    I have noticed this as well, there are some issues with mobile and external domains. It creates a loop (forum doesn't load).
    Snows
    Snows
    Forumember


    Male Posts : 140
    Reputation : 4
    Language : English

    Solved Re: Disable mobile version problem

    Post by Snows October 9th 2018, 12:36 pm

    skouliki wrote:Hello
    Are you using mobile?

    Yes am using Mobile
    Snows
    Snows
    Forumember


    Male Posts : 140
    Reputation : 4
    Language : English

    Solved Re: Disable mobile version problem

    Post by Snows October 9th 2018, 12:39 pm

    Tonight wrote:I have noticed this as well, there are some issues with mobile and external domains. It creates a loop (forum doesn't load).
    Yes,  exactly what is happening to my forum.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki October 9th 2018, 12:46 pm

    are you using a code for disabling the mobile version?

    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Disable mobile version problem

    Post by brandon_g October 9th 2018, 12:47 pm

    Hello,

    Do you have an active package with us? Also dud you purchase the domain through us or with some other registra?


    Last edited by brandon_g on October 9th 2018, 12:53 pm; edited 1 time in total



    Disable mobile version problem Brando10
    Remember to mark your topic Disable mobile version problem Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Disable mobile version problem Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki October 9th 2018, 12:52 pm

    We have reported this issue to our technicians and we are waiting for an answer
    We apologize for the inconvenience

    Tonight
    Tonight
    Forumember


    Male Posts : 312
    Reputation : 80
    Language : Estonian, English, Russian
    Location : Estonia

    Solved Re: Disable mobile version problem

    Post by Tonight October 9th 2018, 12:53 pm

    Snows wrote:
    Tonight wrote:I have noticed this as well, there are some issues with mobile and external domains. It creates a loop (forum doesn't load).
    Yes,  exactly what is happening to my forum.
    Sorry for false information before, problem is this code (and not domain):
    Code:
    <script type="text/javascript">(function() {
        windowlocationhrefTEMPORARYDISABLE = _userdata.page_desktop
    }());</script>

    You have to remove it (for now).
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki October 9th 2018, 12:56 pm

    Since this is about the same problem as TamDonCo's topic, topics will be merged.


    Last edited by skouliki on October 9th 2018, 1:06 pm; edited 1 time in total

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki October 9th 2018, 1:01 pm

    skouliki wrote:We have reported this issue to our technicians and we are waiting for an answer
    We apologize for the inconvenience

    we will report back with an update as soon as we can

    Snows
    Snows
    Forumember


    Male Posts : 140
    Reputation : 4
    Language : English

    Solved Re: Disable mobile version problem

    Post by Snows October 9th 2018, 2:16 pm

    skouliki wrote:
    skouliki wrote:We have reported this issue to our technicians and we are waiting for an answer
    We apologize for the inconvenience

    we will report back with an update as soon as we can
    Thanks sir, I will be waiting
    mohamadkirkuk
    mohamadkirkuk
    New Member


    Posts : 11
    Reputation : 1
    Language : arabia , english

    Solved Re: Disable mobile version problem

    Post by mohamadkirkuk October 9th 2018, 3:21 pm

    Thank you, we are waiting for you
    The Godfather
    The Godfather
    Administrator
    Administrator


    Posts : 5336
    Reputation : 845

    Solved Re: Disable mobile version problem

    Post by The Godfather October 9th 2018, 3:22 pm

    Hello,

    I invite you to read this announcement and update your scripts accordingly.

    The Godfather wrote:Please note that for functional and optimization reasons, we have modified the structure of the links to move from the web version to the mobile version of our forums and vice versa. Indeed, the switch from one version to another is now done via a JavaScript solution, and no longer via a link.

    Although this remains completely transparent for most forums, some sites with custom scripts using these links may need to update their scripts to reflect this change if they wish to continue using them.

    Without updating this custom script to force the web version, problems accessing your forum could occur from a mobile phone (including infinite redirections). If you notice this problem on your forum, we recommend that you disable the custom script forcing the web version and update it.

    We apologize for the inconvenience caused :rose:
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Disable mobile version problem

    Post by TamDonCo October 9th 2018, 3:33 pm

    but how do we update script ?? Rolling Eyes
    mohamadkirkuk
    mohamadkirkuk
    New Member


    Posts : 11
    Reputation : 1
    Language : arabia , english

    Solved Re: Disable mobile version problem

    Post by mohamadkirkuk October 9th 2018, 3:37 pm

    how do we update script
    The Godfather
    The Godfather
    Administrator
    Administrator


    Posts : 5336
    Reputation : 845

    Solved Re: Disable mobile version problem

    Post by The Godfather October 9th 2018, 3:47 pm

    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.


    Last edited by The Godfather on October 9th 2018, 4:14 pm; edited 1 time in total