Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
533 views
in Q2A Core by
Ok i asked a friend of mine to login with facebook and his name has ğ,ö,ç,ü,İ characters and is longer than 20 chars.

What happened is: the name got cut in 20th char and the username has these characters now. Is there a way to replace these chars if the user is coming from facebook?  Because when the user tries to look at his profile it gives an error saying there is no user like this. So i changed the chars in database in order to fix this. It would be great while creating username all chars are converted or replaced by english chars just incase.

Also i changed the handle field that keeps the username to 50 chars  in qa_user table will this have a negative on anything?

1 Answer

+1 vote
by

There's no problem changing the maximum length of the username (handle) column - just make sure you include this line in qa-config.php:

define('QA_DB_MAX_HANDLE_LENGTH', 20);

As for the problem of non-English characters in the username, this shouldn't be an issue, since all non-English characters are urlencoded from UTF-8. Can you post a link to your site so I can see this for myself?

by
Same problem for me, in which Sql table i need to change handle ?
by
It's the handle column in the qa_users table.
asked Nov 11, 2010 in Q2A Core by define - what it means ?
by
I updated my profile with the address for the site i am testing question2answer

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...