Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
382 views
in Q2A Core by
After the user posts a question, I'd like to show them some text, can anyone point me in the right direction here? Which file would I edit?

1 Answer

0 votes
by

The easiest way I can think of would be to rewrite the core in qa-page-ask.php:

            qa_redirect(qa_q_request($questionid, $intitle)); // our work is done here

and add a $_POST parameter to the redirect:

            qa_redirect(qa_q_request($questionid, $intitle), array('notice'=>'test');

Then have your layer check for the request:

           if(qa_post_text('notice'))

and find some way to output the text (check the badge plugin for a SO type of notification).

Otherwise, I assume 1.5 will have some way to interrupt the redirect (maybe you can add this to the list of pluggable functions...)

...