Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Disabling changing user name

Asked Modified Viewed 3,530 times
B
Bulent
B
Bulent 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
asked
Junior Member

In some forums some members constantly change their names.To prevent that follow the instructions below.

Open "edit_profile.php" find

Quote

<td class='tbl'><input type='text' name='user_name' value='".$userdata['user_name']."' maxlength='30' class='textbox' style='width:200px;'></td>


change it with this code

Quote

<td class='tbl'><input type='text' disabled='true' name='user_name' value='".$userdata['user_name']."' maxlength='30' class='textbox' style='width:200px;'></td>
0 replies

7 posts

T
tancurrom
T
i67.photobucket.com/albums/h286/tancurrom/sig_or_avatar/tancurromflash.jpg

The problems with minorities is disputing the reputation created by few.

.MY site.
.MY blog.
  • Junior Member, joined since
  • Contributed 31 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

well, personally that wouldnt prevent me, because you havent change the varialble collection, so i would just use web developer to change the html back and it would send the string and update it again, but most people mighten release that
0 replies
Y
Yxos
Y
Yxos 10
Yxos

The best solution is not necessarily a technical solution !
  • Senior Member, joined since
  • Contributed 277 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Quote

tancurrom wrote:
...i would just use web developer to change the html back and it would send the string and update it again, but most people mighten release that

A bit hostile isn't it ? :(

I assume that the code was provided with the assumption that normal users wouldn't do such a thing.
And if a user did anyway, wouldn't it be reason enough to delete the culprits profile?
0 replies
B
Bulent
B
Bulent 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

A bit hostile isn't it ? :(


When the user changes his/her name admin is not informed of it..
Thats why I gave this code
0 replies
T
tancurrom
T
i67.photobucket.com/albums/h286/tancurrom/sig_or_avatar/tancurromflash.jpg

The problems with minorities is disputing the reputation created by few.

.MY site.
.MY blog.
  • Junior Member, joined since
  • Contributed 31 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

i wasnt being hostile, i was merely pointing out it will not disable the username changing feature fully, its for his benefit
0 replies
J
Jargon
J
Jargon 10
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 4 threads in the forums
answered
Junior Member

Yes but you could make it read only text box?, i have it on my site, and no one has been able to change yet :p
0 replies
T
tancurrom
T
i67.photobucket.com/albums/h286/tancurrom/sig_or_avatar/tancurromflash.jpg

The problems with minorities is disputing the reputation created by few.

.MY site.
.MY blog.
  • Junior Member, joined since
  • Contributed 31 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

or just change the type to hidden and echo the username as i think is above i cant remember.

**goes to register and change username multiple times on this dudes site

why would you want to do that anyway?
0 replies
M
MoD
M
MoD 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
answered
Newbie

Quote

Jargon wrote:
Yes but you could make it read only text box?, i have it on my site, and no one has been able to change yet :p


If you make it read-only there multiple ways of changing it. There always javascript injection, and you can use firefoxs web developer etc...

You have to chnage the code, delete the $username variable..
0 replies

Category Forum

General Discussion

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

J
J
Jargon 10
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 4 threads in the forums
T
T
i67.photobucket.com/albums/h286/tancurrom/sig_or_avatar/tancurromflash.jpg

The problems with minorities is disputing the reputation created by few.

.MY site.
.MY blog.
  • Junior Member, joined since
  • Contributed 31 posts on the community forums.
  • Started 1 thread in the forums
Y
Y
Yxos 10
Yxos

The best solution is not necessarily a technical solution !
  • Senior Member, joined since
  • Contributed 277 posts on the community forums.
  • Started 28 threads in the forums
M
M
MoD 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
B
B
Bulent 10
  • Junior Member, joined since
  • Contributed 12 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet