Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
929 views
in Q2A Core by
I want to include my q&a site in a search widget that has a bunch of different options on a drop-down. The widget uses GET to send queries to the other resources. The examples of a form I've found here all use POST, and if I change it to GET it doesn't work. I see that I can easily send it as a search query, but I'd love for the user to go directly to the "ask" form with their question already populating it.
Q2A version: 1.5

1 Answer

0 votes
by

You could change this line in qa-page-ask.php:

$in['title']=qa_post_text('title');

It could also use qa_get(...) to retrieve the content via GET.

by
Hm, but then this breaks the core "ask box" widget, doesn't it? I got an error when I changed it that way and then tried the ask box widget. I tried changing the method in qa-widget-ask-box.php to GET but I still got errors...

Fatal error: Call to undefined function qa_get_text() in /home/.../qa-include/qa-page-ask.php on line 95
...