MN Forum
How to add "username" into edit account? - Printable Version

+- MN Forum (http://forum.mn-shop.com)
+-- Forum: Products (http://forum.mn-shop.com/forum-products.html)
+--- Forum: Feature Request (http://forum.mn-shop.com/forum-feature-request.html)
+---- Forum: PES Pro (http://forum.mn-shop.com/forum-pes-pro.html)
+---- Thread: How to add "username" into edit account? (/thread-how-to-add-username-into-edit-account.html)



How to add "username" into edit account? - giadone - 03-25-2015

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


RE: How to add "username" into edit account? - sultime - 03-25-2015

(03-25-2015, 05:46 AM)adphp Wrote: Hidden content for guests

Yes very good idea


RE: How to add "username" into edit account? - treicadani - 03-25-2015

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


RE: How to add "username" into edit account? - giadone - 03-28-2015

Thanks for collaboration bro!

(03-25-2015, 06:51 AM)treicadani Wrote: Hidden content for guests



RE: How to add "username" into edit account? - sultime - 03-28-2015

I did not understand how much good does this code would be to have her a screenshot?


RE: How to add "username" into edit account? - treicadani - 03-28-2015

@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


RE: How to add "username" into edit account? - giadone - 03-28-2015

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



RE: How to add "username" into edit account? - kasabezwysilku - 03-28-2015

If you don't want allow users to use some usernames like "admin", "Administrator" you can add it to blacklist