Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.1k views
in Plugins by

there is a solution that will be shown a message after answering a question will be shown a message, ex: Thank you for your answer.

Q2A version: 1.6.2
by
I actually have put all my code in page.js minified ;) In there I have one document.ready-function (Jquery) that handles everything. Jquery is the most powerful js library I know, and helped me to do so many things that are not yet implemented in q2a core. I will release some more plugins later on that will add great features.

Example for the submit: When submitting I prevent the default submit using jquery and check if there are at least 2 tags, if not there is an alert.

if ($("#tags").length > 0){
        var regForm = $(".qa-form-tall-table").parent();
        regForm.submit(function(e) {
                var tagsN = 0;
            // count tags
            var matches = $("#tags").val().match(/\b/g);
            if(matches) { tagsN = matches.length*0.5; }
            if(tagsN<2) {
                e.preventDefault();
// etc.

You find some nice stuff built in at http://www.gute-mathe-fragen.de/ask Check it out but try not to post, just enter text in the fields and see what happens =)

Have a good evening!
Kai
by
For the "show something after question" I have written a plugin and not used jquery. The plugin:

1. checks for post is by user: qa_post_is_by_user
2. gets the time difference $timestamp
3. displays "options after question"

I can release this as a plugin next week if required.

Currently I am in the process of video editing, the presentation of the new "stop spam" plugin that finally replaces the unwanted recaptcha plugin: http://www.q2apro.com/plugins/stop-spam
by
Wonderful :-) Thanks for the replies. Really appreciate.
by
Thank you for everything , plugin will be free?

Please log in or register to answer this question.

...