Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
107 views
in Q2A Core by
How to add a must fill field when new user regist like this site?

i have used recapche and email confirm to prohibit spam but it also have spams artical,so iwant to add a must fill field when regist to enhance spam prohibit ways.

1 Answer

0 votes
by
edited by

You can do core hack in page/register.php page at https://github.com/q2a/question2answer/blob/dev/qa-include/pages/register.php. At 150 line there is $qa_content['form']. For fields array you can add additional custom field. Then at 85 line, you can check value for that field by passing qa_post_text() to variable and compare value with if conditions.

But actually you do not need such headache. This NoSpam plugin below prevents spams 100%.
https://www.question2answer.org/qa/70308/premium-plugin-nospam-gyzgyn

by
Thanks a lot
...