John Bogart
asked 10 years ago

Where the admins/moderators can approve all questions and answers before posting?   Would be a great help.

2 Answers
Jackie Lord
answered 10 years ago

Hi John, 
In order to have all questions and answers verified by Admin before uploading, we need to modify the code a bit:
For Question: open file: “actions.php” in folder: /wp-content/plugins/dw-question-answer/inc/ and look for:

 $post_status = ( isset($_POST['private-message']) && $_POST['private-message'] ) ? 'private' : 'publish';

Change it into:

 $post_status = ( isset($_POST['private-message']) && $_POST['private-message'] ) ? 'private' : 'pending';

For answer: open file: “template-functions.php” in folder: /wp-content/plugins/dw-question-answer/inc/  and look for:

 'post_status' => 'publish'

 Change into:

 'post_status' => 'pending'

Now every time a question/answer posted, you can go to back-end and approve it.
 

John Bogart
replied 10 years ago

Sorry for the delay in response. We did this. However, the pending answer is still shown on the post. In the backend, when we approve, We are not allowed to change the status to “answered”. The closed we could use was “resolved”. This changed the status, the answer is still shown, but the “status box” does not update to show “1” in answer. Please see: http://kett.com/wp/?dwqa-question=can-we-add-a-new-calibration-to-the-pm450-and-pm650-grain-and-seed-moisture-meters as an example.
Can you assist? Did we do something incorrectly?

Guru Ghantaal
replied 10 years ago

Hi @bogart99j

A slightly off topic request. I just noticed that you have been able to apply a number of modifications to the standard DWQA plugin.

I am desperately looking for the second dropdown which in your case is a subcategory implementation here: http://kett.com/wp/?page_id=150. Would be kind enough to share with every one how you achieved this!

Best regards

John Bogart
replied 10 years ago

One of our contract programmers did the customization. If you’d like I can put him him in touch with you. He did a great job with the pull downs and helped clean up our ability to approve each question and answer … we are planning to go live this weekend with that portion of our site. Do you have any comments or suggestions from your review?

citra lestari
replied 10 years ago

hi John Bogart.
i just see that your programmer have been resolved for admin approval to a new question. Do you mind if you share how you achieved this?

Thank You!

DominicStaff
answered 10 years ago

To resolve the Status box issue in the Q&A plugin.Please update the latest version of the plugin, you can download the latest version here: http://wordpress.org/plugins/dw-question-answer/
 

Powered by DW Question & Answer Pro