*

c4

  • **
  • 6 posts
disallow change username option
« on: January 12, 2018, 11:09:13 AM »
Hi

 I want to disallow change username option In my site. I wanted to do it through jQuery:

oc-content/themes/veronika/user-profile.php

<script>
  $("#element_id").attr('disabled','disabled');
</script>

But when saving user data after editing, I get a message. "all fields must be filled out". The username field gets the name from the database and the name can not be edited. Unfortunately, I can not save user profile data using this jQuery script.

Please help


*

MB Themes

Re: disallow change username option
« Reply #1 on: January 12, 2018, 02:40:39 PM »
@c4
Code: [Select]
$("#element_id").prop('readonly', true);
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

c4

  • **
  • 6 posts
Re: disallow change username option
« Reply #2 on: January 12, 2018, 05:20:21 PM »

works, thank you :)

*

Anonymous

  • ****
  • 200 posts
Re: disallow change username option
« Reply #3 on: January 15, 2018, 08:31:54 AM »
hello c4,
what you did! how it works!

please elaborate it please
Innovation is change that unlocks new value  ;)

*

c4

  • **
  • 6 posts
Re: disallow change username option
« Reply #4 on: January 17, 2018, 09:08:43 PM »
I have disabled for users to change the username. After registration users cant change username.

*

Anonymous

  • ****
  • 200 posts
Re: disallow change username option
« Reply #5 on: January 18, 2018, 04:39:13 PM »
as per my knowledge; users cant change their username-  they having only option to change their name from   mydomain.com/user/profile

how is it possible; user can change  username.

i guess! username is numeric value i.e, 1, 2 ... 9,0 , this value automatically saved in db,

pls, clarify anbody! :-\
Innovation is change that unlocks new value  ;)

*

MB Themes

Re: disallow change username option
« Reply #6 on: January 18, 2018, 05:02:52 PM »
There are ways to change it, but not sure what is point of changing username.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Anonymous

  • ****
  • 200 posts
Re: disallow change username option
« Reply #7 on: January 18, 2018, 05:17:13 PM »
am also confused-
Quote
have disabled for users to change the username. After registration users cant change username.
Innovation is change that unlocks new value  ;)