Google's Hosted jQuery inaccessible in mainland China
+2
Ape
hbghlyj
6 posters
Page 1 of 1
Google's Hosted jQuery inaccessible in mainland China
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.
Thank you.
Re: Google's Hosted jQuery inaccessible in mainland China
The topic was posted in the wrong section, so I have moved it to the correct section.
|
Re: Google's Hosted jQuery inaccessible in mainland China
Hello @hbghlyj,
Welcome to Forumotion Support Forum! Go to Administration Panel > Display > Templates > General > overall_header edit and replace this:
Welcome to Forumotion Support Forum! Go to Administration Panel > Display > Templates > General > overall_header edit and replace this:
- Code:
{JQUERY_PATH}
- Code:
https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
skouliki likes this post
Re: Google's Hosted jQuery inaccessible in mainland China
Thanks. But, I don′t know how to change the jquery path of mobile versionpedxz wrote:Hello @hbghlyj,
Welcome to Forumotion Support Forum! Go to Administration Panel > Display > Templates > General > overall_header edit and replace this:to
- Code:
{JQUERY_PATH}
- Code:
https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
Also, the smilies-frame of post editor still sends requests to the old jquery path
Here is a screenshot of "network" page of the console on the post editor page:
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. But what about the mobile version
Re: Google's Hosted jQuery inaccessible in mainland China
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
Re: Google's Hosted jQuery inaccessible in mainland China
Thank you. But I don′t know how to change the jquery path for mobile version of my forum in the admin control panelSarkZKalie 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
Re: Google's Hosted jQuery inaccessible in mainland China
pedxz wrote:Hello @hbghlyj,
Welcome to Forumotion Support Forum! Go to Administration Panel > Display > Templates > General > overall_header edit and replace this:to
- Code:
{JQUERY_PATH}
- Code:
https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Google's Hosted jQuery inaccessible in mainland China
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
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>
skouliki likes this post
Re: Google's Hosted jQuery inaccessible in mainland China
SLGray wrote:pedxz wrote:Hello @hbghlyj,
Welcome to Forumotion Support Forum! Go to Administration Panel > Display > Templates > General > overall_header edit and replace this:to
- Code:
{JQUERY_PATH}
- 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
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.
Re: Google's Hosted jQuery inaccessible in mainland China
Problem solved & topic archived.
|
Similar topics
» Mainland China cannot open normal mobile phone version of the forum page!
» The Googles Club
» All mainland users can't have authentication codes when they register
» Links to China
» Forumia Inaccessible
» The Googles Club
» All mainland users can't have authentication codes when they register
» Links to China
» Forumia Inaccessible
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum