Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

How to show predefined text before posting a question

+1 vote

With NoahY quick response, I was able to develop the plugin. Check it at https://github.com/bahar/qa_text_before_ask and let me know your feedback.

 

I have setup Q2A for our company support desk. Its working great.

Most of the users are not tech savyy and are posting same questions often. I was looking for a hack/plugin to show some guideline, procedure when user wants to ask a question (before redirecting user to the question asking page).

Like the one available in http://stackoverflow.com/questions/ask

 

I am good at PHP, but very new to Q2A. If some can give me some pointers on implementing this as a plugin, it will be great.

 

Sure, I will share the plugin.

 

Thanks,

Q2A version: 1.4.3
asked Nov 26, 2011 in Q2A Core by bahar
edited Nov 26, 2011 by bahar

1 Answer

0 votes
Welcome :)

I think a widget would accomplish this on a basic level:

http://www.question2answer.org/modules.php#widget

You can use the bundled activity-count-widget as a template, then just use the following to show only on the ask form:

        function allow_template($template)
        {
            return $template=='ask';
        }

To get the widget to change according to the focused element, as in SO, just use the jQuery .focus(), I think.
answered Nov 26, 2011 by NoahY
Thanks, its working now.