Disable mobile version problem

Page 1 of 2 1, 2  Next

Go down

Solved Disable mobile version problem

Post by mohamadkirkuk on 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;});
mohamadkirkuk
mohamadkirkuk
New Member

Posts : 11
Reputation : 1
Language : arabia , english

https://norton.forumarabia.com

Back to top Go down

Solved Disable mobile version problem

Post by TamDonCo on 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;
TamDonCo
TamDonCo
Forumember

Posts : 391
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Disable mobile version problem

Post by skouliki on 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 : 6251
Reputation : 958
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Disable mobile version problem

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

Hello

Try this one

Code:

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

Female Posts : 6251
Reputation : 958
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by TamDonCo on 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
TamDonCo
TamDonCo
Forumember

Posts : 391
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Disable mobile version problem

Post by mohamadkirkuk on 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
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 TamDonCo on October 9th 2018, 4:14 am

yes, something 's changing today, the code does not work any more
TamDonCo
TamDonCo
Forumember

Posts : 391
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Disable mobile version problem

Post by brandon_g on 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.
brandon_g
brandon_g
Manager
Manager

Male Posts : 8324
Reputation : 764
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by brandon_g on 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.
brandon_g
brandon_g
Manager
Manager

Male Posts : 8324
Reputation : 764
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by TamDonCo on 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
TamDonCo
TamDonCo
Forumember

Posts : 391
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Disable mobile version problem

Post by brandon_g on 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.
brandon_g
brandon_g
Manager
Manager

Male Posts : 8324
Reputation : 764
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by TamDonCo on 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 ?
TamDonCo
TamDonCo
Forumember

Posts : 391
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Forum stopped connecting

Post by Snows on 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
Snows
Snows
Forumember

Posts : 52
Reputation : 4
Language : English

http://Www.9jatechs.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by mpelmmc on October 9th 2018, 11:27 am

Hello,

I can access your forum just fine:
Spoiler:
Disable mobile version problem 53ef918076ba3a05a2feae97c79f4c93


Disable mobile version problem 2018-111

Rules of the forum - Frequently Asked Questions - Have you lost your password?
Please mark the "solved" button if your problem/doubt has been solved.
mpelmmc
mpelmmc
Support Moderator
Support Moderator

Male Posts : 1063
Reputation : 161
Language : English and Spanish

https://help.forumotion.com/

Back to top Go down

Solved Re: Disable mobile version problem

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

Hello
Are you using mobile?
skouliki
skouliki
Manager
Manager

Female Posts : 6251
Reputation : 958
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by Tonight on 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).
Tonight
Tonight
Forumember

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

Back to top Go down

Solved Re: Disable mobile version problem

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

@skouliki wrote:Hello
Are you using mobile?

Yes am using Mobile
Snows
Snows
Forumember

Posts : 52
Reputation : 4
Language : English

http://Www.9jatechs.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by Snows on 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.
Snows
Snows
Forumember

Posts : 52
Reputation : 4
Language : English

http://Www.9jatechs.com

Back to top Go down

Solved Re: Disable mobile version problem

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

are you using a code for disabling the mobile version?
skouliki
skouliki
Manager
Manager

Female Posts : 6251
Reputation : 958
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by brandon_g on 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.
brandon_g
brandon_g
Manager
Manager

Male Posts : 8324
Reputation : 764
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by skouliki on 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
skouliki
skouliki
Manager
Manager

Female Posts : 6251
Reputation : 958
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by Tonight on 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).
Tonight
Tonight
Forumember

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

Back to top Go down

Solved Re: Disable mobile version problem

Post by skouliki on 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 : 6251
Reputation : 958
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by skouliki on 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
skouliki
skouliki
Manager
Manager

Female Posts : 6251
Reputation : 958
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Disable mobile version problem

Post by Snows on 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
Snows
Snows
Forumember

Posts : 52
Reputation : 4
Language : English

http://Www.9jatechs.com

Back to top Go down

Solved Re: Disable mobile version problem

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

Thank you, we are waiting for you
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 on 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:
The Godfather
The Godfather
Administrator
Administrator

Posts : 3213
Reputation : 534

Back to top Go down

Solved Re: Disable mobile version problem

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

but how do we update script ?? Rolling Eyes
TamDonCo
TamDonCo
Forumember

Posts : 391
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Disable mobile version problem

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

how do we update script
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 on 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
The Godfather
The Godfather
Administrator
Administrator

Posts : 3213
Reputation : 534

Back to top Go down

Page 1 of 2 1, 2  Next

Back to top


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