How to add a Q & A module to your wordpress

Source: Internet
Author: User
Tags wordpress blog

Some wordpress Q & A plug-ins are basically in the English version, and there are few useful ones. That is, the Q & A plug-in is relatively easy to use, but it is A pity to pay, the price is $19. Like Quora, Yahoo Q & A, and StackOverflow, Q & A provides A fully functional Q & A platform for your WordPress blog. The first version is in English, and the second version costs $19. I believe we have few users who write Chinese wordpress blogs. Fortunately, this website also provides Q & A Lite plug-in Q & A for free download.

Function differences between Q & A and Q & A Lite wordpress Q & A plug-ins

As shown in the following figure, the first four functions are supported, and the last four functions are only supported by Q & A of the paid version.

WYSIWYG foreground editing

Customizable and easy to integrate with various themes

Integrate the voting system in the plug-in

Built-in credit score system and user configuration file

Problem category

Support for anonymous user Q &

Email subscription Problems

Comprehensive after-sales service and plug-in updates

The free version of Q & A Lite is introduced here, because I am very poor and I have never used A paid version. At the same time, this plug-in has been hand-written by Lei zike for the foreground, which is more conducive to the user experience for wp Chinese users. At present, I have not seen any more useful wordpress Chinese edition Q & A plug-ins. To be more powerful, we recommend that you add an Anwsion system to the subdirectory. Based on the PHP + MYSQL architecture, Anwsion combines the advantages of multiple programs, such as Q & A, Wikipedia, and Digu, to easily build an online Q & A system for webmasters, with a full Chinese interface and background management. Its powerful functions allow you to build a Q & A site like Baidu know and sousearch ask. In this case, it is equivalent to two sites and two management backgrounds, which are not commonly used by users.

 

Q & A Lite wordpress Q & A plug-in for Installation and Use

Download the plug-in, decompress the file, and upload the QA directory to the root directory of your website/wp-content/plugins/folder. Enable the plug-in on the dashboard plug-in page in the background.

Usage

1. First, make sure that your site's fixed link enables pseudo-static.

Go to "Settings-> fixed link" to check whether your fixed link is pseudo-static. If not, this plug-in is not suitable.

 

2. Go to Questions "->" settings "to assign permissions to each user role on the website. Generally, only the administrator can check View questions. "view the problem," Ask questions. "Answer the question," View answers. "view the answer," Add answers. "Add answer. In addition, the free version of this plug-in is only available for login users to ask and answer questions, so remember to check "Anyone can register" in "Settings-General-membership" in the background ", the default role of a new user is set to "subscriber" or "contributor ". In addition, it is best to add a registration and login button to the prominent position of the front-end for your convenience.

3. Access "http: // your domain name/questions/ask/" to create your first question.

4. Create a custom link in "appearance-menu": http: // your domain name/questions to access the Q & A system.

Note:

1. This plug-in must be fully compatible with certain themes. For example, the u142 themes used on this site are seriously misplaced. If you use the u142 topic, you can solve it in this way. Edit several files in the qa/default-templates/directory of the plug-in.

Archive-question.php

Ask-question.php

Edit-answer.php

Edit-question.php

Single-question.php

User-question.php

All in the code

"Qa-page-wrapper">

Insert before

"Container">

Class = "content">

In the code

Insert later

Because the topics are different, this method is only applicable to u142 topics. If you encounter problems with other topics, please refer to the opposite.

2. Because the plug-in enables user registration, but the default Registration Name of wordpress does not support Chinese characters, it may not be used to Chinese users. You can make the following changes (remember to modify it again after each wordpress upgrade ).

Edit the wp-nodes des/formatting. php file and search

Function sanitize_user ($ username, $ strict = false ){

Add a line of code below this line:

Strict = false;

You can also search for the following line of code and comment it out before the code.

// $ Username = preg_replace ('| [^ a-z0-9 _.-@] | I', '', $ username );

Wordpress Q & A Lite Chinese edition download

Q & A lite download (218.9 KB, 41 times)

The article was published by zhunmashuo.com

Related Article

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.