109 views
in Web Develop by (386 points)
How to disable space in user name during user registration in Q2A site

1 Answer

0 like 0 dislike
by (386 points)

You can do it very easily. 

Add this following code at qa-include/plugins/qa-filter-basic.php:51 

Than save the page and you will be done..

if (preg_match('/\\s/', $handle)) {

    return qa_lang_sub('users/handle_has_bad', 'space');

}

259 questions

68 answers

0 comments

1,864 users

10 Online Users
0 Member 10 Guest
Today Visits : 7514
Yesterday Visits : 9202
Total Visits : 3970658
...