MN Forum

Full Version: How to add "username" into edit account?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi at all!
I want add the field "username" into the page "Edit Account" for give the possibility at the users of change the username, but i want which this field is controlled for not have duplicate "usernames".

In which mode i can add this field?

Thanks in advance at all! Big Grin
(03-25-2015, 05:46 AM)adphp Wrote: [ -> ]Hidden content for guests

Yes very good idea
The username is a easy implementation, but be aware that the divs won't match yours 100% as my website is modified on which i did the tests...

So let's start :

In edit_acc.php Find
Code:
Hidden content for guests

After } add a new line including

Code:
Hidden content for guests

Once you are done find
Code:
Hidden content for guests

After add

Code:
Hidden content for guests

You're done! Make sure you change "btn btn-large btn-success" with "gbut".

Dani
Thanks for collaboration bro!

(03-25-2015, 06:51 AM)treicadani Wrote: [ -> ]Hidden content for guests
I did not understand how much good does this code would be to have her a screenshot?
@giadone

i got a working version for you if you change this block of code
Code:
Hidden content for guests

with this one

Code:
Hidden content for guests

Then add
Code:
Hidden content for guests

before

Code:
Hidden content for guests

At that array you can add as many usernames as you wish not to be in use by your users.

@sultime i'm not sure if i understand what you mean?

Dani
Works perfect bro! I have added this function in the register page! Very thanks a lot!


(03-28-2015, 07:00 AM)treicadani Wrote: [ -> ]Hidden content for guests
If you don't want allow users to use some usernames like "admin", "Administrator" you can add it to blacklist