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

Posts : 362
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(/&/,'&')});
avatar
skouliki
Manager
Manager

Female Posts : 4895
Reputation : 800
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(/&/,'&')});
avatar
skouliki
Manager
Manager

Female Posts : 4895
Reputation : 800
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
avatar
TamDonCo
Forumember

Posts : 362
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
avatar
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
avatar
TamDonCo
Forumember

Posts : 362
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.


Remember to mark your topic when a solution is found.
avatar
brandon_g
Manager
Manager

Male Posts : 7727
Reputation : 704
Language : English
Location : USA

http://broadcastingduo.forumotion.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


Remember to mark your topic when a solution is found.
avatar
brandon_g
Manager
Manager

Male Posts : 7727
Reputation : 704
Language : English
Location : USA

http://broadcastingduo.forumotion.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
avatar
TamDonCo
Forumember

Posts : 362
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.


Remember to mark your topic when a solution is found.
avatar
brandon_g
Manager
Manager

Male Posts : 7727
Reputation : 704
Language : English
Location : USA

http://broadcastingduo.forumotion.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 ?
avatar
TamDonCo
Forumember

Posts : 362
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
avatar
Snows
Forumember

Posts : 37
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:



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

Male Posts : 895
Reputation : 137
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?
avatar
skouliki
Manager
Manager

Female Posts : 4895
Reputation : 800
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).
avatar
Tonight
Forumember

Male Posts : 278
Reputation : 79
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
avatar
Snows
Forumember

Posts : 37
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.
avatar
Snows
Forumember

Posts : 37
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?
avatar
skouliki
Manager
Manager

Female Posts : 4895
Reputation : 800
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


Remember to mark your topic when a solution is found.
avatar
brandon_g
Manager
Manager

Male Posts : 7727
Reputation : 704
Language : English
Location : USA

http://broadcastingduo.forumotion.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
avatar
skouliki
Manager
Manager

Female Posts : 4895
Reputation : 800
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).
avatar
Tonight
Forumember

Male Posts : 278
Reputation : 79
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
avatar
skouliki
Manager
Manager

Female Posts : 4895
Reputation : 800
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
avatar
skouliki
Manager
Manager

Female Posts : 4895
Reputation : 800
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
avatar
Snows
Forumember

Posts : 37
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
avatar
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:
avatar
The Godfather
Administrator
Administrator

Posts : 3090
Reputation : 449

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

Posts : 362
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
avatar
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
avatar
The Godfather
Administrator
Administrator

Posts : 3090
Reputation : 449

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