Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
695 views
in Q2A Core by
I have ended up with a lot of questions/answers that need approval ( more than 500 ). I can do it through the Admin/Moderate screen but this is going to take a lot of time. I am wondering if I can get the question ids and pass it to a function and do the approval. Directly changing Q_QUEUED to Q seems dangerous. Help appreciated.
Q2A version: 1.5

1 Answer

+3 votes
by
selected by
 
Best answer

One way is to run Javascript in the browser console. For example, in Google Chrome open Dev Tools (Ctrl+Shift+I), go to the Console tab and enter

$('.qa-form-light-button-approve').click();

Note: I'd suggest testing before automatically "clicking" everything, for example

$('.qa-form.light-button-approve').css('outline', '2px solid red');

That will add an outline to all the buttons that would be clicked. Make sure that's all the correct ones before running the click() version :)

by
Ctrl+Shift+I? I've learned something new! I've been using Ctrl+Shift+J :D
by
Awesome. Thanks. Worked like a charm.

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...