Log in

View Full Version : Change Username via UserCP (v1.0)


tuncket
04-12-2004, 10:00 PM
Author: tuncket
Original Creator: Scott MacVicar (Post (https://vborg.vbsupport.ru/showthread.php?s=&threadid=24722))
Based in assassingod idea (Post (http://www.vbulletintemplates.com/mods/showthread.php?t=5414))
Description: This allows your users to Change their Username via their UserCP

INSTRUCCIONES EN ESPA?OL - INSTRUCTIONS IN SPANISH (Post (http://www.vbulletin-hispano.com/foro/showthread.php?t=275))

This Hack has been tested in vB 3.0.0 Gold!

New Files: (0)

Database Queries: (0)

Files to edit: (2)
profile.php (2 changes)
includes/functions_user.php (1 change)

Templates to add: (1)
modifyusername

Templates to modify: (1)
USERCP_SHELL (1 change)

Phrases to add: (2)

Level difficulty: Easy

Time installation: 5-10 minutes

CHANGE USERNAME V2.0 RELEASED! PLIS INSTALL THE NEW VERSION (POST (https://vborg.vbsupport.ru/showthread.php?t=66602))

???`S?LV?R???`
04-13-2004, 12:10 AM
nice one

KTBleeding
04-13-2004, 12:18 AM
Does this show their previous username in their profile?

Charlie Argueta
04-13-2004, 12:18 AM
Author: tuncket
Original Creator: Scott MacVicar (Post (https://vborg.vbsupport.ru/showthread.php?s=&threadid=24722))
Based in assassingod idea (Post (http://www.vbulletintemplates.com/mods/showthread.php?t=5414))
Description: This allows your users to Change their Username via their UserCP

This Hack has been tested in vB 3.0.0 Gold!

New Files: (0)

Database Queries: (0)

Files to edit: (2)
profile.php
includes/functions_user.php

Templates to add: (1)
modifyusername

Templates to modify: (1)
USERCP_SHELL

Phrases to add: (2)

Level difficulty: Easy

Time installation: 5-10 minutes

PLEASE CLICK THE INSTALL BUTTON IF INSTALLED!!!
It should ask for a password as when you want to change the email of the user.

See Ya

HabboForum
04-13-2004, 10:40 AM
Is there a way to disable this feature for certain usergroups? If i were to use this hack, i'd only want my paid members to be able to use it.

Slave
04-13-2004, 12:30 PM
Open profile.php

Find
construct_usercp_nav('username');

if it is for a single Usergroup:

Under Add
if ($bbuserinfo['usergroupid']==X) {print_no_permission(); exit;}

X = Usergroup ID

if it is for several groups:

Under Add
if ($bbuserinfo['usergroupid']==X or $bbuserinfo['usergroupid']==Y) {print_no_permission(); exit;}
or
if ($bbuserinfo['usergroupid']==X or $bbuserinfo['usergroupid']==Y or $bbuserinfo['usergroupid']==Z) {print_no_permission(); exit;}

X, Y, Z --> Usergroups ID that will not be able to use the function
It might be easier for peeps if you have a bit of code to allow groups .. instead of the other way about .. else there'll be an awful lot of "or"s .. heh

:)

FleaBag
04-13-2004, 01:17 PM
Excellent hack, not sure whether or not to install... Good to see you giving the support for this, the usergroup restrictions might well get me installing. :)

Zachariah
04-14-2004, 01:22 AM
tuncket !!!! :D

This will save me hour a week dealing with user problems.

* Zachariah clicks install

gmarik
04-14-2004, 05:25 PM
Interesting ...

Silviu
05-09-2004, 09:04 AM
Add two more thing and this hack will become one of the mose used hacks ever:

1 - Admins/Moderators can see previous usernames
2 - Admins can setup in admincp a time limit after user can change the username again (for example, user can be able to change it at each x days, or something like that).

bloodcult
05-11-2004, 12:00 PM
a little typo is in 'need password' extension:

globalize($_POST, array('currentpassword' => STR, 'username=> STR));


should be


globalize($_POST, array('currentpassword' => STR, 'username'=> STR));


you missed the ' behind username ...

thanks for the hack, ive installed it with password question.... as silviu said, it would be great with the 2 more extensions for this hack :)

SemperFidelis
05-18-2004, 01:34 PM
The version of this that was released for vb2 had alot more functionality IMO
If you could add :
- a clean way of setting via group (perhaps even as part of group managers functions)
- a way of setting it so a user has X amounts of posts
- history of changes

That would be greatly appreciated
:)

attroll
05-22-2004, 06:42 PM
This looks like a really nice hack. I would love to install it but I forsee a problem with some of my users. Not that they are problem users. But once you change a username then everyone that knew you by your first user name will get confused because without warning you are not longer that name. Granted this should not be a problem and happen to often. But if you give everyone access to change their user names then this can encourage people to do it depending on who they want to be each day. I would like to install it this so I would not have to worry when someone who wants their user name changed. But I am afraid that other users will start changing their user name to often.

daveone
05-26-2004, 09:10 PM
is it possible to tell the other board members that member "xyz" changed his name into "abc" ? perhaps members will be confused if they talk to a guy who changed his name and they can't identify him.

Perhaps something like...

"Todays News - "Xyz" changed his name into "abc" <<< in the board header

LoOnEyToOnZ
06-17-2004, 12:05 PM
Agreed with Silviu and daveone

1 - Admins/Moderators can see previous usernames
2 - Admins can setup in admincp a time limit after user can change the username again (for example, user can be able to change it at each x days, or something like that).
3 - Maybe auto-posting of a new thread within a specified forum everytime a user changes username

JohnXWA
06-23-2004, 01:45 PM
Yea, the only thing stopping me is the lack of logging etc.

Bison
07-23-2004, 12:40 AM
Nice idea, but this hack can be abused real quick!

Scerina
11-19-2004, 03:05 AM
Can someone please install this hack for me please? If you can assist me, please contact me via email at: Pandora@Sweet-November.Net

Thanx in advance

jamesk
12-25-2004, 08:39 PM
AWESOME HACK!!!
Before I install I would really like an updated version as well. Good requests in this thread,if anybody works these things out. Please post here.

Paul M
12-25-2004, 09:39 PM
Version 2 is linked to in the first post.

Adrian Schneider
12-25-2004, 09:47 PM
Would it be possible to make it moderate username changes? So basically they just request for it to be done, then you give it the okay.

shaffer
01-22-2005, 10:26 PM
Can you add an "admin approval" setting where the change will not take place until admin sees it and approves it?

SaltedSlug
11-10-2005, 11:32 PM
I really really want this hack, but it might cause more trouble than it's worth, without the logging suggestions that people have made. A public record of name changes would be good.


Can you add an "admin approval" setting where the change will not take place until admin sees it and approves it?

And this idea is a cracker too.