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
+2
Ape
hbghlyj
6 posters

    Google's Hosted jQuery inaccessible in mainland China

    hbghlyj
    hbghlyj
    Forumember


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

    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
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    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
    tikky
    tikky
    Forumember


    Posts : 922
    Reputation : 159
    Language : 🇵🇹

    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

    skouliki likes this post

    hbghlyj
    hbghlyj
    Forumember


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

    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
    SarkZKalie
    SarkZKalie
    Support Moderator
    Support Moderator


    Male Posts : 1442
    Reputation : 220
    Language : English

    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
    hbghlyj
    hbghlyj
    Forumember


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

    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
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    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.
    SarkZKalie
    SarkZKalie
    Support Moderator
    Support Moderator


    Male Posts : 1442
    Reputation : 220
    Language : English

    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

    skouliki likes this post

    hbghlyj
    hbghlyj
    Forumember


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

    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
    skouliki
    skouliki
    Manager
    Manager


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

    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


      Current date/time is September 23rd 2024, 7:24 am