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.

Google's Hosted jQuery inaccessible in mainland China

+2
Ape
hbghlyj
6 posters

Go down

Solved Google's Hosted jQuery inaccessible in mainland China

Post by hbghlyj August 9th 2021, 12:09 pm

The jQuery library hosted by Google at http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js used by Forumotion is inaccessible in mainland China. How can I redirect it to https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js or https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js
Thank you. What a Face
hbghlyj
hbghlyj
Forumember

Male Posts : 32
Reputation : 1
Language : English+Chinese

https://cjhb.666forum.com/

Back to top Go down

Solved Re: Google's Hosted jQuery inaccessible in mainland China

Post by Ape August 9th 2021, 3:01 pm

The topic was posted in the wrong section, so I have moved it to the correct section.
Please read our forum rules: ESF General Rules


Google's Hosted jQuery inaccessible in mainland China Left1212Google's Hosted jQuery inaccessible in mainland China Center11Google's Hosted jQuery inaccessible in mainland China Right112
Google's Hosted jQuery inaccessible in mainland China Ape_b110
Google's Hosted jQuery inaccessible in mainland China Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19147
Reputation : 1994
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Google's Hosted jQuery inaccessible in mainland China

Post by tikky August 9th 2021, 4:20 pm

Hello @hbghlyj,

Welcome to Forumotion Support Forum! Go to Administration Panel > Display > Templates > General > overall_header edit and replace this:
Code:
{JQUERY_PATH}
to
Code:
https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
tikky
tikky
Forumember

Posts : 897
Reputation : 157
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

skouliki likes this post

Back to top Go down

Solved Re: Google's Hosted jQuery inaccessible in mainland China

Post by hbghlyj August 9th 2021, 11:51 pm

pedxz wrote:Hello @hbghlyj,

Welcome to Forumotion Support Forum! Go to Administration Panel > Display > Templates > General > overall_header edit and replace this:
Code:
{JQUERY_PATH}
to
Code:
https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
Thanks. But, I don′t know how to change the jquery path of mobile version
Also, the smilies-frame of post editor still sends requests to the old jquery path Shocked
Here is a screenshot of "network" page of the console on the post editor page:
Google's Hosted jQuery inaccessible in mainland China Image
The link to smilies-frame is https://cjhb.666forum.com/smilies?t=1628545613&mode=smilies_frame


Edit: I have created a HTML page and made a copy of that smilies-frame page, changed its jquery path, and changed smilies iframe src of post-editor and edit-profile-signature page to that page, and then I did the same thing for select-color page. So the problem for desktop version is totally solved. Very Happy But what about the mobile version
hbghlyj
hbghlyj
Forumember

Male Posts : 32
Reputation : 1
Language : English+Chinese

https://cjhb.666forum.com/

Back to top Go down

Solved Re: Google's Hosted jQuery inaccessible in mainland China

Post by SarkZKalie August 13th 2021, 5:13 am

Host yourself a backup for Mobile Version or use CDN on their main site
Code:
https://code.jquery.com/jquery-2.2.4.min.js


Google's Hosted jQuery inaccessible in mainland China Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1418
Reputation : 220
Language : English

https://rotavn.forumotion.com/

Back to top Go down

Solved Re: Google's Hosted jQuery inaccessible in mainland China

Post by hbghlyj August 13th 2021, 7:30 am

SarkZKalie wrote:Host yourself a backup for Mobile Version or use CDN on their main site
Code:
https://code.jquery.com/jquery-2.2.4.min.js
Thank you. But I don′t know how to change the jquery path for mobile version of my forum in the admin control panel Confused
hbghlyj
hbghlyj
Forumember

Male Posts : 32
Reputation : 1
Language : English+Chinese

https://cjhb.666forum.com/

Back to top Go down

Solved Re: Google's Hosted jQuery inaccessible in mainland China

Post by SLGray August 13th 2021, 7:58 pm

pedxz wrote:Hello @hbghlyj,

Welcome to Forumotion Support Forum! Go to Administration Panel > Display > Templates > General > overall_header edit and replace this:
Code:
{JQUERY_PATH}
to
Code:
https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js


Google's Hosted jQuery inaccessible in mainland China Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51503
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Google's Hosted jQuery inaccessible in mainland China

Post by SarkZKalie August 14th 2021, 3:35 am

hbghlyj wrote:Thank you. But I don′t know how to change the jquery path for mobile version of my forum in the admin control panel Confused

For Mobile Version, we're using jQuery 2.2.3 by default. You may find it in Control Panel -> Display -> Templates -> Mobile version -> overall_header
Code:
<script src="//code.jquery.com/jquery-2.2.3.min.js" type="text/javascript"></script>
<script src="{JS_DIR}{L_LANG}.js" type="text/javascript"></script>


Google's Hosted jQuery inaccessible in mainland China Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1418
Reputation : 220
Language : English

https://rotavn.forumotion.com/

skouliki likes this post

Back to top Go down

Solved Re: Google's Hosted jQuery inaccessible in mainland China

Post by hbghlyj August 14th 2021, 4:55 am

SLGray wrote:
pedxz wrote:Hello @hbghlyj,

Welcome to Forumotion Support Forum! Go to Administration Panel > Display > Templates > General > overall_header edit and replace this:
Code:
{JQUERY_PATH}
to
Code:
https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js

SarkZKalie wrote:
hbghlyj wrote:Thank you. But I don′t know how to change the jquery path for mobile version of my forum in the admin control panel Confused

For Mobile Version, we're using jQuery 2.2.3 by default. You may find it in Control Panel -> Display -> Templates -> Mobile version -> overall_header
Code:
<script src="//code.jquery.com/jquery-2.2.3.min.js" type="text/javascript"></script>
<script src="{JS_DIR}{L_LANG}.js" type="text/javascript"></script>

Thanks for your help. I have just changed jQuery path for mobile version. The problem is completely solved. Very Happy
hbghlyj
hbghlyj
Forumember

Male Posts : 32
Reputation : 1
Language : English+Chinese

https://cjhb.666forum.com/

Back to top Go down

Solved Re: Google's Hosted jQuery inaccessible in mainland China

Post by skouliki August 14th 2021, 7:57 am

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

Female Posts : 15157
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

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