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 Mon 8 Oct - 23:21

    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 Mon 8 Oct - 23:26

    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 : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki Tue 9 Oct - 0:16

    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 : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki Tue 9 Oct - 0:17

    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 Tue 9 Oct - 0:27

    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 Tue 9 Oct - 0:28

    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 Tue 9 Oct - 4:14

    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 Tue 9 Oct - 4:39

    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 Tue 9 Oct - 4:41

    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 Tue 9 Oct - 4:46

    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 Tue 9 Oct - 4:50

    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 Tue 9 Oct - 4:55

    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 Tue 9 Oct - 11:22

    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 Tue 9 Oct - 11:27

    Hello,

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


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki Tue 9 Oct - 11:32

    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 Tue 9 Oct - 12:26

    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 Tue 9 Oct - 12:36

    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 Tue 9 Oct - 12:39

    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 : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki Tue 9 Oct - 12:46

    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 Tue 9 Oct - 12:47

    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 Tue 9 Oct - 12:53; 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 : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki Tue 9 Oct - 12:52

    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 Tue 9 Oct - 12:53

    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 : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki Tue 9 Oct - 12:56

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


    Last edited by skouliki on Tue 9 Oct - 13:06; edited 1 time in total

    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Disable mobile version problem

    Post by skouliki Tue 9 Oct - 13:01

    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 Tue 9 Oct - 14:16

    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 Tue 9 Oct - 15:21

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


    Posts : 5297
    Reputation : 844

    Solved Re: Disable mobile version problem

    Post by The Godfather Tue 9 Oct - 15:22

    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 Tue 9 Oct - 15:33

    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 Tue 9 Oct - 15:37

    how do we update script
    The Godfather
    The Godfather
    Administrator
    Administrator


    Posts : 5297
    Reputation : 844

    Solved Re: Disable mobile version problem

    Post by The Godfather Tue 9 Oct - 15:47

    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 Tue 9 Oct - 16:14; edited 1 time in total

      Current date/time is Sun 22 Sep - 19:31