Replace the original comment system of the blog park with the comments of yongyouyan (open the second-level domain name)

Source: Internet
Author: User

What is Youyan? The following is an official description:

Simple and friendly social comment box!

Website comment boxes are no longer cold user names and emails, but comments from real users on Weibo and social networks, increasing the communication atmosphere and fun.

Use the followingCodeYou can use it on the website: 

 
<! -- Uy begin --> <Div id = "uyan_frame"> </div> <SCRIPT type = "text/JavaScript" id = "uyscript" src = "http://v1.uyan.cc/js/iframe.js? Uyuserid = 1596047 "async =" "> </SCRIPT> <! -- Uy end -->

 

I was studying the use of this system today. Can I use it in my blog? After research, I wrote the following code to load the comment system (See below)

<Div id = "uyan_frame"> </div> <SCRIPT type = "text/JavaScript"> var $ comment_form = $ ("# comment_form"); $ comment_form.hide (); vaR $ uyan_frame = $ ('# uyan_frame'); $ uyan_frame.insertafter ($ comment_form); $uyan_frame.css ("margin-top", "12px ") vaR $ comments = $ ("# comments"); var $ A = $ comments. prev ("A"); $ comments. hide (); $. hide (); if ($ comment_form.length = 0) {$ uyan_frame.hide () ;}</SCRIPT> <! -- Uy begin --> <SCRIPT type = "text/JavaScript" id = "uyscript" src = "http://v1.uyan.cc/js/iframe.js? Uyuserid = 1596047 "async =" "> </SCRIPT> <! -- Uy end -->

 

After use, I found the problem:

As you manage your website by domain name, you cannot view the relevant domain name in the background management settings because the domain name of www.cnblogs.com used in the blog Park is not xxxx.cnblogs.com.

We can see that

Use the: http://liydotnet.cnblogs.com/archive/2012/03/29/2424091.html address to view the bookArticleYou can see different results.

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.