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

Bug: Users can still change their usernames (v1.6.2)

+4 votes
327 views
asked Oct 17, 2013 in Q2A Core by q2apro.com
I thought this has been solved but it has not...

Register as new user. Click on user profile. You can edit your username.

Even having the option "Allow users with posts to change their username:" unchecked!

Either this is a bug or a missing feature. If it is a missing feature it is really time to add it to the settings =)
Q2A version: 1.6.2
commented Oct 17, 2013 by q2apro.com
edited Oct 21, 2013 by q2apro.com
Actually the option should be called: "Allow users to change their username:" yes/no

And in qa-page-account.php line

$changehandle=qa_opt('allow_change_usernames') || ((!$userpoints['qposts']) && (!$userpoints['aposts']) && (!$userpoints['cposts']));

should be:

$changehandle=qa_opt('allow_change_usernames');

Then it works like expected.

1 Answer

+3 votes
answered Oct 17, 2013 by maxjtechno

I think that the option ("Allow users with posts to change their username:") does allow a user to change the username only if the user has no posts at all.

If the user has 1 post, he is not allowed to change the username.

So I think that the option behaviour is correct...

 

commented Oct 17, 2013 by maxjtechno
Mmmm, it could be an additional feature.
Generally speaking I do not like all the options that allow to change a website link (in this case the user profile link would change, changing the username). The downside is that if the user has written a wrong username, he has no chance of changing it anymore. However if there was such an additional option, I would use it.
commented Oct 17, 2013 by maxjtechno
So an upvote for your proposal ! :-)
...