Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

Please, extend field of user login ?

0 votes

Gideon,
Please, please, extend the database column for the login username.
Now it is 20 chars, which is far to few. Maybe give 50 or 100 for a db column?

The column is qa_users > varchar(50) handle (for existing Q2A instances).

But you only need to change onle line of code in the file
qa-include/qa-db-maxima.php > line 37:
@define('QA_DB_MAX_HANDLE_LENGTH', 50);

Thank you in andvance.

asked Jan 5 in Q2A Core by Krzysztof Kielce
edited Jan 5 by Krzysztof Kielce
If that is all it takes then you can override this yourself in your config file. I think 20 is a good number personally.
So at least maybe it would be useful to make it 30 or 50 ?
Sometimes nicknames are longer when they contain e.g. name and surname.
(Changing it is not a slightest problem for me - but I think about our Q2A society).
Yes, 30 wouldn't be too bad. I think any longer than that would start to screw with displaying names around the site.

1 Answer

0 votes
As DisgruntledGoat said, these constants can be overidden in the qa-config.php file, so there's not really a reason to change them in the core.
answered Jan 6 by gidgreen