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

Just a tip for you, in case you have a troll like I have in my forum that visits you without IP address - and you in general allow guests to answer/comment. In other words: He can always interact with your forum --- but not anymore with this:

You can remove the answer-comment-buttons by this code in your advanced theme (qa-theme.php):

    // prevent anonymous users without IP to answer or comment, allow on ask page
    public function form_buttons($form, $columns)
    {
        $isaskpage = ($this->template == 'ask');
        $userid = qa_get_logged_in_userid();
        $userip = qa_remote_ip_address();
        if($isaskpage || !empty($userip) || !empty($userid))
        {
            // call default method output
            qa_html_theme_base::form_buttons($form, $columns);
        }
    }
    


This feature is also part of the premium stop spam plugin.

Regards,
Kai

Q2A version: 1.7.4
by
The weird thing, it does not seem to work in all cases. "createip" is null in the database, but the anonymous guest was able to answer! ... Issue reported: http://www.question2answer.org/qa/51184

Please log in or register to answer this question.

...