Question2answer initial experience

Source: Internet
Author: User
Tags php language

Question2answer initial experience

High-quality Q & A communities are very valuable, and many unsolved problems can be solved through the Q & A community. For webmasters, vertical Q & A communities also have great potential. I recently stared at the Q & A module and found that it was in line with some of my ideas. I decided to turn a website on hand into a Q & A community.

At the beginning, I wanted to write one completely from the beginning, but my personal energy was limited. At present, there are some other ideas waiting for implementation. I can only try to build it faster. Therefore, expansion in open-source programs is the best choice.

There are very few independent Q & A communities in PHP on the Internet. Find them and finally lock question2answer (QA ).

QA is a simple open-source Q & A Community system that is implemented by PHP and MySQL is used for data storage. It includes the most basic functions such as registration, login, question, answer, comment, points, classification, Tag, mail collection (send various reminder emails), and voting. It also provides some simple background options, such as modifying the website name and URL path style, which can be completed online. Although exquisite, they are complete.

In addition to the core functions, it also provides plug-in development interfaces and skin functions, which brings great convenience to personalized customization, but unfortunately it does not provide a good template engine, development templates need to understand the PHP language, so there are few ready-made templates and it is not easy to develop.

Multi-language support is a highlight of this system. It is officially available in 12 languages, including simplified and Traditional Chinese, to meet Chinese requirements.

In addition, it can also be integrated with WordPress to share user data. Now there are many WP users, which can indeed attract many friends.

1. Download QA:
2. Create a database in mysql
3. Change the qa-config-example.php file to a qa-config.php and enter the configuration information
4. Put the we Server B. Open the home page to go to the installation page.

After the installation is complete, you can use its basic functions.

Finally, let's take a look at the directory structure of this project to get a rough idea of the file planning of this system.

This system is divided into six directories in sequence:

  • QA-content
  • QA-external-Example
  • QA-include
  • QA-Lang
  • QA-plugin
  • QA-theme

Based on the name, we can probably determine its function. Here I will briefly describe it.

 
QA-content is used to store some JS script files.
 
QA-external-example is an extension example provided by the QA Team
 
QA-include stores the core QA program.
 
QA-lang storage is a language pack, we generally want to install a Chinese package, you can choose the latest Chinese package in the http://www.question2answer.org/addons.php, download and put in this directory, you can set in the background
QA-plugin stores plug-ins. You can write plug-ins by yourself or use official or third-party plug-ins. However, all the plug-ins are stored here.
 
QA-theme stores style files. By default, the system provides two styles: Candy and default, which can be set in the background or modified or added.

Here we can see that we have a preliminary understanding of the QA system, and the basic functions are very practical. We can achieve very cool results by extending the extension.
This article is just a basic introduction. For more information, visit the official website:
Http://www.question2answer.org

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.