Add Question2Answer statistics, question2answer

Source: Internet
Author: User

Add Question2Answer statistics, question2answer

The first step, on the http://www.cnzz.com website, register an account, then fill in your website information, get it script.

Step 2: copy the script to Your webpage script. For example:

Find the/qa-include/qa-theme-base.php file and modify the following function.


Function attribution ()

{

// Hi there. I 'd really appreciate you displaying this link on your Q2A site. Thank you-Gideon


$ This-> output (

'<Div class = "qa-attribution"> ',

'Powered by <a href = "http://www.question2answer.org/"> Question2Answer </a> ',

'</Div>'

);


// Forlong401 adds them for tongji. Some personal information is omitted here. <script> the tag contains the source code script copied from CNZZ. Note: If the single quotation mark "'" appears, you need to add the backslash \ to escape it.

$ This-> output (

'<Div class = "cnzz-attribution"> ',

'<Script type = "text/javascript"> var cnzz_protocol = ("https:" = document. location. protocol )? "Https: //": "http: //"); </script> ',

'</Div>'

);



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.