Support Forums - Classified Ads Script Osclass

Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: c4 on January 12, 2018, 11:09:13 AM

Title: disallow change username option
Post by: c4 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

Title: Re: disallow change username option
Post by: MB Themes on January 12, 2018, 02:40:39 PM
@c4
Code: [Select]
$("#element_id").prop('readonly', true);
Title: Re: disallow change username option
Post by: c4 on January 12, 2018, 05:20:21 PM

works, thank you :)
Title: Re: disallow change username option
Post by: Anonymous on January 15, 2018, 08:31:54 AM
hello c4,
what you did! how it works!

please elaborate it please
Title: Re: disallow change username option
Post by: c4 on January 17, 2018, 09:08:43 PM
I have disabled for users to change the username. After registration users cant change username.
Title: Re: disallow change username option
Post by: Anonymous 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! :-\
Title: Re: disallow change username option
Post by: MB Themes on January 18, 2018, 05:02:52 PM
There are ways to change it, but not sure what is point of changing username.
Title: Re: disallow change username option
Post by: Anonymous 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.