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?

Users Nickname Change

Asked Modified Viewed 1,911 times
A
Antedos
A
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

I see that my users (on my site) can change their nicknames whenever they want.. I remember this option not being available at first.. where can I turn it off?

Or, is that possible?
0 replies

3 posts

H
hmpedersen
H
Please do not mail me about how to connect userbase on two sites. I will no longer reply to those mails.
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

You can manually remove the username field from the edit_profile.php, giving no way to change the nick..

But why would you want that?
0 replies
R
Reflectoman
R
------------------------------------------------
Adnan Ahmed Online
File Hosting | Image Hosting | Free SMS
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 9 threads in the forums
answered
Member

in edit_profile.php at line 49 you have the following,

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


change it to
<td class='tbl'>".$userdata['user_name']."</td>


this way they can't change the username, but it'll still show their username in that form.

you also want to make a change in update_profile_include.php in the includes folder, since it checks to make sure the username field is filled in before continuing.

change line 17,
$username = trim(eregi_replace(" +", " ", $_POST['user_name']));


with the following,
$d_username=dbarray(dbquery("SELECT user_name FROM ".$db_prefix."users WHERE user_id='$userdata[user_id]'"));
$username = $d_username['user_name'];


this should prevent the script from failing due to no username being input, cause we are just giving it the current username.

i'd say do only those changes, so that if need be you can still change the username from the admin panel (as an admin, or super admin) if ever you need to.

hope that works for you,
Adnan.

EDIT: Smileys Disabled
Edited by Reflectoman on 25-05-2006 18:12,
0 replies
B
Bad Boy
B
____________________
BadBoy aka GoogleDude
http://www.googlecityforums.com
  • Member, joined since
  • Contributed 155 posts on the community forums.
  • Started 1 thread in the forums
answered
Member

Disable smileys Adnan.
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet